[bugfix] Config Window: Dropdown Menu Window. 幅を内容に合わせて可変的に。長いテキストが入っても見きれないように修正。

This commit is contained in:
Sakamoto Shiina
2023-10-19 15:18:10 +09:00
parent b007fb1c55
commit 40f999f556
6 changed files with 21 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ class _SettingBoxGenerator():
for_var_label_text, for_var_desc_text,
optionmenu_attr_name,
command,
dropdown_menu_width=None,
dropdown_menu_min_width=None,
dropdown_menu_values=None,
variable=None,
):
@@ -144,7 +144,7 @@ class _SettingBoxGenerator():
command=adjustedCommand,
wrapper_widget=self.config_window.main_bg_container,
attach_widget=option_menu_widget,
dropdown_menu_width=dropdown_menu_width,
dropdown_menu_min_width=dropdown_menu_min_width,
)
return setting_box_frame

View File

@@ -70,7 +70,6 @@ def createSettingBox_Appearance(setting_box_wrapper, config_window, settings, vi
for_var_desc_text=view_variable.VAR_DESC_FONT_FAMILY,
optionmenu_attr_name="sb__optionmenu_font_family",
dropdown_menu_values=view_variable.LIST_FONT_FAMILY,
dropdown_menu_width=settings.uism.RESPONSIVE_UI_SIZE_INT_300,
command=lambda value: optionmenu_font_family_callback(value),
variable=view_variable.VAR_FONT_FAMILY,
)

View File

@@ -58,7 +58,6 @@ def createSettingBox_Mic(setting_box_wrapper, config_window, settings, view_vari
for_var_desc_text=view_variable.VAR_DESC_MIC_DEVICE,
optionmenu_attr_name="sb__optionmenu_mic_device",
dropdown_menu_values=view_variable.LIST_MIC_DEVICE,
dropdown_menu_width=settings.uism.RESPONSIVE_UI_SIZE_INT_500,
command=lambda value: optionmenu_input_mic_device_callback(value),
variable=view_variable.VAR_MIC_DEVICE,
)