1
/********************************************************************
2
Copyright (C) 2009 Martin Gräßlin <kde@martin-graesslin.com>
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*********************************************************************/
19
// This class encapsulates all theme config values
20
// it's a separate class as it's needed by both deco and config dialog
33
void load(const KConfig &conf);
36
QColor activeTextColor(bool useTabs = false, bool focused = true) const;
38
QColor inactiveTextColor(bool useTabs = false, bool focused = true) const;
39
QColor activeTextShadowColor() const {
40
return m_activeTextShadowColor;
42
QColor inactiveTextShadowColor() const {
43
return m_inactiveTextShadowColor;
45
int textShadowOffsetX() const {
46
return m_textShadowOffsetX;
48
int textShadowOffsetY() const {
49
return m_textShadowOffsetY;
51
bool useTextShadow() const {
52
return m_useTextShadow;
54
bool haloActive() const {
57
bool haloInactive() const {
58
return m_haloInactive;
61
Qt::Alignment alignment() const {
64
Qt::Alignment verticalAlignment() const {
65
return m_verticalAlignment;
67
int animationTime() const {
68
return m_animationTime;
71
int borderLeft() const {
74
int borderRight() const {
77
int borderBottom() const {
78
return m_borderBottom;
80
int borderTop() const {
84
int titleEdgeTop() const {
85
return m_titleEdgeTop;
87
int titleEdgeBottom() const {
88
return m_titleEdgeBottom;
90
int titleEdgeLeft() const {
91
return m_titleEdgeLeft;
93
int titleEdgeRight() const {
94
return m_titleEdgeRight;
96
int titleEdgeTopMaximized() const {
97
return m_titleEdgeTopMaximized;
99
int titleEdgeBottomMaximized() const {
100
return m_titleEdgeBottomMaximized;
102
int titleEdgeLeftMaximized() const {
103
return m_titleEdgeLeftMaximized;
105
int titleEdgeRightMaximized() const {
106
return m_titleEdgeRightMaximized;
108
int titleBorderLeft() const {
109
return m_titleBorderLeft;
111
int titleBorderRight() const {
112
return m_titleBorderRight;
114
int titleHeight() const {
115
return m_titleHeight;
118
int buttonWidth() const {
119
return m_buttonWidth;
121
int buttonWidthMinimize() const {
122
return m_buttonWidthMinimize;
124
int buttonWidthMaximizeRestore() const {
125
return m_buttonWidthMaximizeRestore;
127
int buttonWidthClose() const {
128
return m_buttonWidthClose;
130
int buttonWidthAllDesktops() const {
131
return m_buttonWidthAllDesktops;
133
int buttonWidthKeepAbove() const {
134
return m_buttonWidthKeepAbove;
136
int buttonWidthKeepBelow() const {
137
return m_buttonWidthKeepBelow;
139
int buttonWidthShade() const {
140
return m_buttonWidthShade;
142
int buttonWidthHelp() const {
143
return m_buttonWidthHelp;
145
int buttonWidthMenu() const {
146
return m_buttonWidthMenu;
148
int buttonHeight() const {
149
return m_buttonHeight;
151
int buttonSpacing() const {
152
return m_buttonSpacing;
154
int buttonMarginTop() const {
155
return m_buttonMarginTop;
157
int explicitButtonSpacer() const {
158
return m_explicitButtonSpacer;
161
int paddingLeft() const {
162
return m_paddingLeft;
164
int paddingRight() const {
165
return m_paddingRight;
167
int paddingTop() const {
170
int paddingBottom() const {
171
return m_paddingBottom;
174
QString defaultButtonsLeft() const {
175
return m_defaultButtonsLeft;
177
QString defaultButtonsRight() const {
178
return m_defaultButtonsRight;
180
bool shadow() const {
184
int decorationPosition() const {
185
return m_decorationPosition;
189
QColor m_activeTextColor;
190
QColor m_activeFocusedTextColor;
191
QColor m_activeUnfocusedTextColor;
192
QColor m_inactiveTextColor;
193
QColor m_inactiveFocusedTextColor;
194
QColor m_inactiveUnfocusedTextColor;
195
QColor m_activeTextShadowColor;
196
QColor m_inactiveTextShadowColor;
197
int m_textShadowOffsetX;
198
int m_textShadowOffsetY;
199
bool m_useTextShadow;
202
Qt::Alignment m_alignment;
203
Qt::Alignment m_verticalAlignment;
212
int m_titleEdgeBottom;
214
int m_titleEdgeRight;
215
int m_titleEdgeTopMaximized;
216
int m_titleEdgeBottomMaximized;
217
int m_titleEdgeLeftMaximized;
218
int m_titleEdgeRightMaximized;
219
int m_titleBorderLeft;
220
int m_titleBorderRight;
225
int m_buttonWidthMinimize;
226
int m_buttonWidthMaximizeRestore;
227
int m_buttonWidthClose;
228
int m_buttonWidthAllDesktops;
229
int m_buttonWidthKeepAbove;
230
int m_buttonWidthKeepBelow;
231
int m_buttonWidthShade;
232
int m_buttonWidthHelp;
233
int m_buttonWidthMenu;
236
int m_buttonMarginTop;
237
int m_explicitButtonSpacer;
247
QString m_defaultButtonsLeft;
248
QString m_defaultButtonsRight;
251
int m_decorationPosition;