Raven Core
3.0.0
P2P Digital Currency
src
qt
platformstyle.h
Go to the documentation of this file.
1
// Copyright (c) 2015 The Bitcoin Core developers
2
// Copyright (c) 2017-2019 The Raven Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef RAVEN_QT_PLATFORMSTYLE_H
7
#define RAVEN_QT_PLATFORMSTYLE_H
8
9
#include <QIcon>
10
#include <QPixmap>
11
#include <QString>
12
13
extern
bool
darkModeEnabled
;
14
15
/* Coin network-specific GUI style information */
16
class
PlatformStyle
17
{
18
public
:
20
static
const
PlatformStyle
*
instantiate
(
const
QString &
platformId
);
21
22
const
QString &
getName
()
const
{
return
name
; }
23
24
bool
getImagesOnButtons
()
const
{
return
imagesOnButtons
; }
25
bool
getUseExtraSpacing
()
const
{
return
useExtraSpacing
; }
26
27
QColor
TextColor
()
const
;
28
QColor
ToolBarSelectedTextColor
()
const
;
29
QColor
ToolBarNotSelectedTextColor
()
const
;
30
QColor
SingleColor
()
const
;
31
QColor
MainBackGroundColor
()
const
;
32
QColor
TopWidgetBackGroundColor
()
const
;
33
QColor
WidgetBackGroundColor
()
const
;
34
QColor
SendEntriesBackGroundColor
()
const
;
35
QColor
ShadowColor
()
const
;
36
QColor
LightBlueColor
()
const
;
37
QColor
DarkBlueColor
()
const
;
38
QColor
LightOrangeColor
()
const
;
39
QColor
DarkOrangeColor
()
const
;
40
41
43
QImage
SingleColorImage
(
const
QString& filename)
const
;
44
46
QIcon
SingleColorIcon
(
const
QString& filename)
const
;
47
49
QIcon
SingleColorIcon
(
const
QIcon& icon)
const
;
50
52
QIcon
SingleColorIcon
(
const
QIcon& icon,
const
QColor& color)
const
;
53
55
QIcon
SingleColorIconOnOff
(
const
QString& filenameOn,
const
QString& filenameOff)
const
;
56
58
QIcon
TextColorIcon
(
const
QString& filename)
const
;
59
61
QIcon
TextColorIcon
(
const
QIcon& icon)
const
;
62
64
QIcon
OrangeColorIcon
(
const
QString& filename)
const
;
65
67
QIcon
OrangeColorIcon
(
const
QIcon& icon)
const
;
68
69
private
:
70
PlatformStyle
(
const
QString &
name
,
bool
imagesOnButtons
,
bool
colorizeIcons
,
bool
useExtraSpacing
);
71
72
QString
name
;
73
bool
imagesOnButtons
;
74
bool
colorizeIcons
;
75
bool
useExtraSpacing
;
76
QColor
singleColor
;
77
QColor
textColor
;
78
/* ... more to come later */
79
};
80
81
#endif // RAVEN_QT_PLATFORMSTYLE_H
82
PlatformStyle::DarkOrangeColor
QColor DarkOrangeColor() const
Definition:
platformstyle.cpp:249
PlatformStyle::getUseExtraSpacing
bool getUseExtraSpacing() const
Definition:
platformstyle.h:25
PlatformStyle::PlatformStyle
PlatformStyle(const QString &name, bool imagesOnButtons, bool colorizeIcons, bool useExtraSpacing)
Definition:
platformstyle.cpp:78
PlatformStyle::TopWidgetBackGroundColor
QColor TopWidgetBackGroundColor() const
Definition:
platformstyle.cpp:196
PlatformStyle::SingleColorIcon
QIcon SingleColorIcon(const QString &filename) const
Colorize an icon (given filename) with the icon color.
Definition:
platformstyle.cpp:110
PlatformStyle::SingleColorIconOnOff
QIcon SingleColorIconOnOff(const QString &filenameOn, const QString &filenameOff) const
Set icon with two states on and off.
Definition:
platformstyle.cpp:117
PlatformStyle::OrangeColorIcon
QIcon OrangeColorIcon(const QString &filename) const
Colorize an icon (given filename) with the color dark orange.
Definition:
platformstyle.cpp:139
PlatformStyle::TextColorIcon
QIcon TextColorIcon(const QString &filename) const
Colorize an icon (given filename) with the text color.
Definition:
platformstyle.cpp:154
PlatformStyle::singleColor
QColor singleColor
Definition:
platformstyle.h:76
PlatformStyle::DarkBlueColor
QColor DarkBlueColor() const
Definition:
platformstyle.cpp:236
PlatformStyle::MainBackGroundColor
QColor MainBackGroundColor() const
Definition:
platformstyle.cpp:188
PlatformStyle::name
QString name
Definition:
platformstyle.h:72
PlatformStyle::colorizeIcons
bool colorizeIcons
Definition:
platformstyle.h:74
PlatformStyle::ShadowColor
QColor ShadowColor() const
Definition:
platformstyle.cpp:220
PlatformStyle::ToolBarNotSelectedTextColor
QColor ToolBarNotSelectedTextColor() const
Definition:
platformstyle.cpp:180
PlatformStyle::SingleColor
QColor SingleColor() const
Definition:
platformstyle.cpp:254
PlatformStyle::LightOrangeColor
QColor LightOrangeColor() const
Definition:
platformstyle.cpp:244
PlatformStyle::textColor
QColor textColor
Definition:
platformstyle.h:77
PlatformStyle::WidgetBackGroundColor
QColor WidgetBackGroundColor() const
Definition:
platformstyle.cpp:204
PlatformStyle::instantiate
static const PlatformStyle * instantiate(const QString &platformId)
Get style associated with provided platform name, or 0 if not known.
Definition:
platformstyle.cpp:263
PlatformStyle::SingleColorImage
QImage SingleColorImage(const QString &filename) const
Colorize an image (given filename) with the icon color.
Definition:
platformstyle.cpp:103
PlatformStyle::getName
const QString & getName() const
Definition:
platformstyle.h:22
darkModeEnabled
bool darkModeEnabled
Definition:
platformstyle.cpp:17
PlatformStyle::imagesOnButtons
bool imagesOnButtons
Definition:
platformstyle.h:73
PlatformStyle::SendEntriesBackGroundColor
QColor SendEntriesBackGroundColor() const
Definition:
platformstyle.cpp:212
PlatformStyle::TextColor
QColor TextColor() const
Definition:
platformstyle.cpp:164
PlatformStyle::useExtraSpacing
bool useExtraSpacing
Definition:
platformstyle.h:75
PlatformStyle
Definition:
platformstyle.h:16
PlatformStyle::getImagesOnButtons
bool getImagesOnButtons() const
Definition:
platformstyle.h:24
PlatformStyle::LightBlueColor
QColor LightBlueColor() const
Definition:
platformstyle.cpp:228
PlatformStyle::ToolBarSelectedTextColor
QColor ToolBarSelectedTextColor() const
Definition:
platformstyle.cpp:172
platformId
const char * platformId
Definition:
platformstyle.cpp:20
Generated on Mon Jul 29 2019 02:32:20 for Raven Core by
1.8.13