8#include <KDecoration2/Decoration>
24 void update(
const QPalette &pal);
28 return active ? m_activeTitleBarColor : m_inactiveTitleBarColor;
32 return m_activeTitleBarColor;
36 return m_inactiveTitleBarColor;
40 return m_activeTitleBarBlendColor;
44 return m_inactiveTitleBarBlendColor;
46 const QColor &
frame(
bool active)
const
48 return active ? m_activeFrameColor : m_inactiveFrameColor;
52 return m_activeFrameColor;
56 return m_inactiveFrameColor;
58 const QColor &
font(
bool active)
const
60 return active ? m_activeFontColor : m_inactiveFontColor;
64 return m_activeFontColor;
68 return m_inactiveFontColor;
72 return m_activeButtonColor;
76 return m_inactiveButtonColor;
80 return m_activeHandle;
84 return m_inactiveHandle;
92 void init(
const QPalette &pal);
93 QColor m_activeTitleBarColor;
94 QColor m_inactiveTitleBarColor;
95 QColor m_activeTitleBarBlendColor;
96 QColor m_inactiveTitleBarBlendColor;
97 QColor m_activeFrameColor;
98 QColor m_inactiveFrameColor;
99 QColor m_activeFontColor;
100 QColor m_inactiveFontColor;
101 QColor m_activeButtonColor;
102 QColor m_inactiveButtonColor;
103 QColor m_activeHandle;
104 QColor m_inactiveHandle;
246 void slotActiveChanged();
250 KDecoration2::Decoration *m_decoration;
252 QMetaObject::Connection m_paletteConnection;
263 Borders(QObject *parent =
nullptr);
275 operator QMargins() const;
309#define GETTER(name) \
310 inline int Borders::name() const \
void setBorders(int value)
void setBottom(int bottom)
void setSideBorders(int value)
void setAllBorders(int value)
const QColor & activeButtonColor() const
const QPalette & palette() const
const QColor & activeTitleBarBlendColor() const
const QColor & activeFrame() const
const QColor & titleBarColor(bool active) const
const QColor & inactiveTitleBarBlendColor() const
const QColor & inactiveFrame() const
const QColor & frame(bool active) const
const QColor & inactiveTitleBarColor() const
const QColor & activeTitleBarColor() const
const QColor & inactiveHandle() const
const QColor & activeHandle() const
const QColor & activeFont() const
void update(const QPalette &pal)
const QColor & inactiveButtonColor() const
ColorSettings(const QPalette &pal)
const QColor & font(bool active) const
const QColor & inactiveFont() const
Common Window Decoration Options.
QList< int > titleButtonsRight
KDecoration2::Decoration * decoration() const
QColor titleBarBlendColor
KDecoration2::Decoration * deco
void setDecoration(KDecoration2::Decoration *decoration)
@ BorderLarge
Larger borders.
@ BorderHuge
Huge borders.
@ BorderNone
No borders except title.
@ BorderNormal
Standard size borders, the default setting.
@ BorderNoSides
No borders on sides.
@ BorderVeryHuge
Very huge borders.
@ BorderOversized
Oversized borders.
@ BorderVeryLarge
Very large borders.
@ BorderTiny
Minimal borders.
DecorationOptions(QObject *parent=nullptr)
@ DecorationButtonKeepAbove
@ DecorationButtonApplicationMenu
@ DecorationButtonMaximizeRestore
@ DecorationButtonKeepBelow
@ DecorationButtonOnAllDesktops
@ DecorationButtonMinimize
@ DecorationButtonQuickHelp
@ DecorationButtonExplicitSpacer
int mousePressAndHoldInterval
~DecorationOptions() override
QList< int > titleButtonsLeft
void titleButtonsChanged()