1
/***************************************************************************
2
* Copyright 2010 Marco Martin <mart@kde.org> *
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 *
12
* GNU 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, write to the *
16
* Free Software Foundation, Inc., *
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18
***************************************************************************/
22
#include <plasma/theme.h>
24
ThemeProxy::ThemeProxy(QObject *parent)
27
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SIGNAL(themeChanged()));
30
ThemeProxy::~ThemeProxy()
34
QColor ThemeProxy::textColor() const
36
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);
39
QColor ThemeProxy::highlightColor() const
41
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::HighlightColor);
44
QColor ThemeProxy::backgroundColor() const
46
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor);
49
QColor ThemeProxy::buttonTextColor() const
51
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonTextColor);
54
QColor ThemeProxy::buttonBackgroundColor() const
56
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonBackgroundColor);
59
QColor ThemeProxy::linkColor() const
61
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::LinkColor);
64
QColor ThemeProxy::visitedLinkColor() const
66
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::VisitedLinkColor);
69
#include "theme_p.moc"