mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-23 07:23:19 +08:00
preflight restruct
This commit is contained in:
parent
4ceced47e6
commit
cf24e42fd0
@ -65,17 +65,13 @@ class EditProfileWindow(bui.Window):
|
||||
self._height = height = (
|
||||
350.0
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
else 400.0
|
||||
if uiscale is bui.UIScale.MEDIUM
|
||||
else 450.0
|
||||
else 400.0 if uiscale is bui.UIScale.MEDIUM else 450.0
|
||||
)
|
||||
spacing = 40
|
||||
self._base_scale = (
|
||||
2.05
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
else 1.5
|
||||
if uiscale is bui.UIScale.MEDIUM
|
||||
else 1.0
|
||||
else 1.5 if uiscale is bui.UIScale.MEDIUM else 1.0
|
||||
)
|
||||
top_extra = 15 if uiscale is bui.UIScale.SMALL else 15
|
||||
super().__init__(
|
||||
@ -83,9 +79,9 @@ class EditProfileWindow(bui.Window):
|
||||
size=(width, height + top_extra),
|
||||
transition=transition,
|
||||
scale=self._base_scale,
|
||||
stack_offset=(0, 15)
|
||||
if uiscale is bui.UIScale.SMALL
|
||||
else (0, 0),
|
||||
stack_offset=(
|
||||
(0, 15) if uiscale is bui.UIScale.SMALL else (0, 0)
|
||||
),
|
||||
)
|
||||
)
|
||||
cancel_button = btn = bui.buttonwidget(
|
||||
@ -475,9 +471,11 @@ class EditProfileWindow(bui.Window):
|
||||
parent=self._root_widget,
|
||||
autoselect=True,
|
||||
position=(self._width * 0.5 + b_offs - b_size * 0.5, v - 50),
|
||||
up_widget=self._upgrade_button
|
||||
if self._upgrade_button is not None
|
||||
else self._account_type_info_button,
|
||||
up_widget=(
|
||||
self._upgrade_button
|
||||
if self._upgrade_button is not None
|
||||
else self._account_type_info_button
|
||||
),
|
||||
size=(b_size, b_size),
|
||||
color=self._highlight,
|
||||
label='',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user