Libplasma

quicktheme.cpp
1/*
2 SPDX-FileCopyrightText: 2006-2007 Aaron Seigo <aseigo@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "quicktheme.h"
8
9namespace Plasma
10{
11QuickTheme::QuickTheme(QObject *parent)
12 : Theme(parent)
13{
14 connect(this, &Theme::themeChanged, this, &QuickTheme::themeChangedProxy);
15}
16
17QuickTheme::~QuickTheme()
18{
19}
20
21QColor QuickTheme::textColor() const
22{
24}
25
26QColor QuickTheme::highlightColor() const
27{
29}
30
31QColor QuickTheme::highlightedTextColor() const
32{
34}
35
36QColor QuickTheme::positiveTextColor() const
37{
39}
40
41QColor QuickTheme::neutralTextColor() const
42{
44}
45
46QColor QuickTheme::negativeTextColor() const
47{
49}
50
51QColor QuickTheme::disabledTextColor() const
52{
54}
55
56QColor QuickTheme::backgroundColor() const
57{
59}
60
61QColor QuickTheme::buttonTextColor() const
62{
63 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
64}
65
66QColor QuickTheme::buttonBackgroundColor() const
67{
68 return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::ButtonColorGroup);
69}
70
71QColor QuickTheme::buttonPositiveTextColor() const
72{
73 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
74}
75
76QColor QuickTheme::buttonNeutralTextColor() const
77{
78 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
79}
80
81QColor QuickTheme::buttonNegativeTextColor() const
82{
83 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
84}
85
86QColor QuickTheme::linkColor() const
87{
89}
90
91QColor QuickTheme::visitedLinkColor() const
92{
94}
95
96QColor QuickTheme::buttonHoverColor() const
97{
98 return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::ButtonColorGroup);
99}
100
101QColor QuickTheme::buttonFocusColor() const
102{
103 return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::ButtonColorGroup);
104}
105
106QColor QuickTheme::buttonHighlightedTextColor() const
107{
108 return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::ButtonColorGroup);
109}
110
111QColor QuickTheme::viewTextColor() const
112{
113 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
114}
115
116QColor QuickTheme::viewBackgroundColor() const
117{
118 return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::ViewColorGroup);
119}
120
121QColor QuickTheme::viewHoverColor() const
122{
123 return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::ViewColorGroup);
124}
125
126QColor QuickTheme::viewFocusColor() const
127{
128 return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::ViewColorGroup);
129}
130
131QColor QuickTheme::viewHighlightedTextColor() const
132{
133 return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::ViewColorGroup);
134}
135
136QColor QuickTheme::viewPositiveTextColor() const
137{
138 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
139}
140
141QColor QuickTheme::viewNeutralTextColor() const
142{
143 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
144}
145
146QColor QuickTheme::viewNegativeTextColor() const
147{
148 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
149}
150
151QColor QuickTheme::complementaryTextColor() const
152{
153 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
154}
155
156QColor QuickTheme::complementaryBackgroundColor() const
157{
158 return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::ComplementaryColorGroup);
159}
160
161QColor QuickTheme::complementaryHoverColor() const
162{
163 return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::ComplementaryColorGroup);
164}
165
166QColor QuickTheme::complementaryFocusColor() const
167{
168 return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::ComplementaryColorGroup);
169}
170
171QColor QuickTheme::complementaryHighlightedTextColor() const
172{
173 return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::ComplementaryColorGroup);
174}
175
176QColor QuickTheme::complementaryPositiveTextColor() const
177{
178 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
179}
180
181QColor QuickTheme::complementaryNeutralTextColor() const
182{
183 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
184}
185
186QColor QuickTheme::complementaryNegativeTextColor() const
187{
188 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
189}
190
191QColor QuickTheme::headerTextColor() const
192{
193 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
194}
195
196QColor QuickTheme::headerBackgroundColor() const
197{
198 return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::HeaderColorGroup);
199}
200
201QColor QuickTheme::headerHoverColor() const
202{
203 return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::HeaderColorGroup);
204}
205
206QColor QuickTheme::headerFocusColor() const
207{
208 return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::HeaderColorGroup);
209}
210
211QColor QuickTheme::headerHighlightedTextColor() const
212{
213 return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::HeaderColorGroup);
214}
215
216QColor QuickTheme::headerPositiveTextColor() const
217{
218 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
219}
220
221QColor QuickTheme::headerNeutralTextColor() const
222{
223 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
224}
225
226QColor QuickTheme::headerNegativeTextColor() const
227{
228 return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
229}
230}
231
232#include "moc_quicktheme.cpp"
Interface to the Plasma theme.
Definition theme.h:40
void themeChanged()
Emitted when the user changes the theme.
QColor color(ColorRole role, ColorGroup group=NormalColorGroup) const
Returns the text color to be used by items resting on the background.
Definition theme.cpp:242
@ DisabledTextColor
color of disabled text
Definition theme.h:71
@ PositiveTextColor
color of foreground objects with a "positive message" connotation (usually green)
Definition theme.h:68
@ HighlightedTextColor
color contrasting with HighlightColor, to be used for instance with
Definition theme.h:67
@ VisitedLinkColor
color visited clickable links
Definition theme.h:66
@ HighlightColor
the text highlight color to be used by items resting on the background
Definition theme.h:61
@ LinkColor
color for clickable links
Definition theme.h:65
@ NeutralTextColor
color of foreground objects with a "neutral message" connotation (usually yellow)
Definition theme.h:69
@ HoverColor
color for hover effect on view
Definition theme.h:63
@ NegativeTextColor
color of foreground objects with a "negative message" connotation (usually red)
Definition theme.h:70
@ BackgroundColor
the default background color
Definition theme.h:60
@ TextColor
the text color to be used by items resting on the background
Definition theme.h:59
@ FocusColor
color for focus effect on view
Definition theme.h:64
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.