Latest public/internal sync.

This commit is contained in:
Eric 2024-06-22 22:44:49 -07:00
parent 6047d95e92
commit de85edbce6
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98
3 changed files with 14 additions and 9 deletions

View File

@ -109,9 +109,11 @@ class ConfigNumberEdit:
self._value = bui.app.config.resolve(configkey)
except ValueError:
self._value = bui.app.config.get(configkey, fallback_value)
self._value = (self._minval if self._minval > self._value else
self._maxval if self._maxval < self._value else
self._value)
self._value = (
self._minval
if self._minval > self._value
else self._maxval if self._maxval < self._value else self._value
)
self._as_percent = as_percent
self._f = f
@ -120,7 +122,7 @@ class ConfigNumberEdit:
position=position,
size=(100, 30),
text=displayname,
#maxwidth=160 + xoffset,
# maxwidth=160 + xoffset,
color=(0.8, 0.8, 0.8, 1.0),
h_align='left',
v_align='center',

View File

@ -258,7 +258,7 @@ class ControlsSettingsWindow(bui.Window):
v -= spacing
bui.widget(
edit=self._keyboard_2_button,
left_widget=self._keyboard_2_button
left_widget=self._keyboard_2_button,
)
if show_space_2:
v -= space_height
@ -323,7 +323,7 @@ class ControlsSettingsWindow(bui.Window):
bui.widget(
edit=xinput_checkbox,
left_widget=xinput_checkbox,
right_widget=xinput_checkbox
right_widget=xinput_checkbox,
)
v -= spacing

View File

@ -349,9 +349,12 @@ class PluginWindow(bui.Window):
text=bui.Lstr(value=classpath),
autoselect=True,
value=enabled,
maxwidth=self._scroll_width - (
200 if plugin is not None and plugin.has_settings_ui() else
80),
maxwidth=self._scroll_width
- (
200
if plugin is not None and plugin.has_settings_ui()
else 80
),
position=(10, item_y),
size=(self._scroll_width - 40, 50),
on_value_change_call=bui.Call(