UI: Fix source tree icon spacing
This commit is contained in:
parent
1cb1864cc0
commit
bde68fed32
@ -1532,13 +1532,16 @@ QGroupBox::indicator:unchecked:disabled {
|
|||||||
QCheckBox[lockCheckBox=true] {
|
QCheckBox[lockCheckBox=true] {
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
max-width: var(--icon_base);
|
||||||
|
max-height: var(--icon_base);
|
||||||
|
padding: var(--padding_base);
|
||||||
|
border: 1px solid transparent;
|
||||||
|
margin-left: var(--spacing_large);
|
||||||
}
|
}
|
||||||
|
|
||||||
QCheckBox[lockCheckBox=true]::indicator {
|
QCheckBox[lockCheckBox=true]::indicator {
|
||||||
width: var(--icon_base);
|
width: var(--icon_base);
|
||||||
height: var(--icon_base);
|
height: var(--icon_base);
|
||||||
padding: 1px;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1552,8 +1555,8 @@ QCheckBox[lockCheckBox=true]::indicator:unchecked:hover {
|
|||||||
image: url(:res/images/unlocked.svg);
|
image: url(:res/images/unlocked.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
QCheckBox[lockCheckBox=true]::indicator:hover,
|
QCheckBox[lockCheckBox=true]:hover,
|
||||||
QCheckBox[lockCheckBox=true]::indicator:focus {
|
QCheckBox[lockCheckBox=true]:focus {
|
||||||
border: 1px solid var(--border_highlight);
|
border: 1px solid var(--border_highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1562,13 +1565,16 @@ QCheckBox[lockCheckBox=true]::indicator:focus {
|
|||||||
QCheckBox[visibilityCheckBox=true] {
|
QCheckBox[visibilityCheckBox=true] {
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
max-width: var(--icon_base);
|
||||||
|
max-height: var(--icon_base);
|
||||||
|
padding: var(--padding_base);
|
||||||
|
border: 1px solid transparent;
|
||||||
|
margin-left: var(--spacing_large);
|
||||||
}
|
}
|
||||||
|
|
||||||
QCheckBox[visibilityCheckBox=true]::indicator {
|
QCheckBox[visibilityCheckBox=true]::indicator {
|
||||||
width: var(--icon_base);
|
width: var(--icon_base);
|
||||||
height: var(--icon_base);
|
height: var(--icon_base);
|
||||||
padding: 1px;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1582,8 +1588,8 @@ QCheckBox[visibilityCheckBox=true]::indicator:unchecked:hover {
|
|||||||
image: url(:res/images/invisible.svg);
|
image: url(:res/images/invisible.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
QCheckBox[visibilityCheckBox=true]::indicator:hover,
|
QCheckBox[visibilityCheckBox=true]:hover,
|
||||||
QCheckBox[visibilityCheckBox=true]::indicator:focus {
|
QCheckBox[visibilityCheckBox=true]:focus {
|
||||||
border: 1px solid var(--border_highlight);
|
border: 1px solid var(--border_highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@ SourceTreeItem::SourceTreeItem(SourceTree *tree_, OBSSceneItem sceneitem_)
|
|||||||
iconLabel->setPixmap(pixmap);
|
iconLabel->setPixmap(pixmap);
|
||||||
iconLabel->setEnabled(sourceVisible);
|
iconLabel->setEnabled(sourceVisible);
|
||||||
iconLabel->setStyleSheet("background: none");
|
iconLabel->setStyleSheet("background: none");
|
||||||
|
iconLabel->setProperty("TH_Source_Icon", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
vis = new QCheckBox();
|
vis = new QCheckBox();
|
||||||
@ -111,6 +112,7 @@ SourceTreeItem::SourceTreeItem(SourceTree *tree_, OBSSceneItem sceneitem_)
|
|||||||
boxLayout = new QHBoxLayout();
|
boxLayout = new QHBoxLayout();
|
||||||
|
|
||||||
boxLayout->setContentsMargins(0, 0, 0, 0);
|
boxLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
|
boxLayout->setSpacing(0);
|
||||||
if (iconLabel) {
|
if (iconLabel) {
|
||||||
boxLayout->addWidget(iconLabel);
|
boxLayout->addWidget(iconLabel);
|
||||||
boxLayout->addSpacing(2);
|
boxLayout->addSpacing(2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user