Enhanced quantize in PianoRoll (#5946)

* Button with menu has split highlight

* Add menu with more action to quantize button

* Style changes

* Fix CSS length-zero-no-unit warning

* Add combo button to classic theme
This commit is contained in:
Alex
2021-03-16 17:42:08 +01:00
committed by GitHub
parent 17ea61676f
commit 0967ffbc3a
4 changed files with 70 additions and 9 deletions

View File

@@ -484,7 +484,7 @@ QToolButton#stopButton {
/* all tool buttons */
QToolButton {
QToolButton, QToolButton::menu-button {
padding: 1px 1px 1px 1px;
border-radius: 5px;
border: 1px solid rgba(63, 63, 63, 128);
@@ -510,6 +510,22 @@ QToolButton:checked {
color: black;
}
/* buttons with combined menu */
QToolButton[popupMode="1"] {
margin-right: 11px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
QToolButton::menu-button {
subcontrol-origin: margin;
width: 11px;
padding: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
/* track label buttons - the part that contains the icon and track title */
TrackLabelButton {

View File

@@ -490,7 +490,7 @@ QToolBar::separator {
/* all tool buttons */
QToolButton {
QToolButton, QToolButton::menu-button {
margin: 1px;
padding: 2px 2px 2px 2px;
border-top: 1px solid #778394;
@@ -522,6 +522,22 @@ QToolButton:checked {
background-image: url(resources:shadow_p.png);
}
/* buttons with combined menu */
QToolButton[popupMode="1"] {
margin-right: 13px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
QToolButton::menu-button {
subcontrol-origin: margin;
width: 13px;
padding: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
/* track label buttons - the part that contains the icon and track title */
TrackLabelButton {