Raven Core  3.0.0
P2P Digital Currency
guiconstants.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 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_GUICONSTANTS_H
7 #define RAVEN_QT_GUICONSTANTS_H
8 
9 /* Milliseconds between model updates */
10 static const int MODEL_UPDATE_DELAY = 250;
11 
12 /* AskPassphraseDialog -- Maximum passphrase length */
13 static const int MAX_PASSPHRASE_SIZE = 1024;
14 
15 /* RavenGUI -- Size of icons in status bar */
16 static const int STATUSBAR_ICONSIZE = 16;
17 
18 static const bool DEFAULT_SPLASHSCREEN = true;
19 
20 /* Invalid field background style */
21 #define STYLE_INVALID "background:#FF8080; border: 1px solid lightgray; padding: 0px;"
22 #define STYLE_VALID "border: 1px solid lightgray; padding: 0px;"
23 
24 /* Transaction list -- unconfirmed transaction */
25 #define COLOR_UNCONFIRMED QColor(128, 128, 128)
26 /* Transaction list -- negative amount */
27 #define COLOR_NEGATIVE QColor(255, 0, 0)
28 /* Transaction list -- bare address (without label) */
29 #define COLOR_BAREADDRESS QColor(140, 140, 140)
30 /* Transaction list -- TX status decoration - open until date */
31 #define COLOR_TX_STATUS_OPENUNTILDATE QColor(64, 64, 255)
32 /* Transaction list -- TX status decoration - offline */
33 #define COLOR_TX_STATUS_OFFLINE QColor(192, 192, 192)
34 /* Transaction list -- TX status decoration - danger, tx needs attention */
35 #define COLOR_TX_STATUS_DANGER QColor(200, 100, 100)
36 /* Transaction list -- TX status decoration - default color */
37 #define COLOR_BLACK QColor(0, 0, 0)
38 /* Widget Background color - default color */
39 #define COLOR_WHITE QColor(255, 255, 255)
40 
41 #define COLOR_WALLETFRAME_SHADOW QColor(0,0,0,71)
42 
43 /* Color of labels */
44 #define COLOR_LABELS QColor("#4960ad")
45 
47 /* Background color, very light gray */
48 #define COLOR_BACKGROUND_LIGHT QColor("#fbfbfe")
49 /* Ravencoin dark orange */
50 #define COLOR_DARK_ORANGE QColor("#f05339")
51 /* Ravencoin light orange */
52 #define COLOR_LIGHT_ORANGE QColor("#f79433")
53 /* Ravencoin dark blue */
54 #define COLOR_DARK_BLUE QColor("#475eaa")
55 /* Ravencoin light blue */
56 #define COLOR_LIGHT_BLUE QColor("#5874cf")
57 /* Ravencoin asset text */
58 #define COLOR_ASSET_TEXT QColor(255, 255, 255)
59 /* Ravencoin shadow color - light mode */
60 #define COLOR_SHADOW_LIGHT QColor("#e1e6f3")
61 /* Toolbar not selected text color */
62 #define COLOR_TOOLBAR_NOT_SELECTED_TEXT QColor("#a5b7f3")
63 /* Toolbar selected text color */
64 #define COLOR_TOOLBAR_SELECTED_TEXT COLOR_WHITE
65 
67 /* Widget background color, dark mode */
68 #define COLOR_WIDGET_BACKGROUND_DARK QColor("#1c2535")
69 /* Ravencoin shadow color - dark mode */
70 #define COLOR_SHADOW_DARK QColor("#0c1b3d")
71 /* Ravencoin Light blue - dark mode - dark mode */
72 #define COLOR_LIGHT_BLUE_DARK QColor("#1e2636")
73 /* Ravencoin Dark blue - dark mode - dark mode */
74 #define COLOR_DARK_BLUE_DARK QColor("#0b1018")
75 /* Pricing widget background color */
76 #define COLOR_PRICING_WIDGET QColor("#161e2d")
77 /* Ravencoin dark mode administrator background color */
78 #define COLOR_ADMIN_CARD_DARK COLOR_BLACK
79 /* Ravencoin dark mode regular asset background color */
80 #define COLOR_REGULAR_CARD_DARK_BLUE_DARK_MODE QColor("#06132a")
81 /* Ravencoin dark mode regular asset background color */
82 #define COLOR_REGULAR_CARD_LIGHT_BLUE_DARK_MODE QColor("#0e1b3b")
83 /* Toolbar not selected text color */
84 #define COLOR_TOOLBAR_NOT_SELECTED_TEXT_DARK_MODE QColor("#6c80c5")
85 /* Toolbar selected text color */
86 #define COLOR_TOOLBAR_SELECTED_TEXT_DARK_MODE QColor("#c5ccdf")
87 
88 
89 /* Ravencoin label color as a string */
90 #define STRING_LABEL_COLOR "color: #4960ad"
91 
92 
93 
94 
95 
96 
97 
98 
99 /* Tooltips longer than this (in characters) are converted into rich text,
100  so that they can be word-wrapped.
101  */
102 static const int TOOLTIP_WRAP_THRESHOLD = 80;
103 
104 /* Maximum allowed URI length */
105 static const int MAX_URI_LENGTH = 255;
106 
107 /* QRCodeDialog -- size of exported QR Code image */
108 #define QR_IMAGE_SIZE 300
109 
110 /* Number of frames in spinner animation */
111 #define SPINNER_FRAMES 36
112 
113 #define QAPP_ORG_NAME "Raven"
114 #define QAPP_ORG_DOMAIN "raven.org"
115 #define QAPP_APP_NAME_DEFAULT "Raven-Qt"
116 #define QAPP_APP_NAME_TESTNET "Raven-Qt-testnet"
117 
118 #endif // RAVEN_QT_GUICONSTANTS_H