Ticket #2925: 2925_v2.patch

File 2925_v2.patch, 4.7 KB (added by Imarok, 8 years ago)

scroll bar for the file list; Bigger buttons; adapt to work with longstrings

  • binaries/data/mods/public/gui/locale/locale.xml

    diff --git binaries/data/mods/public/gui/locale/locale.xml binaries/data/mods/public/gui/locale/locale.xml
    index 34b3df2..b2aace5 100644
     
    88    <!-- Add a translucent black background to fade out the menu page -->
    99    <object type="image" z="0" sprite="ModernFade"/>
    1010
    11     <object type="image" style="ModernDialog" size="50%-190 50%-100 50%+190 50%+100">
     11    <object type="image" style="ModernDialog" size="50%-210 50%-100 50%+210 50%+100">
    1212        <object size="15 0 100%-15 100%">
    1313            <object style="ModernLabelText" type="text" size="50%-128 -18 50%+128 14">
    1414                <translatableAttribute id="caption">Language</translatableAttribute>
  • binaries/data/mods/public/gui/locale/locale_advanced.xml

    diff --git binaries/data/mods/public/gui/locale/locale_advanced.xml binaries/data/mods/public/gui/locale/locale_advanced.xml
    index 25bb8de..954b4b5 100644
     
    77
    88    <!-- Add a translucent black background to fade out the menu page -->
    99    <object type="image" z="0" sprite="ModernFade"/>
    10     <object type="image" style="ModernDialog" size="50%-220 50%-200 50%+220 50%+200">
     10    <object type="image" style="ModernDialog" size="50%-220 50%-210 50%+220 50%+210">
    1111        <action on="Tick">onTick();</action>
    1212        <object size="15 0 100%-15 100%">
    1313            <object style="ModernLabelText" type="text" size="50%-150 -18 50%+150 14">
     
    3030                    size="50%+10 80 100% 105">
    3131            </object>
    3232
    33             <object type="text" size="5 110 50% 135" style="ModernLabelText" text_align="left">
     33            <object type="text" size="5 108 50% 137" style="ModernLabelText" text_align="left">
    3434                <translatableAttribute id="caption">Script:</translatableAttribute>
    3535            </object>
    3636            <object name="scriptInput" size="50%+10 110 100% 135" type="input" style="ModernInput">
    3737                <translatableAttribute id="tooltip">Optional four-letter script code part following the language code (as listed in ISO 15924)</translatableAttribute>
    3838            </object>
    3939
    40             <object type="text" size="5 140 50% 165" style="ModernLeftLabelText">
     40            <object type="text" size="5 138 50% 167" style="ModernLeftLabelText">
    4141                <translatableAttribute id="caption">Variant (unused):</translatableAttribute>
    4242            </object>
    4343            <object name="variantInput" size="50%+10 140 100% 165" type="input" style="ModernInput">
    4444                <translatableAttribute id="tooltip">Not implemented yet.</translatableAttribute>
    4545            </object>
    4646
    47             <object type="text" size="5 170 50% 195" style="ModernLabelText" text_align="left">
     47            <object type="text" size="5 168 50% 197" style="ModernLabelText" text_align="left">
    4848                <translatableAttribute id="caption">Keywords (unused):</translatableAttribute>
    4949            </object>
    5050            <object name="keywordsInput" size="50%+10 170 100% 195" type="input" style="ModernInput">
    5151                <translatableAttribute id="tooltip">Not implemented yet.</translatableAttribute>
    5252            </object>
    5353
    54             <object type="text" size="5 230 50% 255" style="ModernLabelText" text_align="left">
     54            <object type="text" size="5 228 50% 257" style="ModernLabelText" text_align="left">
    5555                <translatableAttribute id="caption">Resulting locale:</translatableAttribute>
    5656            </object>
    5757            <object name="resultingLocale" type="text" size="50%+10 230 100% 255" textcolor="white" />
    5858
    59             <object type="text" size="5 260 50% 285" style="ModernLabelText" text_align="left">
     59            <object type="text" size="5 258 50% 290" style="ModernLabelText" text_align="left">
    6060                <translatableAttribute id="caption">Dictionary files used:</translatableAttribute>
    6161            </object>
    62             <object name="dictionaryFile" type="text" size="50%+10 260 100% 345" textcolor="white" />
     62            <object name="dictionaryFile" type="text" size="50%+10 260 100% 345" style="ModernText" />
    6363
    64             <object type="button" size="0 100%-60 33% 100%-32" style="ModernButtonRed" hotkey="cancel">
     64            <object type="button" size="0 100%-60 33% 100%-25" style="ModernButtonRed" hotkey="cancel">
    6565                <translatableAttribute id="caption">Cancel</translatableAttribute>
    6666                <action on="Press">cancelSetup();</action>
    6767            </object>
    6868
    69             <object type="button" size="33%+5 100%-60 66% 100%-32" style="ModernButtonRed">
     69            <object type="button" size="33%+5 100%-60 66% 100%-25" style="ModernButtonRed">
    7070                <translatableAttribute id="caption">Auto detect</translatableAttribute>
    7171                <action on="Press">autoDetectLocale();</action>
    7272            </object>
    7373
    74             <object name="acceptButton" type="button" style="ModernButtonRed" size="66%+5 100%-60 100% 100%-32">
     74            <object name="acceptButton" type="button" style="ModernButtonRed" size="66%+5 100%-60 100% 100%-25">
    7575                <translatableAttribute id="caption">Accept</translatableAttribute>
    7676                <action on="Press">applySelectedLocale();</action>
    7777            </object>