~ubuntu-branches/ubuntu/natty/plasma-mobile/natty

« back to all changes in this revision

Viewing changes to bindings/private/theme.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Belem
  • Date: 2011-01-01 16:58:27 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110101165827-vij700zj247uxcdr
Tags: 0.0~svn20110101-0ubuntu1
* New svn snapshot
* Remove kubuntu_01_library_version.diff and
  debian-changes-0.0~svn20100830-0ubuntu4, they don't apply and aren't
  needed in the current snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright 2010 Marco Martin <mart@kde.org>                            *
3
 
 *                                                                         *
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.                                   *
8
 
 *                                                                         *
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.                          *
13
 
 *                                                                         *
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
 
 ***************************************************************************/
19
 
 
20
 
#include "theme_p.h"
21
 
 
22
 
#include <plasma/theme.h>
23
 
 
24
 
ThemeProxy::ThemeProxy(QObject *parent)
25
 
    : QObject(parent)
26
 
{
27
 
    connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SIGNAL(themeChanged()));
28
 
}
29
 
 
30
 
ThemeProxy::~ThemeProxy()
31
 
{
32
 
}
33
 
 
34
 
QColor ThemeProxy::textColor() const
35
 
{
36
 
    return Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);
37
 
}
38
 
 
39
 
QColor ThemeProxy::highlightColor() const
40
 
{
41
 
    return Plasma::Theme::defaultTheme()->color(Plasma::Theme::HighlightColor);
42
 
}
43
 
 
44
 
QColor ThemeProxy::backgroundColor() const
45
 
{
46
 
    return Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor);
47
 
}
48
 
 
49
 
QColor ThemeProxy::buttonTextColor() const
50
 
{
51
 
    return Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonTextColor);
52
 
}
53
 
 
54
 
QColor ThemeProxy::buttonBackgroundColor() const
55
 
{
56
 
    return Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonBackgroundColor);
57
 
}
58
 
 
59
 
QColor ThemeProxy::linkColor() const
60
 
{
61
 
    return Plasma::Theme::defaultTheme()->color(Plasma::Theme::LinkColor);
62
 
}
63
 
 
64
 
QColor ThemeProxy::visitedLinkColor() const
65
 
{
66
 
    return Plasma::Theme::defaultTheme()->color(Plasma::Theme::VisitedLinkColor);
67
 
}
68
 
 
69
 
#include "theme_p.moc"
70