Fix button width when the text is too long due the translation or font (fix #4160)

This commit is contained in:
David Capello 2023-11-22 10:40:51 -03:00
parent eafb779ef0
commit dec9bddd99
14 changed files with 27 additions and 25 deletions

View File

@ -14,7 +14,7 @@
<box horizontal="true">
<box horizontal="true" expansive="true" />
<box horizontal="true" homogeneous="true">
<button text="@general.ok" id="ok_button" magnet="true" width="60" />
<button text="@general.ok" id="ok_button" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" />
</box>
</box>

View File

@ -49,7 +49,7 @@
<hbox>
<boxfiller />
<hbox homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok" magnet="true" width="60" />
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" />
</hbox>
</hbox>

View File

@ -16,7 +16,7 @@
<box horizontal="true">
<box horizontal="true" expansive="true" />
<box horizontal="true" homogeneous="true">
<button text="@general.ok" id="ok_button" magnet="true" width="60" />
<button text="@general.ok" id="ok_button" magnet="true" minwidth="60" />
<button text="@general.close" closewindow="true" />
</box>
</box>

View File

@ -34,7 +34,7 @@
<combobox id="file_type" minwidth="70" />
<boxfiller />
<box horizontal="true" homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok" magnet="true" width="60" />
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" id="cancel" />
</box>
</hbox>

View File

@ -6,7 +6,7 @@
<view id="view" expansive="true" />
<hbox>
<boxfiller />
<button id="load_font" text="@.load" magnet="true" width="80" />
<button id="load_font" text="@.load" magnet="true" minwidth="80" />
</hbox>
</vbox>
</gui>

View File

@ -115,7 +115,7 @@
<hbox>
<boxfiller />
<hbox homogeneous="true">
<button text="@keyboard_shortcuts.ok" closewindow="true" id="ok" magnet="true" width="60" />
<button text="@keyboard_shortcuts.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
<button text="@keyboard_shortcuts.cancel" closewindow="true" />
</hbox>
</hbox>

View File

@ -5,12 +5,12 @@
<vbox>
<hbox>
<label text="@new_folder.folder_name" />
<entry text="@new_folder.default_new_folder_name" id="name" maxsize="256" magnet="true" expansive="true" />
<entry text="@new_folder.default_new_folder_name" id="name" maxsize="256" magnet="true" expansive="true" minwidth="128" />
</hbox>
<hbox>
<boxfiller />
<hbox homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok" magnet="true" width="60" />
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" id="cancel" />
</hbox>
</hbox>

View File

@ -40,7 +40,7 @@
<box horizontal="true">
<box horizontal="true" expansive="true" />
<box horizontal="true" homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok_button" magnet="true" width="60" />
<button text="@general.ok" closewindow="true" id="ok_button" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" />
</box>
</box>

View File

@ -132,7 +132,7 @@
<label text="@.recent_files" />
<hbox>
<slider min="0" max="100" id="recent_files" width="128" tooltip="@.recent_files_tooltip" />
<button id="clear_recent_files" text="@.clear_recent_files" tooltip="@.clear_recent_files_tooltip" width="60" />
<button id="clear_recent_files" text="@.clear_recent_files" tooltip="@.clear_recent_files_tooltip" minwidth="60" />
</hbox>
<boxfiller />
@ -225,7 +225,7 @@
<hbox>
<hbox expansive="true" />
<button id="reset_color_management" text="@general.reset" width="60" />
<button id="reset_color_management" text="@general.reset" minwidth="60" />
</hbox>
</vbox>
@ -304,7 +304,7 @@
pref="timeline.drag_and_drop_from_edges" />
<hbox>
<boxfiller />
<button id="reset_timeline_sel" text="@general.reset" width="60" />
<button id="reset_timeline_sel" text="@general.reset" minwidth="60" />
</hbox>
</vbox>
@ -377,7 +377,7 @@
<hbox>
<hbox expansive="true" />
<button id="reset_bg" text="@general.reset" width="60" />
<button id="reset_bg" text="@general.reset" minwidth="60" />
</hbox>
</vbox>
@ -427,7 +427,7 @@
<hbox>
<hbox expansive="true" />
<button id="reset_grid" text="@general.reset" width="60" />
<button id="reset_grid" text="@general.reset" minwidth="60" />
</hbox>
</vbox>
@ -517,10 +517,10 @@
<listbox id="theme_list" />
</view>
<hbox>
<button id="select_theme" text="@.select_theme" width="60" />
<button id="select_theme" text="@.select_theme" minwidth="60" />
<link text="@.download_themes" url="https://www.aseprite.org/themes/" />
<boxfiller />
<button id="open_theme_folder" text="@.open_theme_folder" width="100" />
<button id="open_theme_folder" text="@.open_theme_folder" minwidth="100" />
</hbox>
</vbox>
@ -595,7 +595,7 @@
<hbox>
<boxfiller />
<hbox homogeneous="true">
<button text="@.ok" closewindow="true" id="button_ok" magnet="true" width="60" />
<button text="@.ok" closewindow="true" id="button_ok" magnet="true" minwidth="60" />
<button text="@.apply" id="button_apply" />
<button text="@.cancel" closewindow="true" />
</hbox>

View File

@ -5,9 +5,9 @@
<search id="search" magnet="true" />
<view id="view" expansive="true" />
<hbox>
<button id="load_pal" text="@.load" width="80" magnet="true" />
<button id="load_pal" text="@.load" minwidth="80" magnet="true" />
<hbox expansive="true" />
<button id="open_folder" text="@.open_folder" width="60" />
<button id="open_folder" text="@.open_folder" minwidth="60" />
</hbox>
</vbox>
</gui>

View File

@ -6,7 +6,7 @@
<grid columns="3">
<label text="@.key" />
<hbox id="key_placeholder" cell_align="horizontal" />
<button text="@.clear" id="clear_button" width="60" />
<button text="@.clear" id="clear_button" minwidth="60" />
<label text="@.modifiers" />
<hbox cell_hspan="2" cell_align="horizontal">
@ -28,7 +28,7 @@
<box horizontal="true">
<boxfiller />
<box horizontal="true" homogeneous="true">
<button text="@.ok" id="ok_button" magnet="true" width="60" />
<button text="@.ok" id="ok_button" magnet="true" minwidth="60" />
<button text="@.cancel" id="cancel_button" />
</box>
</box>

View File

@ -54,8 +54,10 @@
<separator horizontal="true" />
<hbox>
<boxfiller />
<button text="@general.ok" closewindow="true" id="ok" magnet="true" width="60" />
<button text="@general.cancel" closewindow="true" id="cancel" width="60" />
<hbox homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" id="cancel" />
</hbox>
</hbox>
</vbox>
</window>

View File

@ -45,7 +45,7 @@
<box horizontal="true">
<box horizontal="true" expansive="true" />
<box horizontal="true" homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok" magnet="true" width="60" />
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" />
</box>
</box>

View File

@ -39,7 +39,7 @@
<hbox cell_hspan="2">
<radio group="1" text="@.merge_frames" id="merge" />
<radio group="1" text="@.red_blue_tint" id="tint" />
<button id="reset_onionskin" text="@.reset" width="60" />
<button id="reset_onionskin" text="@.reset" minwidth="60" />
</hbox>
<label text="@.opacity" />