-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
78 lines (76 loc) · 1.94 KB
/
main.cpp
File metadata and controls
78 lines (76 loc) · 1.94 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
#include <QApplication>
#include "MainWindow.h"
#include <QStyleFactory>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
app.setStyle(QStyleFactory::create("Fusion")); // Modern flat style
app.setStyleSheet(R"(
QMainWindow {
background-color: #2e2e2e;
}
QMenuBar {
background-color: #353535;
color: white;
padding: 4px;
}
QMenuBar::item:selected {
background-color: #555555;
}
QMenu {
background-color: #353535;
border: 1px solid #555555;
color: white;
}
QMenu::item:selected {
background-color: #666666;
}
QPushButton {
background-color: #444444;
border: none;
padding: 6px 10px;
border-radius: 4px;
color: white;
}
QPushButton:hover {
background-color: #555555;
}
QLineEdit {
background-color: #1e1e1e;
border: 1px solid #555555;
padding: 4px;
color: white;
border-radius: 4px;
}
QLabel {
color: white;
}
QTreeWidget {
background-color: #1e1e1e;
border: none;
color: white;
}
QTreeWidget::item:selected {
background-color: #444466;
}
QTabWidget::pane {
border: 1px solid #555555;
}
QTabBar::tab {
background-color: #333333;
padding: 8px 12px;
margin-right: 2px;
color: white;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
QTabBar::tab:selected {
background-color: #444444;
}
QSplitter::handle {
background-color: #444444;
}
)");
MainWindow w;
w.show();
return app.exec();
}