Skip to content

Commit 9068f3c

Browse files
committedJan 23, 2019
[themes] Fix selection text for various widgets
1 parent 52df292 commit 9068f3c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
 

‎resources/themes/Blend of Gray/style.qss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ QAbstractSpinBox {
5151
border-radius: 0.2em;
5252
background-color: @darkgradient;
5353
color:@itembackground;
54+
selection-background-color: @selection;
55+
selection-color: @itemdarkbackground;
5456
}
5557

5658
QAbstractSpinBox::up-button {
@@ -125,6 +127,8 @@ QLineEdit, QTextEdit, QPlainTextEdit
125127
border-radius: 0.2em;
126128
background-color:@itembackground;
127129
color:@text;
130+
selection-background-color: @selection;
131+
selection-color: @itemdarkbackground;
128132
}
129133

130134
QPushButton
@@ -198,6 +202,7 @@ QPushButton:pressed, QToolButton:pressed {
198202

199203
QComboBox {
200204
selection-background-color: @selection;
205+
selection-color: @itemdarkbackground;
201206
background-color: @darkgradient;
202207
color:@itembackground;
203208
border-style: solid;
@@ -221,6 +226,7 @@ QComboBox:on {
221226
stop: 0.9 #414141,
222227
stop: 1 #444);
223228
selection-background-color: @selection;
229+
selection-color: @itemdarkbackground;
224230
}
225231

226232
QComboBox:editable {
@@ -603,8 +609,8 @@ QAbstractItemView, QListView
603609
border: none;
604610
border-radius: 0.15em;
605611
padding: 1px;
606-
selection-color: @text;
607612
selection-background-color: @selection;
613+
selection-color: @itemdarkbackground;
608614
}
609615

610616
QAbstractItemView::selected, QListView::selected {

‎resources/themes/Night Mapping/style.qss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ QAbstractSpinBox {
5151
border-radius:0px;
5252
background-color: @darkgradient;
5353
color:@text;
54+
selection-background-color: @selection;
55+
selection-color: @text;
5456
}
5557

5658
QAbstractSpinBox::up-button {
@@ -122,6 +124,8 @@ QLineEdit
122124
border: 1px solid #111;
123125
background-color: #888;
124126
color: #111;
127+
selection-background-color: @selection;
128+
selection-color: @text;
125129
}
126130

127131
QTextEdit, QPlainTextEdit
@@ -133,6 +137,8 @@ QTextEdit, QPlainTextEdit
133137
border-radius: 0px;
134138
background-color:@itembackground;
135139
color:@text;
140+
selection-background-color: @selection;
141+
selection-color: @text;
136142
}
137143

138144
QPushButton
@@ -205,6 +211,7 @@ QPushButton:pressed, QToolButton:pressed {
205211

206212
QComboBox {
207213
selection-background-color: @selection;
214+
selection-color: @text;
208215
background-color: @darkgradient;
209216
color:@text;
210217
border-style: solid;
@@ -228,6 +235,7 @@ QComboBox:on {
228235
stop: 0.9 #414141,
229236
stop: 1 #444);
230237
selection-background-color: @selection;
238+
selection-color: @text;
231239
}
232240

233241
QComboBox:editable {
@@ -237,6 +245,8 @@ QComboBox:editable QLineEdit {
237245
border-color: @itemdarkbackground;
238246
background-color: @itemdarkbackground;
239247
color:@text;
248+
selection-background-color: @selection;
249+
selection-color: @text;
240250
}
241251

242252
QComboBox QAbstractItemView, QComboBox QListView {

0 commit comments

Comments
 (0)
Please sign in to comment.