Make widgets center

This commit is contained in:
dumaosen 2019-06-26 21:58:02 +08:00
parent ad9a8c9c26
commit 53f6235125
3 changed files with 10 additions and 8 deletions

View File

@ -2,8 +2,8 @@
<stkgui> <stkgui>
<div x="2%" y="5%" width="96%" height="90%" layout="vertical-row" > <div x="2%" y="5%" width="96%" height="90%" layout="vertical-row" >
<header id="title" width="96%" height="fit" text_align="center" word_wrap="true" <header id="title" width="100%" height="fit" text_align="center" word_wrap="true"
I18N="In the change password dialog" text="Password Change"/> I18N="In the change password dialog" text="Password Change"/>
<spacer height="4%" width="50"/> <spacer height="4%" width="50"/>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<stkgui> <stkgui>
<div x="2%" y="2%" width="100%" height="96%" layout="vertical-row"> <div x="2%" y="2%" width="96%" height="96%" layout="vertical-row">
<header id="title" width="96%" height="fit" text_align="center" <header id="title" width="100%" height="fit" text_align="center"
word_wrap="true" I18N="In player rankings dialog" word_wrap="true" I18N="In player rankings dialog"
text="Top 10 players"/> text="Top 10 players"/>
@ -13,11 +13,13 @@
<label id="cur-rank" proportion="1" width="90%" align="center" <label id="cur-rank" proportion="1" width="90%" align="center"
text_align="center" word_wrap="true" text=""/> text_align="center" word_wrap="true" text=""/>
<buttonbar id="options" width="90%" height="10%" align="center"> <spacer height="1%" width="20" />
<icon-button id="ok" width="16" height="16"
<buttonbar id="options" width="90%" height="14%" align="center">
<icon-button id="ok" width="128" height="128"
icon="gui/icons/green_check.png" text="OK" icon="gui/icons/green_check.png" text="OK"
label_location="bottom"/> label_location="bottom"/>
<icon-button id="refresh" width="16" height="16" <icon-button id="refresh" width="128" height="128"
icon="gui/icons/restart.png" icon="gui/icons/restart.png"
text="Refresh" label_location="bottom"/> text="Refresh" label_location="bottom"/>
</buttonbar> </buttonbar>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<stkgui> <stkgui>
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" > <div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
<header id="title" width="96%" proportion="3" text_align="center" word_wrap="true"/> <header id="title" width="100%" proportion="3" text_align="center" word_wrap="true"/>
<spacer height="1%" width="5"/> <spacer height="1%" width="5"/>
<div width="100%" proportion="3" layout="horizontal-row" > <div width="100%" proportion="3" layout="horizontal-row" >
<div width="48%" height="100%" layout="vertical-row" > <div width="48%" height="100%" layout="vertical-row" >