summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorjurkan <jurkan@gmx.de>2012-07-06 22:17:42 +0200
committerjurkan <jurkan@gmx.de>2012-07-06 22:17:42 +0200
commit49f3d93a5f6033a0bb26b3e40728e4e3b8cda414 (patch)
tree931315759953c4e193f19c2fe05ca79efe427e74 /src/gui
parentd754a64e3839b3888d489046546195792e4ecc34 (diff)
downloadmana-49f3d93a5f6033a0bb26b3e40728e4e3b8cda414.tar.gz
mana-49f3d93a5f6033a0bb26b3e40728e4e3b8cda414.tar.bz2
mana-49f3d93a5f6033a0bb26b3e40728e4e3b8cda414.tar.xz
mana-49f3d93a5f6033a0bb26b3e40728e4e3b8cda414.zip
LPC gui theming (replaced windows through scrolls)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/resizegrip.cpp12
-rw-r--r--src/gui/widgets/window.cpp6
2 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/widgets/resizegrip.cpp b/src/gui/widgets/resizegrip.cpp
index da97ac69..7b37b282 100644
--- a/src/gui/widgets/resizegrip.cpp
+++ b/src/gui/widgets/resizegrip.cpp
@@ -58,11 +58,11 @@ ResizeGrip::~ResizeGrip()
void ResizeGrip::draw(gcn::Graphics *graphics)
{
- if (config.getFloatValue("guialpha") != mAlpha)
- {
- mAlpha = config.getFloatValue("guialpha");
- gripImage->setAlpha(mAlpha);
- }
+ //if (config.getFloatValue("guialpha") != mAlpha)
+ //{
+ // mAlpha = config.getFloatValue("guialpha");
+ // gripImage->setAlpha(mAlpha);
+ //}
- static_cast<Graphics*>(graphics)->drawImage(gripImage, 0, 0);
+ //static_cast<Graphics*>(graphics)->drawImage(gripImage, 0, 0);
}
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index c8788c75..406f55ef 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -68,8 +68,8 @@ Window::Window(const std::string &caption, bool modal, Window *parent,
instances++;
setFrameSize(0);
- setPadding(3);
- setTitleBarHeight(20);
+ setPadding(5);
+ setTitleBarHeight(25);
// Loads the skin
mSkin = Theme::instance()->load(skin);
@@ -123,7 +123,7 @@ void Window::draw(gcn::Graphics *graphics)
{
g->setColor(Theme::getThemeColor(Theme::TEXT));
g->setFont(getFont());
- g->drawText(getCaption(), 7, 5, gcn::Graphics::LEFT);
+ g->drawText(getCaption(), 7, 10, gcn::Graphics::LEFT);
}
// Draw Close Button