From b5b11dbf47d1a4fef88748fb328ecce8b446825c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 11 Jun 2019 21:31:26 -0700 Subject: [PATCH] UI: Fix bug with custom source list item color If the user gave the source list item a custom color, the "background" stylesheet value would apply to children of the item widget, causing the lock/eye checkboxes to also have that background color added on top of the chosen color. This is fixed by explicitly settings the background value to none on the lock/eye checkboxes. --- UI/source-tree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index 9750df479..c556cfbce 100644 --- a/UI/source-tree.cpp +++ b/UI/source-tree.cpp @@ -62,11 +62,13 @@ SourceTreeItem::SourceTreeItem(SourceTree *tree_, OBSSceneItem sceneitem_) vis->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); vis->setFixedSize(16, 16); vis->setChecked(obs_sceneitem_visible(sceneitem)); + vis->setStyleSheet("background: none"); lock = new LockedCheckBox(); lock->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); lock->setFixedSize(16, 16); lock->setChecked(obs_sceneitem_locked(sceneitem)); + lock->setStyleSheet("background: none"); label = new QLabel(QT_UTF8(name)); label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);