0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Merge pull request #2026 from cg2121/extra-panels-trash-icon

UI: Fix look of extra panels trash icon
This commit is contained in:
Jim 2019-08-14 18:43:37 -07:00 committed by GitHub
commit 39c498c9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 6 deletions

View File

@ -1002,3 +1002,16 @@ VisibilityCheckBox::indicator:unchecked:hover {
* [themeID="revertIcon"] {
qproperty-icon: url(./Dark/revert.svg);
}
QPushButton#extraPanelDelete {
background: transparent;
border: none;
}
QPushButton#extraPanelDelete:hover {
background-color: #2a3a75;
}
QPushButton#extraPanelDelete:pressed {
background-color: #161f41;
}

View File

@ -737,3 +737,15 @@ VisibilityCheckBox::indicator:unchecked {
* [themeID="revertIcon"] {
qproperty-icon: url(./Dark/revert.svg);
}
QPushButton#extraPanelDelete {
background-color: rgb(31, 30, 31);
}
QPushButton#extraPanelDelete:hover {
background-color: rgb(122,121,122);
}
QPushButton#extraPanelDelete:pressed {
background-color: rgb(31,30,31);
}

View File

@ -1328,3 +1328,15 @@ VisibilityCheckBox::indicator:unchecked:hover {
* [themeID="revertIcon"] {
qproperty-icon: url(./Dark/revert.svg);
}
QPushButton#extraPanelDelete {
background-color: rgb(35, 38, 41);
}
QPushButton#extraPanelDelete:hover {
background-color: rgba(145, 76, 103);
}
QPushButton#extraPanelDelete:pressed {
background-color: rgb(240, 98, 146);
}

View File

@ -150,20 +150,18 @@ void ExtraBrowsersModel::AddDeleteButton(int idx)
{
QTableView *widget = reinterpret_cast<QTableView *>(parent());
QSizePolicy policy(QSizePolicy::Expanding, QSizePolicy::Expanding,
QSizePolicy::PushButton);
policy.setWidthForHeight(true);
QModelIndex index = createIndex(idx, (int)Column::Delete, nullptr);
QPushButton *del = new DelButton(index);
del->setProperty("themeID", "trashIcon");
del->setSizePolicy(policy);
del->setFlat(true);
del->setObjectName("extraPanelDelete");
del->setFixedSize(QSize(20, 20));
connect(del, &QPushButton::clicked, this,
&ExtraBrowsersModel::DeleteItem);
widget->setIndexWidget(index, del);
widget->setRowHeight(idx, 20);
widget->setColumnWidth(idx, 20);
}
void ExtraBrowsersModel::CheckToAdd()