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,7 +2,7 @@
<stkgui>
<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"/>
<spacer height="4%" width="50"/>

View File

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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<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"/>
<div width="100%" proportion="3" layout="horizontal-row" >
<div width="48%" height="100%" layout="vertical-row" >