-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
112 lines (95 loc) · 2.32 KB
/
main.cpp
File metadata and controls
112 lines (95 loc) · 2.32 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#include <QApplication>
#include <QStyleFactory>
#include "mainwindow.h"
// toDo: Move to stylesheet location
QString styleSheet = R"(
/* General Application */
QMainWindow {
background-color: #2D2D2D; /* Dark background */
color: #E0E0E0; /* Light text color for contrast */
}
/* Toolbar */
QToolBar {
background-color: #333333; /* Dark toolbar background */
/* border: 0.2px solid #444444; Slight border to separate */
}
QToolBar::handle {
background-color: #555555; /* Handle color for dragging */
}
QToolBar::separator {
background-color: #555555;
margin: 2px;
}
QToolButton {
background-color: transparent;
color: #E0E0E0;
border: none;
padding: 5px;
font-size: 11px;
font-weight: 500;
text-align: center;
qproperty-iconSize: 32px 32px;
min-width: 64px;
min-height: 64px;
}
QToolButton > * {
qproperty-wordWrap: true;
}
QToolButton::menu-indicator {
image: none;
}
QToolButton:hover {
background-color: #4CAF50;
color: white;
}
QToolButton:checked {
background-color: #4CAF50;
color: white;
}
/* Menu Bar */
QMenuBar {
background-color: #333333; /* Dark background */
color: #E0E0E0; /* Light text color */
}
QMenuBar::item {
background-color: transparent;
padding: 5px 10px;
}
QMenuBar::item:selected {
background-color: #4CAF50; /* Highlighted item */
color: white;
}
/* Menu */
QMenu {
background-color: #333333;
color: #E0E0E0;
border: 1px solid #444444;
}
QMenu::item:selected {
background-color: #4CAF50; /* Item highlighted on hover */
color: white;
}
QMenu::item {
padding: 8px 16px;
}
QToolButton {
border: 1px solid black;
width: 100%;
}
QLabel {
color: white;
}
QCheckBox {
color: white;
}
)";
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// Set the Fusion style for a more modern look
QApplication::setStyle(QStyleFactory::create("Fusion"));
qApp->setStyleSheet(styleSheet);
MainWindow w;
w.show();
return a.exec();
}