GUI: Fix display of version in classic theme

This fixes bug #14774.
This is a regression from commit 3857f71 that added the help button
to the classic layout. Instead of having the version text widget take
the full width, it added a horizontal layout, with the help button,
the version widget, and a space with the same width as the help button
(to keep the version centered I assume). But it also added two
additional spaces either side of the version text widget with no
specified width for no apparent reason. As a result the version widget
was only taking 1/3rd of the available space. This commit removes
those two spaces. It also changes the variable used to specify the
width of the space on the right to use the same variable that specifies
the width of the help button on the left. This clarifies that this
space is here for centering.
This commit is contained in:
Thierry Crozat committed 2024-11-05 22:36:36 +00:00
1 parent a195d067bd
commit a66c497529
4 files changed
+4 -12

No files matched your search

+2 -6
View File
@@ -1546,13 +1546,11 @@ const char *defaultXML1 = "<?xml version = '1.0'?>"
"width='Globals.Launcher.HelpButton.Width' "
"rtl='yes' "
"/>"
"<space />"
"<widget name='Version' "
"height='Globals.Line.Height' "
"textalign='center' "
"/>"
"<space />"
"<space size='Globals.Button.Height' />"
"<space size='Globals.Launcher.HelpButton.Width' />"
"</layout>"
"<layout type='horizontal' spacing='5' padding='10,0,0,0'>"
"<widget name='SearchDesc' "
@@ -3937,13 +3935,11 @@ const char *defaultXML1 = "<?xml version = '1.0'?>"
"width='Globals.Launcher.HelpButton.Width' "
"rtl='yes' "
"/>"
"<space />"
"<widget name='Version' "
"height='Globals.Line.Height' "
"textalign='center' "
"/>"
"<space />"
"<space size='Globals.Button.Height' />"
"<space size='Globals.Launcher.HelpButton.Width' />"
"</layout>"
"<layout type='horizontal' spacing='2' padding='0,0,0,0'>"
"<widget name='SearchDesc' "
Binary file not shown.
+1 -3
View File
@@ -143,13 +143,11 @@
width = 'Globals.Launcher.HelpButton.Width'
rtl = 'yes'
/>
<space />
<widget name = 'Version'
height = 'Globals.Line.Height'
textalign = 'center'
/>
<space />
<space size = 'Globals.Button.Height' />
<space size = 'Globals.Launcher.HelpButton.Width' />
</layout>
<layout type = 'horizontal' spacing = '5' padding = '10, 0, 0, 0'>
<widget name = 'SearchDesc'
@@ -143,13 +143,11 @@
width = 'Globals.Launcher.HelpButton.Width'
rtl = 'yes'
/>
<space />
<widget name = 'Version'
height = 'Globals.Line.Height'
textalign = 'center'
/>
<space />
<space size = 'Globals.Button.Height' />
<space size = 'Globals.Launcher.HelpButton.Width' />
</layout>
<layout type = 'horizontal' spacing = '2' padding = '0, 0, 0, 0'>
<widget name = 'SearchDesc'