Fix QToolbutton color and offset in light theme. (#1579)

This commit is contained in:
karliss 2019-05-23 08:03:17 +03:00 committed by Itay Cohen
parent 63bf1864d0
commit 9a42b3cdd2

View File

@ -74,6 +74,10 @@ QToolButton
padding:2px; padding:2px;
} }
QToolButton[popupMode="1"] { /* only for MenuButtonPopup */
padding-right: 20px; /* make way for the popup button */
}
QToolButton:hover QToolButton:hover
{ {
border-bottom-width:2px; border-bottom-width:2px;
@ -384,6 +388,12 @@ QAbstractSpinBox::down-arrow,QAbstractSpinBox::down-arrow:disabled,QAbstractSpin
height:10px; height:10px;
} }
QToolButton::menu-button {
border: solid transparent;
/* 16px width + 4px for border = 20px allocated above */
width: 16px;
}
QToolButton::menu-indicator QToolButton::menu-indicator
{ {
image:url(:/qss_icons/rc/down_arrow.png); image:url(:/qss_icons/rc/down_arrow.png);
@ -716,6 +726,10 @@ QAbstractSpinBox::down-arrow:hover,QToolButton::menu-arrow,QHeaderView::down-arr
image:url(:/qss_icons/rc/down_arrow.png); image:url(:/qss_icons/rc/down_arrow.png);
} }
QToolButton::menu-arrow:open {
top: 1px; left: 1px; /* shift it a bit */
}
QHeaderView::up-arrow,QAbstractSpinBox::up-arrow:hover,QHeaderView::up-arrow QHeaderView::up-arrow,QAbstractSpinBox::up-arrow:hover,QHeaderView::up-arrow
{ {
image:url(:/qss_icons/rc/up_arrow.png); image:url(:/qss_icons/rc/up_arrow.png);