[themes] Fix combobox styling not reflecting the editable state

This commit is contained in:
Mathieu Pellerin 2023-07-19 15:07:31 +07:00
parent 31aa4e220e
commit c5479544e2
2 changed files with 49 additions and 24 deletions

View File

@ -334,15 +334,6 @@ QComboBox::icon {
padding-left:0.3em;
}
QComboBox:editable {
background-color: @darkgradient;
}
QComboBox:editable QLineEdit {
background-color: transparent;
color:@itembackground;
border: 0;
}
QComboBox QAbstractItemView, QComboBox QListView {
border: none;
border-radius: 0;
@ -358,7 +349,20 @@ QComboBox::drop-down {
width: 0.8em;
border: 0px;
}
QComboBox::drop-down:editable {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 0.8em;
background-color: @darkgradient;
color:@itembackground;
border-style: solid;
border: 1px solid @itembackground;
border-radius: 0.1em;
}
QComboBox::drop-down:editable:disabled {
background-color: transparent !important;
border-color: transparent !important;
}
QComboBox::down-arrow
{
image: url(@theme_path/icons/arrow-down.svg);
@ -387,6 +391,18 @@ QComboBox::indicator {
selection-color:transparent;
}
QComboBox:editable {
padding: 0.12em;
border-width: 1px;
border-color: @itemdarkbackground;
border-style: solid;
border-radius: 0.2em;
background-color:@itembackground;
selection-background-color: @selection;
selection-color: @itemdarkbackground;
color: @text;
}
/* ==================================================================================== */
/* SCROLL BAR */
/* ==================================================================================== */

View File

@ -47,13 +47,13 @@ QMenuBar::item
QMenuBar::item:selected
{
background: @background;
background: @selection;
color: @text;
}
QMenuBar::item:pressed
{
background: @background;
background: @selection;
color: @text;
}
@ -343,17 +343,6 @@ QComboBox::icon {
padding-left:0.3em;
}
QComboBox:editable {
background-color: @darkgradient;
}
QComboBox:editable QLineEdit {
background-color: transparent;
color:@text;
selection-background-color: @selection;
selection-color: @text;
border: 0;
}
QComboBox QAbstractItemView, QComboBox QListView {
border: none;
border-radius: 0px;
@ -369,7 +358,18 @@ QComboBox::drop-down {
width: 0.8em;
border: 0px;
}
QComboBox::drop-down:editable {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 0.8em;
background-color: @darkgradient;
color:@itembackground;
border: 1px solid #888;
}
QComboBox::drop-down:editable:disabled {
background-color: transparent !important;
border-color: transparent !important;
}
QComboBox::down-arrow
{
image: url(@theme_path/icons/arrow-down.svg);
@ -398,6 +398,15 @@ QComboBox::indicator {
selection-color:transparent;
}
QComboBox:editable {
padding: 0.12em;
border: 1px solid #111;
background-color: #888;
selection-background-color: @selection;
selection-color: @text;
color: #111;
}
/* ==================================================================================== */
/* SCROLL BAR */
/* ==================================================================================== */