Skip to content

Commit 80a8f29

Browse files
committed
#2 Fix: Styling for dark theme enabled devices
1 parent 5618777 commit 80a8f29

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

src/styles.qss

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,61 @@
1+
/* Base widget styling */
12
QWidget {
23
background-color: #ffffff;
34
font-family: 'Segoe UI', Arial, sans-serif;
5+
color: #2c3e50;
6+
}
7+
8+
/* Explicit text color for all text elements */
9+
QLabel, QLineEdit, QPushButton, QMessageBox {
10+
color: #2c3e50;
411
}
512

13+
/* Title styling */
614
#title {
715
font-size: 28px;
816
font-weight: bold;
917
color: #2c3e50;
1018
margin-bottom: 5px;
1119
}
1220

21+
/* Subtitle styling */
1322
#subtitle {
1423
font-size: 16px;
1524
color: #7f8c8d;
1625
margin-bottom: 20px;
1726
}
1827

28+
/* Description text styling */
1929
#description {
2030
font-size: 14px;
2131
color: #34495e;
2232
line-height: 1.4;
2333
margin-bottom: 30px;
2434
}
2535

36+
/* Email input field styling */
2637
#emailInput {
2738
padding: 12px;
2839
border: 2px solid #bdc3c7;
2940
border-radius: 6px;
3041
font-size: 14px;
3142
min-width: 300px;
43+
color: #2c3e50;
44+
background-color: #f8f9fa;
3245
}
3346

3447
#emailInput:focus {
3548
border-color: #3498db;
49+
background-color: #ffffff;
50+
}
51+
52+
/* Force text color for all QLineEdit widgets */
53+
QLineEdit {
54+
color: #2c3e50;
55+
background-color: #f8f9fa;
3656
}
3757

58+
/* Check button styling */
3859
#checkButton {
3960
background-color: #3498db;
4061
color: white;
@@ -50,20 +71,23 @@ QWidget {
5071
background-color: #2980b9;
5172
}
5273

74+
/* Result label styling */
5375
#resultLabel {
5476
color: #e74c3c;
5577
font-size: 14px;
5678
margin-top: 10px;
5779
text-align: center;
5880
}
5981

82+
/* Support section styling */
6083
#supportLabel {
6184
color: #7f8c8d;
6285
font-size: 13px;
6386
margin: 30px 0 15px 0;
6487
text-align: center;
6588
}
6689

90+
/* Donate button styling */
6791
#donateButton {
6892
background-color: #27ae60;
6993
color: white;
@@ -85,13 +109,13 @@ QMessageBox {
85109
}
86110

87111
QMessageBox QLabel {
88-
color: #2c3e50;
112+
color: #2c3e50 !important;
89113
font-size: 14px;
90114
}
91115

92116
QMessageBox QPushButton {
93117
background-color: #3498db;
94-
color: white;
118+
color: white !important;
95119
padding: 8px 20px;
96120
border: none;
97121
border-radius: 4px;
@@ -108,5 +132,10 @@ QMessageBox QPushButton:focus {
108132
}
109133

110134
QMessageBox QLabel#qt_msgboxex_icon_label {
111-
display: none; /* Hide the default icon */
135+
display: none;
136+
}
137+
138+
/* Force text color for all push buttons */
139+
QPushButton {
140+
color: white;
112141
}

0 commit comments

Comments
 (0)