Skip to content

Commit 43f8b46

Browse files
committedJan 1, 2019
Fix combobox dropdown list padding issue with themes
1 parent 015508c commit 43f8b46

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed
 

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ QComboBox {
190190
border-style: solid;
191191
border: 1px solid #1e1e1e;
192192
border-radius: 0.2em;
193-
padding: 0.1em;
193+
padding: 0.1em 1em 0.1em 0.1em;
194194
}
195195

196196

@@ -241,6 +241,18 @@ QComboBox::down-arrow
241241
height: 1.2em;
242242
}
243243

244+
QComboBox:item {
245+
padding-left: 1.5em;
246+
height:1.2em;
247+
}
248+
QComboBox:item:selected {
249+
padding-left: 1.5em;
250+
height:1.2em;
251+
}
252+
QComboBox:item:checked {
253+
padding-left: 1.5em;
254+
height:1.2em;
255+
}
244256

245257
QLineEdit:focus
246258
{

‎resources/themes/Night Mapping/style.qss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ QComboBox {
198198
border-style: solid;
199199
border: 1px solid #1e1e1e;
200200
border-radius: 0px;
201-
padding: 0.1em;
201+
padding: 0.1em 1em 0.1em 0.1em;
202202
}
203203

204204

@@ -250,6 +250,18 @@ QComboBox::down-arrow
250250
height: 1.2em;
251251
}
252252

253+
QComboBox:item {
254+
padding-left: 1.5em;
255+
height:1.2em;
256+
}
257+
QComboBox:item:selected {
258+
padding-left: 1.5em;
259+
height:1.2em;
260+
}
261+
QComboBox:item:checked {
262+
padding-left: 1.5em;
263+
height:1.2em;
264+
}
253265

254266
QLineEdit:focus
255267
{

0 commit comments

Comments
 (0)
Please sign in to comment.