summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-19 00:21:38 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-19 00:21:38 +0300
commit9847915fafee7fc3872aafb4395543b12174a1ae (patch)
tree2230ad7e345fdc46bd30c2c49864194ba1180ab6 /src/gui/theme.cpp
parent0ebeb9512515249f33a9334abf1c52cbb0b6b7bb (diff)
downloadplus-9847915fafee7fc3872aafb4395543b12174a1ae.tar.gz
plus-9847915fafee7fc3872aafb4395543b12174a1ae.tar.bz2
plus-9847915fafee7fc3872aafb4395543b12174a1ae.tar.xz
plus-9847915fafee7fc3872aafb4395543b12174a1ae.zip
Add resize grip padding.
Fix resize grip position. New theme option: resizePadding
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 738b62672..c421e40e3 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -449,6 +449,7 @@ Skin *Theme::readSkin(const std::string &filename, const bool full)
int titlePadding = 4;
int titlebarHeight = 20;
int closePadding = 3;
+ int resizePadding = 2;
std::map<std::string, int> *const mOptions
= new std::map<std::string, int>();
@@ -510,6 +511,11 @@ Skin *Theme::readSkin(const std::string &filename, const bool full)
titlebarHeight = XML::getProperty(
partNode, "value", 16);
}
+ else if (name == "resizePadding")
+ {
+ resizePadding = XML::getProperty(
+ partNode, "value", 2);
+ }
else
{
(*mOptions)[name] = XML::getProperty(
@@ -530,6 +536,7 @@ Skin *Theme::readSkin(const std::string &filename, const bool full)
(*mOptions)["closePadding"] = closePadding;
(*mOptions)["titlebarHeight"] = titlebarHeight;
+ (*mOptions)["resizePadding"] = resizePadding;
Skin *const skin = new Skin(border, images, filename, "", padding,
titlePadding, mOptions);