ORE Studio 0.0.4
Loading...
Searching...
No Matches
DialogStyles.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2025 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 */
20#ifndef ORES_QT_DIALOG_STYLES_HPP
21#define ORES_QT_DIALOG_STYLES_HPP
22
23#include <QString>
24
25namespace ores::qt {
26
34 static inline const QString panel = R"(
35 QWidget#mainPanel {
36 background-color: #1A1A1A;
37 }
38 )";
39
40 static inline const QString input_field = R"(
41 QLineEdit {
42 background-color: #2d2d2d;
43 border: 1px solid #3d3d3d;
44 border-radius: 4px;
45 padding: 8px 12px;
46 font-size: 13px;
47 color: #ffffff;
48 }
49 QLineEdit:focus {
50 border-color: #5a5a5a;
51 background-color: #333333;
52 }
53 QLineEdit::placeholder {
54 color: #707070;
55 }
56 )";
57
58 static inline const QString input_field_match = R"(
59 QLineEdit {
60 background-color: #2d2d2d;
61 border: 2px solid #4CAF50;
62 border-radius: 4px;
63 padding: 8px 12px;
64 font-size: 13px;
65 color: #ffffff;
66 }
67 QLineEdit:focus {
68 border-color: #4CAF50;
69 background-color: #333333;
70 }
71 )";
72
73 static inline const QString input_field_mismatch = R"(
74 QLineEdit {
75 background-color: #2d2d2d;
76 border: 2px solid #FF9800;
77 border-radius: 4px;
78 padding: 8px 12px;
79 font-size: 13px;
80 color: #ffffff;
81 }
82 QLineEdit:focus {
83 border-color: #FF9800;
84 background-color: #333333;
85 }
86 )";
87
88 static inline const QString spin_box = R"(
89 QSpinBox {
90 background-color: #2d2d2d;
91 border: 1px solid #3d3d3d;
92 border-radius: 4px;
93 padding: 8px 12px;
94 font-size: 13px;
95 color: #ffffff;
96 }
97 QSpinBox:focus {
98 border-color: #5a5a5a;
99 background-color: #333333;
100 }
101 )";
102
103 static inline const QString primary_button = R"(
104 QPushButton {
105 background-color: #3d3d3d;
106 color: #ffffff;
107 border: none;
108 border-radius: 4px;
109 padding: 10px 24px;
110 font-size: 14px;
111 font-weight: bold;
112 }
113 QPushButton:hover {
114 background-color: #4a4a4a;
115 }
116 QPushButton:pressed {
117 background-color: #333333;
118 }
119 QPushButton:disabled {
120 background-color: #2a2a2a;
121 color: #555555;
122 }
123 )";
124
125 static inline const QString checkbox = R"(
126 QCheckBox {
127 background: transparent;
128 color: #909090;
129 font-size: 12px;
130 spacing: 6px;
131 }
132 QCheckBox::indicator {
133 width: 14px;
134 height: 14px;
135 border: 1px solid #3d3d3d;
136 border-radius: 2px;
137 background-color: #2d2d2d;
138 }
139 QCheckBox::indicator:checked {
140 background-color: #4a4a4a;
141 border-color: #5a5a5a;
142 }
143 )";
144
145 static inline const QString link_button = R"(
146 QPushButton {
147 background: transparent;
148 border: none;
149 color: #909090;
150 font-size: 12px;
151 padding: 0;
152 }
153 QPushButton:hover {
154 color: #ffffff;
155 text-decoration: underline;
156 }
157 )";
158
159 static inline const QString field_label = R"(
160 QLabel {
161 background: transparent;
162 color: #909090;
163 font-size: 10px;
164 font-weight: bold;
165 letter-spacing: 1px;
166 }
167 )";
168
169 static inline const QString version = R"(
170 QLabel {
171 background: transparent;
172 color: #505050;
173 font-size: 9px;
174 }
175 )";
176
177 static inline const QString status = R"(
178 QLabel {
179 background: transparent;
180 color: #707070;
181 font-size: 11px;
182 font-style: italic;
183 }
184 )";
185
186 static inline const QString subtitle = R"(
187 QLabel {
188 background: transparent;
189 color: #707070;
190 font-size: 12px;
191 }
192 )";
193
194 static inline const QString saved_connections_button = R"(
195 QToolButton {
196 background: transparent;
197 border: none;
198 padding: 2px;
199 }
200 QToolButton:hover {
201 background-color: #2d2d2d;
202 border-radius: 2px;
203 }
204 QToolButton::menu-indicator {
205 image: none;
206 }
207 )";
208};
209
210}
211
212#endif
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Centralized stylesheet constants for dark-themed dialogs.
Definition DialogStyles.hpp:33