UI: Adjust list style of filters dialog
Exact same set of visual changes as before, but this one required removing some hardcoded sizes from VisibilityItemWidget that were clipping icons and text, and messing up with the height of items.
This commit is contained in:
parent
249459afc9
commit
d09c1fcdd7
@ -1006,6 +1006,16 @@ OBSQTDisplay {
|
||||
|
||||
/* Filters Window */
|
||||
|
||||
OBSBasicFilters QListWidget {
|
||||
border-radius: 4px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
OBSBasicFilters QListWidget::item {
|
||||
border-radius: 4px;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
OBSBasicFilters #widget,
|
||||
OBSBasicFilters #widget_2 {
|
||||
margin: 0px;
|
||||
|
@ -21,10 +21,6 @@ VisibilityItemWidget::VisibilityItemWidget(obs_source_t *source_)
|
||||
|
||||
vis = new VisibilityCheckBox();
|
||||
vis->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
|
||||
/* Fix for non-apple systems where the spacing would be too big */
|
||||
#ifndef __APPLE__
|
||||
vis->setMaximumSize(16, 16);
|
||||
#endif
|
||||
vis->setChecked(enabled);
|
||||
|
||||
label = new QLabel(QT_UTF8(name));
|
||||
@ -33,7 +29,7 @@ VisibilityItemWidget::VisibilityItemWidget(obs_source_t *source_)
|
||||
QHBoxLayout *itemLayout = new QHBoxLayout();
|
||||
itemLayout->addWidget(vis);
|
||||
itemLayout->addWidget(label);
|
||||
itemLayout->setContentsMargins(5, 2, 5, 2);
|
||||
itemLayout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
setLayout(itemLayout);
|
||||
setStyleSheet("background-color: rgba(255, 255, 255, 0);");
|
||||
@ -168,6 +164,5 @@ void SetupVisibilityItem(QListWidget *list, QListWidgetItem *item,
|
||||
{
|
||||
VisibilityItemWidget *baseWidget = new VisibilityItemWidget(source);
|
||||
|
||||
item->setSizeHint(baseWidget->sizeHint());
|
||||
list->setItemWidget(item, baseWidget);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user