forked from cnlpete/ttrss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.cpp
More file actions
73 lines (64 loc) · 2.17 KB
/
theme.cpp
File metadata and controls
73 lines (64 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* This file is part of TTRss, a Tiny Tiny RSS Reader App
* for MeeGo Harmattan and Sailfish OS.
* Copyright (C) 2012–2014 Hauke Schade
*
* TTRss is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* TTRss is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with TTRss; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
* http://www.gnu.org/licenses/.
*/
#include "theme.hh"
QScopedPointer<Theme> Theme::m_instance(0);
Theme *Theme::instance() {
if (m_instance.isNull())
m_instance.reset(new Theme);
return m_instance.data();
}
Theme::Theme(QObject *parent) : QObject(parent) { }
int Theme::fontSizeTiny() const {
return 16; }
int Theme::fontSizeExtraSmall() const {
return 18; }
int Theme::fontSizeSmall() const {
return 20; }
int Theme::fontSizeMedium() const {
return 24; }
int Theme::fontSizeLarge() const {
return 26; }
int Theme::fontSizeExtraLarge() const {
return 28; }
int Theme::fontSizeHuge() const {
return 32; }
int Theme::paddingSmall() const {
return 6; }
int Theme::paddingMedium() const {
return 8; }
int Theme::paddingLarge() const {
return 10; }
QString Theme::primaryColor() const {
return "#000000"; }
QString Theme::secondaryColor() const {
return "#888888"; }
QString Theme::highlightColor() const {
return "#cc6633"; }
QString Theme::secondaryHighlightColor() const {
return "#888888"; }
QString Theme::primaryColorInverted() const {
return "#ffffff"; }
QString Theme::secondaryColorInverted() const {
return "#aaaaaa"; }
QString Theme::highlightColorInverted() const {
return "#dd7744"; }
QString Theme::secondaryHighlightColorInverted() const {
return "#aaaaaa"; }