mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Fine-tune UI on small scales
This commit is contained in:
parent
71022fb07d
commit
a45396566d
1 changed files with 6 additions and 3 deletions
|
|
@ -452,7 +452,7 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
|||
|
||||
ba.containerwidget(edit=self._root_widget, cancel_button=back_button)
|
||||
|
||||
title_pos = self._height - (95 if _uiscale is ba.UIScale.SMALL else
|
||||
title_pos = self._height - (100 if _uiscale is ba.UIScale.SMALL else
|
||||
50 if _uiscale is ba.UIScale.MEDIUM else 50)
|
||||
ba.textwidget(
|
||||
parent=self._root_widget,
|
||||
|
|
@ -602,7 +602,7 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
|||
# 17 if _uiscale is ba.UIScale.MEDIUM else 58)
|
||||
category_pos_x = (420 if _uiscale is ba.UIScale.SMALL else
|
||||
375 if _uiscale is ba.UIScale.MEDIUM else 440)
|
||||
category_pos_y = self._height - (140 if _uiscale is ba.UIScale.SMALL else
|
||||
category_pos_y = self._height - (145 if _uiscale is ba.UIScale.SMALL else
|
||||
100 if _uiscale is ba.UIScale.MEDIUM else 140)
|
||||
# the next 2 lines belong in 1 line
|
||||
# # s = 1.0 if _uiscale is ba.UIScale.SMALL else
|
||||
|
|
@ -636,7 +636,10 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
|||
# TODO
|
||||
search_bar_pos_x = (170 if _uiscale is ba.UIScale.SMALL else
|
||||
145 if _uiscale is ba.UIScale.MEDIUM else 200)
|
||||
search_bar_pos_y = self._height - (100 if _uiscale is ba.UIScale.MEDIUM else 140)
|
||||
search_bar_pos_y = self._height - (
|
||||
145 if _uiscale is ba.UIScale.SMALL else
|
||||
100 if _uiscale is ba.UIScale.MEDIUM else 140
|
||||
)
|
||||
ba.textwidget(parent=self._root_widget,
|
||||
position=(search_bar_pos_x, search_bar_pos_y),
|
||||
scale=0.7,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue