Minor ajustments to kart color screen, make kart slightly bigger, make XML cleaner

This commit is contained in:
auria.mg 2018-02-12 20:22:35 -05:00
parent ceeb79f3a4
commit 196b5a2bbe
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<div x="2%" y="5%" width="96%" height="90%" layout="vertical-row">
<div id="kart-screen" layout="horizontal-row" width="100%" height="60%" proportion="10" align="center">
<div x="2%" y="0%" width="96%" height="95%" layout="vertical-row">
<div id="kart-screen" layout="horizontal-row" width="100%" proportion="1" align="center">
<model id="model" width="100%" layout="horizontal-row" height="100%">
</model>
</div>
@ -9,7 +9,7 @@
width="100%" text_align="center" word_wrap="true"
I18N="In the kart color slider dialog"/>
<spacer height="30" width="10"/>
<div proportion="1" width="100%" layout="horizontal-row">
<div height="fit" width="100%" layout="horizontal-row">
<gauge id="color-slider" min_value="0" max_value="100" proportion="1"/>
</div>
<spacer height="30" width="10"/>

View File

@ -50,7 +50,6 @@ KartColorSliderDialog::~KartColorSliderDialog()
// ----------------------------------------------------------------------------
void KartColorSliderDialog::beforeAddingWidgets()
{
Widget* kart_screen = getWidget<Widget>("kart-screen");
m_model_view = getWidget<ModelViewWidget>("model");
const core::dimension2du screen_size = irr_driver->getActualScreenSize();