File indexing completed on 2024-11-24 04:59:26

0001 /*
0002     SPDX-FileCopyrightText: 2006-2007 Aaron Seigo <aseigo@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "quicktheme.h"
0008 
0009 namespace Plasma
0010 {
0011 QuickTheme::QuickTheme(QObject *parent)
0012     : Theme(parent)
0013 {
0014     connect(this, &Theme::themeChanged, this, &QuickTheme::themeChangedProxy);
0015 }
0016 
0017 QuickTheme::~QuickTheme()
0018 {
0019 }
0020 
0021 QColor QuickTheme::textColor() const
0022 {
0023     return Plasma::Theme::color(Plasma::Theme::TextColor);
0024 }
0025 
0026 QColor QuickTheme::highlightColor() const
0027 {
0028     return Plasma::Theme::color(Plasma::Theme::HighlightColor);
0029 }
0030 
0031 QColor QuickTheme::highlightedTextColor() const
0032 {
0033     return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor);
0034 }
0035 
0036 QColor QuickTheme::positiveTextColor() const
0037 {
0038     return Plasma::Theme::color(Plasma::Theme::PositiveTextColor);
0039 }
0040 
0041 QColor QuickTheme::neutralTextColor() const
0042 {
0043     return Plasma::Theme::color(Plasma::Theme::NeutralTextColor);
0044 }
0045 
0046 QColor QuickTheme::negativeTextColor() const
0047 {
0048     return Plasma::Theme::color(Plasma::Theme::NegativeTextColor);
0049 }
0050 
0051 QColor QuickTheme::disabledTextColor() const
0052 {
0053     return Plasma::Theme::color(Plasma::Theme::DisabledTextColor);
0054 }
0055 
0056 QColor QuickTheme::backgroundColor() const
0057 {
0058     return Plasma::Theme::color(Plasma::Theme::BackgroundColor);
0059 }
0060 
0061 QColor QuickTheme::buttonTextColor() const
0062 {
0063     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
0064 }
0065 
0066 QColor QuickTheme::buttonBackgroundColor() const
0067 {
0068     return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::ButtonColorGroup);
0069 }
0070 
0071 QColor QuickTheme::buttonPositiveTextColor() const
0072 {
0073     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
0074 }
0075 
0076 QColor QuickTheme::buttonNeutralTextColor() const
0077 {
0078     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
0079 }
0080 
0081 QColor QuickTheme::buttonNegativeTextColor() const
0082 {
0083     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ButtonColorGroup);
0084 }
0085 
0086 QColor QuickTheme::linkColor() const
0087 {
0088     return Plasma::Theme::color(Plasma::Theme::LinkColor);
0089 }
0090 
0091 QColor QuickTheme::visitedLinkColor() const
0092 {
0093     return Plasma::Theme::color(Plasma::Theme::VisitedLinkColor);
0094 }
0095 
0096 QColor QuickTheme::buttonHoverColor() const
0097 {
0098     return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::ButtonColorGroup);
0099 }
0100 
0101 QColor QuickTheme::buttonFocusColor() const
0102 {
0103     return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::ButtonColorGroup);
0104 }
0105 
0106 QColor QuickTheme::buttonHighlightedTextColor() const
0107 {
0108     return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::ButtonColorGroup);
0109 }
0110 
0111 QColor QuickTheme::viewTextColor() const
0112 {
0113     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
0114 }
0115 
0116 QColor QuickTheme::viewBackgroundColor() const
0117 {
0118     return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::ViewColorGroup);
0119 }
0120 
0121 QColor QuickTheme::viewHoverColor() const
0122 {
0123     return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::ViewColorGroup);
0124 }
0125 
0126 QColor QuickTheme::viewFocusColor() const
0127 {
0128     return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::ViewColorGroup);
0129 }
0130 
0131 QColor QuickTheme::viewHighlightedTextColor() const
0132 {
0133     return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::ViewColorGroup);
0134 }
0135 
0136 QColor QuickTheme::viewPositiveTextColor() const
0137 {
0138     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
0139 }
0140 
0141 QColor QuickTheme::viewNeutralTextColor() const
0142 {
0143     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
0144 }
0145 
0146 QColor QuickTheme::viewNegativeTextColor() const
0147 {
0148     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ViewColorGroup);
0149 }
0150 
0151 QColor QuickTheme::complementaryTextColor() const
0152 {
0153     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
0154 }
0155 
0156 QColor QuickTheme::complementaryBackgroundColor() const
0157 {
0158     return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::ComplementaryColorGroup);
0159 }
0160 
0161 QColor QuickTheme::complementaryHoverColor() const
0162 {
0163     return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::ComplementaryColorGroup);
0164 }
0165 
0166 QColor QuickTheme::complementaryFocusColor() const
0167 {
0168     return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::ComplementaryColorGroup);
0169 }
0170 
0171 QColor QuickTheme::complementaryHighlightedTextColor() const
0172 {
0173     return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::ComplementaryColorGroup);
0174 }
0175 
0176 QColor QuickTheme::complementaryPositiveTextColor() const
0177 {
0178     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
0179 }
0180 
0181 QColor QuickTheme::complementaryNeutralTextColor() const
0182 {
0183     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
0184 }
0185 
0186 QColor QuickTheme::complementaryNegativeTextColor() const
0187 {
0188     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::ComplementaryColorGroup);
0189 }
0190 
0191 QColor QuickTheme::headerTextColor() const
0192 {
0193     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
0194 }
0195 
0196 QColor QuickTheme::headerBackgroundColor() const
0197 {
0198     return Plasma::Theme::color(Plasma::Theme::BackgroundColor, Plasma::Theme::HeaderColorGroup);
0199 }
0200 
0201 QColor QuickTheme::headerHoverColor() const
0202 {
0203     return Plasma::Theme::color(Plasma::Theme::HoverColor, Plasma::Theme::HeaderColorGroup);
0204 }
0205 
0206 QColor QuickTheme::headerFocusColor() const
0207 {
0208     return Plasma::Theme::color(Plasma::Theme::FocusColor, Plasma::Theme::HeaderColorGroup);
0209 }
0210 
0211 QColor QuickTheme::headerHighlightedTextColor() const
0212 {
0213     return Plasma::Theme::color(Plasma::Theme::HighlightedTextColor, Plasma::Theme::HeaderColorGroup);
0214 }
0215 
0216 QColor QuickTheme::headerPositiveTextColor() const
0217 {
0218     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
0219 }
0220 
0221 QColor QuickTheme::headerNeutralTextColor() const
0222 {
0223     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
0224 }
0225 
0226 QColor QuickTheme::headerNegativeTextColor() const
0227 {
0228     return Plasma::Theme::color(Plasma::Theme::TextColor, Plasma::Theme::HeaderColorGroup);
0229 }
0230 }
0231 
0232 #include "moc_quicktheme.cpp"