Skip to content

Commit 3267aa7

Browse files
committed
added new styling
1 parent 24be6c2 commit 3267aa7

File tree

2 files changed

+100
-36
lines changed

2 files changed

+100
-36
lines changed

config/cxx.syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
- regex: "\\b(char|class|const|double|enum|explicit|friend|inline|int|long|namespace|operator|private|protected|public|short|signals|signed|slots|static|struct|template|typedef|typename|union|unsigned|virtual|void|volatile|foreach)\\b"
66
color: "#003478" # Dark Blue
77
bold: true
8-
- regex: "\\b(for|while|do|if|else)\\b"
8+
- regex: "\\b(for|while|do|if|else|return)\\b"
99
color: "#D9001D" # Bright Red
1010
- regex: "(?<!\\w)#include(?!\\w)"
1111
color: "#800080" # Purple

resources/themes/dark.qss

Lines changed: 99 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,108 +4,172 @@
44
}
55

66
QMainWindow {
7-
background-color: #1e1e1e;
8-
color: white;
9-
border-radius: 6px;
7+
background-color: #1a1a1a; /* Slightly darker background */
8+
color: #ffffff;
9+
border-radius: 8px;
1010
}
1111

1212
QStatusBar {
13-
background-color: #1e1e1e;
14-
color: #cccccc;
15-
border-top: 1px solid #333;
13+
background-color: #252525;
14+
color: #e0e0e0;
15+
border-top: 1px solid #383838;
1616
font-size: 11pt;
17-
padding: 4px 8px;
17+
padding: 6px 10px;
1818
}
1919

2020
QTreeView {
2121
background-color: #1e1e1e;
22-
color: #d4d4d4;
23-
padding: 4px;
24-
border-radius: 4px;
22+
color: #e0e0e0;
23+
padding: 6px;
24+
border-radius: 6px;
2525
}
2626

2727
QTreeView::item:selected {
28-
background: #264f78;
28+
background: #2b5ea3; /* Brighter blue for better visibility */
2929
color: white;
30+
border-radius: 4px;
3031
}
3132

3233
QTreeView::item:hover {
33-
background: #333333;
34+
background: #3c3c3c;
3435
}
3536

3637
QTreeView::item:focus {
37-
outline: none;
38+
outline: none;
3839
}
3940

4041
QScrollBar:vertical, QScrollBar:horizontal {
4142
background: #1e1e1e;
42-
width: 10px;
43+
width: 12px; /* Slightly wider for better usability */
4344
margin: 0px;
4445
}
4546

4647
QScrollBar::handle {
47-
background: #5a5a5a;
48-
border-radius: 4px;
48+
background: #666666;
49+
border-radius: 6px;
50+
margin: 2px;
4951
}
5052

5153
QScrollBar::handle:hover {
52-
background: #7a7a7a;
54+
background: #888888;
5355
}
5456

5557
QMenuBar {
56-
background-color: #1e1e1e;
58+
background-color: #252525;
5759
color: white;
58-
padding: 4px 8px;
60+
padding: 6px 10px;
5961
}
6062

6163
QMenu {
6264
background-color: #2d2d2d;
6365
color: white;
64-
border: 1px solid #444;
66+
border: 1px solid #444444;
67+
border-radius: 6px;
68+
padding: 4px;
69+
}
70+
71+
QMenu::item {
72+
padding: 6px 20px;
73+
border-radius: 4px;
6574
}
6675

6776
QMenu::item:selected {
6877
background-color: #3c3c3c;
6978
}
7079

71-
QMenu::item::hover {
72-
background-color: #3c3c3c;
80+
QMenu::item:hover {
81+
background-color: #454545;
7382
}
7483

7584
QPlainTextEdit, QLineEdit {
7685
background-color: #1e1e1e;
77-
color: #d4d4d4;
78-
border-radius: 4px;
79-
padding: 6px;
86+
color: #e0e0e0;
87+
border-radius: 6px;
88+
padding: 8px;
89+
border: 1px solid #333333;
8090
}
8191

8292
QPlainTextEdit {
83-
selection-background-color: #264f78;
93+
selection-background-color: #2b5ea3;
8494
selection-color: white;
8595
}
8696

8797
QPlainTextEdit:focus, QTreeView:focus {
88-
border: 1px solid #264f78;
98+
border: 1px solid #3d75c2;
8999
}
90100

91101
QTabBar::tab {
92-
background: #2d2d2d;
102+
background: #2d2d2d;
93103
color: #d4d4d4;
94-
padding: 6px 12px;
95-
border-top-left-radius: 4px;
96-
border-top-right-radius: 4px;
97-
margin-right: 1px;
104+
padding: 8px 16px;
105+
border-top-left-radius: 6px;
106+
border-top-right-radius: 6px;
107+
margin-right: 2px;
98108
}
99109

100110
QTabBar::tab:selected {
101111
background: #1e1e1e;
102112
color: white;
113+
border-top: 2px solid #3d75c2; /* Added accent color for selected tab */
114+
}
115+
116+
QTabBar::tab:hover {
117+
background: #353535;
103118
}
104119

105120
QToolTip {
106121
background-color: #2d2d2d;
107-
color: #d4d4d4;
108-
border: 1px solid #444;
109-
padding: 4px;
122+
color: #e0e0e0;
123+
border: 1px solid #444444;
124+
padding: 6px;
125+
border-radius: 6px;
126+
}
127+
128+
/* New additions for buttons and other controls */
129+
QPushButton {
130+
background-color: #2b5ea3;
131+
color: white;
132+
border-radius: 6px;
133+
padding: 8px 16px;
134+
border: none;
135+
}
136+
137+
QPushButton:hover {
138+
background-color: #3d75c2;
139+
}
140+
141+
QPushButton:pressed {
142+
background-color: #214a80;
143+
}
144+
145+
QComboBox {
146+
background-color: #2d2d2d;
147+
color: #e0e0e0;
148+
border-radius: 6px;
149+
padding: 6px;
150+
border: 1px solid #444444;
151+
}
152+
153+
QComboBox:hover {
154+
border: 1px solid #3d75c2;
155+
}
156+
157+
QComboBox::drop-down {
158+
border: none;
159+
}
160+
161+
QCheckBox {
162+
color: #e0e0e0;
163+
spacing: 8px;
164+
}
165+
166+
QCheckBox::indicator {
167+
width: 18px;
168+
height: 18px;
110169
border-radius: 4px;
170+
border: 1px solid #444444;
171+
}
172+
173+
QCheckBox::indicator:checked {
174+
background-color: #2b5ea3;
111175
}

0 commit comments

Comments
 (0)