2 KSysGuard, the KDE System Guard
4 Copyright (c) 1999 - 2001 Chris Schlaeger <cs@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License version 2 or at your option version 3 as published by
9 the Free Software Foundation.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef KSG_STYLEENGINE_H
23 #define KSG_STYLEENGINE_H
31 class StyleEngine
: public QObject
36 StyleEngine(QObject
* parent
= 0);
39 void readProperties( const KConfigGroup
& cfg
);
40 void saveProperties( KConfigGroup
& cfg
);
42 const QColor
& firstForegroundColor() const;
43 const QColor
& secondForegroundColor() const;
44 const QColor
& alarmColor() const;
45 const QColor
& backgroundColor() const;
47 uint
fontSize() const;
49 const QColor
& sensorColor( int pos
);
50 uint
numSensorColors() const;
54 QColor mFirstForegroundColor
;
55 QColor mSecondForegroundColor
;
57 QColor mBackgroundColor
;
59 QList
<QColor
> mSensorColors
;
61 extern StyleEngine
* Style
;