diff --git a/UI/data/themes/Yami.obt b/UI/data/themes/Yami.obt index 015c006a7..6b1d566f4 100644 --- a/UI/data/themes/Yami.obt +++ b/UI/data/themes/Yami.obt @@ -1532,13 +1532,16 @@ QGroupBox::indicator:unchecked:disabled { QCheckBox[lockCheckBox=true] { outline: none; 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 { width: var(--icon_base); height: var(--icon_base); - padding: 1px; - border: 1px solid transparent; border-radius: 4px; } @@ -1552,8 +1555,8 @@ QCheckBox[lockCheckBox=true]::indicator:unchecked:hover { image: url(:res/images/unlocked.svg); } -QCheckBox[lockCheckBox=true]::indicator:hover, -QCheckBox[lockCheckBox=true]::indicator:focus { +QCheckBox[lockCheckBox=true]:hover, +QCheckBox[lockCheckBox=true]:focus { border: 1px solid var(--border_highlight); } @@ -1562,13 +1565,16 @@ QCheckBox[lockCheckBox=true]::indicator:focus { QCheckBox[visibilityCheckBox=true] { outline: none; 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 { width: var(--icon_base); height: var(--icon_base); - padding: 1px; - border: 1px solid transparent; border-radius: 4px; } @@ -1582,8 +1588,8 @@ QCheckBox[visibilityCheckBox=true]::indicator:unchecked:hover { image: url(:res/images/invisible.svg); } -QCheckBox[visibilityCheckBox=true]::indicator:hover, -QCheckBox[visibilityCheckBox=true]::indicator:focus { +QCheckBox[visibilityCheckBox=true]:hover, +QCheckBox[visibilityCheckBox=true]:focus { border: 1px solid var(--border_highlight); } diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index 14fb89dea..947b217ce 100644 --- a/UI/source-tree.cpp +++ b/UI/source-tree.cpp @@ -77,6 +77,7 @@ SourceTreeItem::SourceTreeItem(SourceTree *tree_, OBSSceneItem sceneitem_) iconLabel->setPixmap(pixmap); iconLabel->setEnabled(sourceVisible); iconLabel->setStyleSheet("background: none"); + iconLabel->setProperty("TH_Source_Icon", true); } vis = new QCheckBox(); @@ -111,6 +112,7 @@ SourceTreeItem::SourceTreeItem(SourceTree *tree_, OBSSceneItem sceneitem_) boxLayout = new QHBoxLayout(); boxLayout->setContentsMargins(0, 0, 0, 0); + boxLayout->setSpacing(0); if (iconLabel) { boxLayout->addWidget(iconLabel); boxLayout->addSpacing(2);