diff options
author | Willem Jan Palenstijn | 2017-02-26 18:34:02 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2017-02-28 15:55:52 +0100 |
commit | 5510640dbcd1bda6ae41942ed56c9ac037fc5228 (patch) | |
tree | bca82176d700bce72a948f046bc4acb43a740d98 /gui/themes | |
parent | af831f26b97590024218801528f50e008f3b2f72 (diff) | |
download | scummvm-rg350-5510640dbcd1bda6ae41942ed56c9ac037fc5228.tar.gz scummvm-rg350-5510640dbcd1bda6ae41942ed56c9ac037fc5228.tar.bz2 scummvm-rg350-5510640dbcd1bda6ae41942ed56c9ac037fc5228.zip |
GUI: Give each tab in TabWidget its own width
The width of each tab is now computed from its title, independently of
the other tabs. This increases the number of tabs that fit on the
screen.
This rewrite also fixes a bug where if the window size increased while
_firstVisibleTab > 0, some tabs would become inaccessible when the
scroll buttons were hidden.
The layout key Globals.TabWidget.Tab.Width is now treated as minimal
tab width. This is set so that the tabs fit reasonably well in lowres
layouts.
At the same time, this reduces the lowres scroll buttons heights to fit.
This patch makes the Nintento DS hacks in TabWidget obsolete.
(Hopefully! I'm not able to test.)
Diffstat (limited to 'gui/themes')
-rw-r--r-- | gui/themes/scummclassic.zip | bin | 128803 -> 20021 bytes | |||
-rw-r--r-- | gui/themes/scummclassic/classic_layout.stx | 2 | ||||
-rw-r--r-- | gui/themes/scummclassic/classic_layout_lowres.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummmodern.zip | bin | 1648343 -> 739209 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout.stx | 2 | ||||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout_lowres.stx | 4 |
6 files changed, 6 insertions, 6 deletions
diff --git a/gui/themes/scummclassic.zip b/gui/themes/scummclassic.zip Binary files differindex e84768b497..8024437f6b 100644 --- a/gui/themes/scummclassic.zip +++ b/gui/themes/scummclassic.zip diff --git a/gui/themes/scummclassic/classic_layout.stx b/gui/themes/scummclassic/classic_layout.stx index 75ffee20cd..35f4a03e6d 100644 --- a/gui/themes/scummclassic/classic_layout.stx +++ b/gui/themes/scummclassic/classic_layout.stx @@ -95,7 +95,7 @@ size = '15, 0' /> <widget name = 'TabWidget.Tab' - size = '75, 27' + size = '40, 27' padding = '0, 0, 8, 0' /> <widget name = 'TabWidget.Body' diff --git a/gui/themes/scummclassic/classic_layout_lowres.stx b/gui/themes/scummclassic/classic_layout_lowres.stx index e46db3e94b..1085c5fc6f 100644 --- a/gui/themes/scummclassic/classic_layout_lowres.stx +++ b/gui/themes/scummclassic/classic_layout_lowres.stx @@ -93,14 +93,14 @@ size = '9, 0' /> <widget name = 'TabWidget.Tab' - size = '45, 16' + size = '40, 16' padding = '0, 0, 2, 0' /> <widget name = 'TabWidget.Body' padding = '0, 0, 0, 0' /> <widget name = 'TabWidget.NavButton' - size = '32, 18' + size = '32, 14' padding = '0, 0, 1, 0' /> <widget name = 'EditRecordLabel' diff --git a/gui/themes/scummmodern.zip b/gui/themes/scummmodern.zip Binary files differindex ed1e3c0c58..73aee35f61 100644 --- a/gui/themes/scummmodern.zip +++ b/gui/themes/scummmodern.zip diff --git a/gui/themes/scummmodern/scummmodern_layout.stx b/gui/themes/scummmodern/scummmodern_layout.stx index 754bc251d9..9633cb4e50 100644 --- a/gui/themes/scummmodern/scummmodern_layout.stx +++ b/gui/themes/scummmodern/scummmodern_layout.stx @@ -98,7 +98,7 @@ size = '15, 0' /> <widget name = 'TabWidget.Tab' - size = '75, 27' + size = '40, 27' padding = '0, 0, 8, 0' /> diff --git a/gui/themes/scummmodern/scummmodern_layout_lowres.stx b/gui/themes/scummmodern/scummmodern_layout_lowres.stx index eadb305414..be8ce0c17e 100644 --- a/gui/themes/scummmodern/scummmodern_layout_lowres.stx +++ b/gui/themes/scummmodern/scummmodern_layout_lowres.stx @@ -91,14 +91,14 @@ size = '9, 0' /> <widget name = 'TabWidget.Tab' - size = '45, 16' + size = '40, 16' padding = '0, 0, 2, 0' /> <widget name = 'TabWidget.Body' padding = '0, 0, 0, 0' /> <widget name = 'TabWidget.NavButton' - size = '32, 18' + size = '32, 14' padding = '0, 0, 2, 0' /> <widget name = 'EditRecordLabel' |