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.
This commit is contained in:
parent
58ce89bbe9
commit
b5b11dbf47
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user