fix menu bar in themes

- remove sticky highlighting of the menu bar items
- add menu checkboxes, finesse highlighting
This commit is contained in:
garak 2019-08-26 14:37:27 -04:00 committed by huderlem
parent 8db6f73c0d
commit 9375fd580c
2 changed files with 148 additions and 16 deletions

View file

@ -33,18 +33,82 @@ QWidget::item:focus {
/* Menus */
QMenuBar {
background-color: #32414B;
padding: 2px;
border: 1px solid #19232D;
color: #F0F0F0;
}
QMenuBar:focus {
border: 1px solid #232629;
}
QMenuBar::item {
background: transparent;
padding: 4px;
}
QMenuBar::item:selected {
padding: 4px;
background-color: #232629;
border: 0px solid #32414B;
}
QMenuBar::item:!selected {
padding: 4px;
background-color: #32414B;
border: 0px solid #32414B;
}
QMenuBar::item:pressed {
padding: 4px;
border: 0px solid #32414B;
background-color: #232629;
color: #F0F0F0;
margin-bottom: 0px;
padding-bottom: 0px;
}
QMenu {
border: 0px solid #32414B;
color: #F0F0F0;
margin: 0px;
}
QMenu::separator {
height: 1px;
background-color: #505F69;
color: #F0F0F0;
}
QMenu::icon {
margin: 0px;
padding-left: 4px;
}
QMenu::item {
background-color: #232629;
padding: 4px 24px 4px 24px;
border: 1px transparent #32414B;
}
QMenu::indicator {
width: 12px;
height: 12px;
padding-left: 6px;
}
QMenu::indicator {
image: url(":/icons/ui/dark_checkbox_unchecked.png");
}
QMenu::indicator:non-exclusive:unchecked {
image: url(":/icons/ui/dark_checkbox_unchecked.png");
}
QMenu::indicator:non-exclusive:unchecked:selected {
image: url(":/icons/ui/dark_checkbox_unchecked_disabled.png");
image: url(":/icons/ui/dark_checkbox_unchecked.png");
}
QMenu::indicator:non-exclusive:checked {
@ -52,7 +116,7 @@ QMenu::indicator:non-exclusive:checked {
}
QMenu::indicator:non-exclusive:checked:selected {
image: url(":/icons/ui/dark_checkbox_checked_disabled.png");
image: url(":/icons/ui/dark_checkbox_checked.png");
}
QMenu::indicator:exclusive:unchecked {
@ -60,7 +124,7 @@ QMenu::indicator:exclusive:unchecked {
}
QMenu::indicator:exclusive:unchecked:selected {
image: url(":/icons/ui/dark_checkbox_unchecked_disabled.png");
image: url(":/icons/ui/dark_checkbox_unchecked.png");
}
QMenu::indicator:exclusive:checked {
@ -68,9 +132,10 @@ QMenu::indicator:exclusive:checked {
}
QMenu::indicator:exclusive:checked:selected {
image: url(":/icons/ui/dark_checkbox_checked_disabled.png");
image: url(":/icons/ui/dark_checkbox_checked.png");
}
/* Combo Boxes */
QComboBox {

View file

@ -32,18 +32,85 @@ QWidget::item:focus {
/* Menus */
QMenuBar {
background-color: #31332b;
padding: 2px;
color: #F8F8F2;
}
QMenuBar:focus {
border: 1px solid #272822;
}
QMenuBar::item {
background: transparent;
padding: 4px;
}
QMenuBar::item:selected {
padding: 4px;
background-color: #272822;
border: 0px solid #31332b;
}
QMenuBar::item:!selected {
padding: 4px;
background-color: #31332b;
border: 0px solid #31332b;
}
QMenuBar::item:pressed {
padding: 4px;
border: 0px solid #31332b;
background-color: #272822;
color: #F8F8F2;
margin-bottom: 0px;
padding-bottom: 0px;
}
QMenu {
border: 0px solid #272822;
color: #F8F8F2;
margin: 0px;
}
QMenu::separator {
height: 1px;
background-color: #31332b;
color: #F8F8F2;
}
QMenu::icon {
margin: 0px;
padding-left: 4px;
}
QMenu::item {
background-color: #272822;
padding: 4px 24px 4px 24px;
border: 1px transparent #272822;
}
QMenu::item:selected {
background: #31332b;
}
QMenu::indicator {
width: 12px;
height: 12px;
padding-left: 6px;
}
QMenu::indicator {
image: url(":/icons/ui/midnight_checkbox_unchecked.png");
}
QMenu::indicator:non-exclusive:unchecked {
image: url(":/icons/ui/midnight_checkbox_unchecked.png");
}
QMenu::indicator:non-exclusive:unchecked:selected {
image: url(":/icons/ui/midnight_checkbox_unchecked_disabled.png");
image: url(":/icons/ui/midnight_checkbox_unchecked.png");
}
QMenu::indicator:non-exclusive:checked {
@ -51,7 +118,7 @@ QMenu::indicator:non-exclusive:checked {
}
QMenu::indicator:non-exclusive:checked:selected {
image: url(":/icons/ui/midnight_checkbox_checked_disabled.png");
image: url(":/icons/ui/midnight_checkbox_checked.png");
}
QMenu::indicator:exclusive:unchecked {
@ -59,7 +126,7 @@ QMenu::indicator:exclusive:unchecked {
}
QMenu::indicator:exclusive:unchecked:selected {
image: url(":/icons/ui/midnight_checkbox_unchecked_disabled.png");
image: url(":/icons/ui/midnight_checkbox_unchecked.png");
}
QMenu::indicator:exclusive:checked {
@ -67,7 +134,7 @@ QMenu::indicator:exclusive:checked {
}
QMenu::indicator:exclusive:checked:selected {
image: url(":/icons/ui/midnight_checkbox_checked_disabled.png");
image: url(":/icons/ui/midnight_checkbox_checked.png");
}
/* Combo Boxes */