Skip to content

Commit

Permalink
tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
efroemling committed Dec 22, 2024
1 parent 8791b13 commit 2a8f8e2
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 55 deletions.
70 changes: 35 additions & 35 deletions .efrocachemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ types-certifi==2021.10.8.3
types-filelock==3.2.7
types-requests==2.32.0.20241016
typing_extensions==4.12.2
urllib3==2.2.3
urllib3==2.3.0
12 changes: 6 additions & 6 deletions src/assets/ba_data/python/bauiv1lib/account/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def __init__(
assert app.classic is not None
uiscale = app.ui_v1.uiscale

self._width = 850 if uiscale is bui.UIScale.SMALL else 660
self._width = 980 if uiscale is bui.UIScale.SMALL else 660
x_offs = 70 if uiscale is bui.UIScale.SMALL else 0
self._height = (
380
430
if uiscale is bui.UIScale.SMALL
else 430 if uiscale is bui.UIScale.MEDIUM else 490
)
Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(
if bui.app.config.resolve('Show Deprecated Login Types'):
self._show_sign_in_buttons.append('Device')

top_extra = 15 if uiscale is bui.UIScale.SMALL else 0
top_extra = 26 if uiscale is bui.UIScale.SMALL else 0
super().__init__(
root_widget=bui.containerwidget(
size=(self._width, self._height + top_extra),
Expand All @@ -105,7 +105,7 @@ def __init__(
else 'menu_full'
),
scale=(
2.07
1.72
if uiscale is bui.UIScale.SMALL
else 1.4 if uiscale is bui.UIScale.MEDIUM else 1.0
),
Expand Down Expand Up @@ -146,8 +146,8 @@ def __init__(
label=bui.charstr(bui.SpecialChar.BACK),
)

titleyoffs = -12 if uiscale is bui.UIScale.SMALL else 0
titlescale = 0.6 if uiscale is bui.UIScale.SMALL else 1.0
titleyoffs = -9 if uiscale is bui.UIScale.SMALL else 0
titlescale = 0.7 if uiscale is bui.UIScale.SMALL else 1.0
bui.textwidget(
parent=self._root_widget,
position=(self._width * 0.5, self._height - 41 + titleyoffs),
Expand Down
21 changes: 10 additions & 11 deletions src/assets/ba_data/python/bauiv1lib/chest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,17 @@ def __init__(
origin_widget=origin_widget,
)

self._core_widgets.append(
bui.textwidget(
parent=self._root_widget,
position=(0, self._height - 45 + self._yoffs),
size=(self._width, 25),
text=f'Chest #{self._index + 1}',
color=bui.app.ui_v1.title_color,
maxwidth=150.0,
h_align='center',
v_align='center',
)
self._title_text = bui.textwidget(
parent=self._root_widget,
position=(0, self._height - 45 + self._yoffs),
size=(self._width, 25),
text=f'Chest Slot {self._index + 1}',
color=bui.app.ui_v1.title_color,
maxwidth=150.0,
h_align='center',
v_align='center',
)
self._core_widgets.append(self._title_text)

if uiscale is bui.UIScale.SMALL:
bui.containerwidget(
Expand Down
4 changes: 2 additions & 2 deletions src/assets/ba_data/python/bauiv1lib/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def __init__(

self._width = 600 if uiscale is bui.UIScale.SMALL else 450
self._height = (
380
375
if uiscale is bui.UIScale.SMALL
else 370 if uiscale is bui.UIScale.MEDIUM else 450
)
yoffs = -45 if uiscale is bui.UIScale.SMALL else 0
yoffs = -47 if uiscale is bui.UIScale.SMALL else 0

super().__init__(
root_widget=bui.containerwidget(
Expand Down

0 comments on commit 2a8f8e2

Please sign in to comment.