diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-05 12:19:31 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-05 12:19:31 -0700 |
commit | 9146b4bff88d2622907b7e9bba618ad9b12da7ce (patch) | |
tree | b2a14ba9089fe2aadea62344104485f2fff6d028 /src | |
parent | 34f27b882cf63ca4dfda6079253adb959ebaeadd (diff) | |
download | mana-9146b4bff88d2622907b7e9bba618ad9b12da7ce.tar.gz mana-9146b4bff88d2622907b7e9bba618ad9b12da7ce.tar.bz2 mana-9146b4bff88d2622907b7e9bba618ad9b12da7ce.tar.xz mana-9146b4bff88d2622907b7e9bba618ad9b12da7ce.zip |
Modified the Colors setup pane to take as much space as it can. I left
it minimal in the first place so that it could be redone as a theme
window in the future, but there's no reason it should be as spread out
as it was until it has been made into one.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/setup_colours.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/setup_colours.cpp b/src/gui/setup_colours.cpp index 07ec9086..695c3f74 100644 --- a/src/gui/setup_colours.cpp +++ b/src/gui/setup_colours.cpp @@ -58,7 +58,7 @@ Setup_Colours::Setup_Colours() : mRedText->addListener(this); mRedSlider = new Slider(0, 255); - mRedSlider->setWidth(90); + mRedSlider->setWidth(160); mRedSlider->setValue(mRedText->getValue()); mRedSlider->setActionEventId("slider_red"); mRedSlider->addActionListener(this); @@ -72,7 +72,7 @@ Setup_Colours::Setup_Colours() : mGreenText->addListener(this); mGreenSlider = new Slider(0, 255); - mGreenSlider->setWidth(90); + mGreenSlider->setWidth(160); mGreenSlider->setValue(mGreenText->getValue()); mGreenSlider->setActionEventId("slider_green"); mGreenSlider->addActionListener(this); @@ -86,7 +86,7 @@ Setup_Colours::Setup_Colours() : mBlueText->addListener(this); mBlueSlider = new Slider(0, 255); - mBlueSlider->setWidth(90); + mBlueSlider->setWidth(160); mBlueSlider->setValue(mBlueText->getValue()); mBlueSlider->setActionEventId("slider_blue"); mBlueSlider->addActionListener(this); @@ -97,18 +97,18 @@ Setup_Colours::Setup_Colours() : LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); - place(0, 0, mScroll, 1, 3).setPadding(2); - place(1, 0, mRedLabel, 2); - place(3, 0, mRedSlider); - place(4, 0, mRedText).setPadding(1); - place(1, 1, mGreenLabel, 2); - place(3, 1, mGreenSlider); - place(4, 1, mGreenText).setPadding(1); - place(1, 2, mBlueLabel, 2); - place(3, 2, mBlueSlider); - place(4, 2, mBlueText).setPadding(1); - - setDimension(gcn::Rectangle(0, 0, 290, 150)); + place(0, 0, mScroll, 4, 3).setPadding(2); + place(0, 3, mRedLabel, 2); + place(2, 3, mRedSlider); + place(3, 3, mRedText).setPadding(1); + place(0, 4, mGreenLabel, 2); + place(2, 4, mGreenSlider); + place(3, 4, mGreenText).setPadding(1); + place(0, 5, mBlueLabel, 2); + place(2, 5, mBlueSlider); + place(3, 5, mBlueText).setPadding(1); + + setDimension(gcn::Rectangle(0, 0, 290, 250)); } Setup_Colours::~Setup_Colours() |