ソースを参照

UI: Remove separate trash icon themeID

The removeIconSmall is now also a trash icon, so we don't need a
separate (now duplicate) themeID for it anymore.
The icon itself of course needs to stay as it's still needed.
gxalpha 3 年 前
コミット
97f76f99e5

+ 0 - 4
UI/data/themes/Acri.qss

@@ -1163,10 +1163,6 @@ VisibilityCheckBox::indicator:unchecked:hover {
     image: url(:res/images/invisible.svg);
 }
 
-* [themeID="trashIcon"] {
-    qproperty-icon: url(./Dark/trash.svg);
-}
-
 * [themeID="revertIcon"] {
     qproperty-icon: url(./Dark/revert.svg);
 }

+ 0 - 4
UI/data/themes/Dark.qss

@@ -810,10 +810,6 @@ VisibilityCheckBox::indicator:unchecked {
     image: url(:res/images/invisible.svg);
 }
 
-* [themeID="trashIcon"] {
-    qproperty-icon: url(./Dark/trash.svg);
-}
-
 * [themeID="revertIcon"] {
     qproperty-icon: url(./Dark/revert.svg);
 }

+ 0 - 4
UI/data/themes/Grey.qss

@@ -1152,10 +1152,6 @@ VisibilityCheckBox::indicator:unchecked:hover {
     image: url(:res/images/invisible.svg);
 }
 
-* [themeID="trashIcon"] {
-    qproperty-icon: url(./Dark/trash.svg);
-}
-
 * [themeID="revertIcon"] {
     qproperty-icon: url(./Dark/revert.svg);
 }

+ 0 - 4
UI/data/themes/Light.qss

@@ -1152,10 +1152,6 @@ VisibilityCheckBox::indicator:unchecked:hover {
     image: url(:res/images/invisible.svg);
 }
 
-* [themeID="trashIcon"] {
-    qproperty-icon: url(./Light/trash.svg);
-}
-
 * [themeID="revertIcon"] {
     qproperty-icon: url(./Light/revert.svg);
 }

+ 0 - 4
UI/data/themes/Rachni.qss

@@ -1156,10 +1156,6 @@ VisibilityCheckBox::indicator:unchecked:hover {
     image: url(:res/images/invisible.svg);
 }
 
-* [themeID="trashIcon"] {
-    qproperty-icon: url(./Dark/trash.svg);
-}
-
 * [themeID="revertIcon"] {
     qproperty-icon: url(./Dark/revert.svg);
 }

+ 0 - 4
UI/data/themes/System.qss

@@ -231,10 +231,6 @@ VisibilityCheckBox::indicator:unchecked {
     image: url(:res/images/invisible.svg);
 }
 
-* [themeID="trashIcon"] {
-    qproperty-icon: url(:res/images/trash.svg);
-}
-
 * [themeID="revertIcon"] {
     qproperty-icon: url(:res/images/revert.svg);
 }

+ 0 - 4
UI/data/themes/Yami.qss

@@ -1156,10 +1156,6 @@ VisibilityCheckBox::indicator:unchecked:hover {
     image: url(:res/images/invisible.svg);
 }
 
-* [themeID="trashIcon"] {
-    qproperty-icon: url(./Dark/trash.svg);
-}
-
 * [themeID="revertIcon"] {
     qproperty-icon: url(./Dark/revert.svg);
 }

+ 0 - 4
UI/forms/images/trash.svg

@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg">
-    <path d="m 5.984375 0.00390625 l -1 0.99609375 l -3 0.003906 s -1 0 -1 1 l 0.015625 0.996094 h 15 l -0.015625 -0.996094 c 0 -1 -1 -1 -1 -1 l -3 -0.003906 l -1 -0.99609375 z m -3.984375 3.99609375 v 9 c 0 3 3 3 3 3 h 7 c 3 0 3 -3 3 -3 v -9 h -2 v 9 c 0 1 -1 1 -1 1 h -7 s -1 0 -1 -1 v -9 z m 4 1 v 7 h 1 v -7 z m 2 0 v 7 h 1 v -7 z m 2 0 v 7 h 1 v -7 z m 0 0" fill="#000000"/>
-</svg>

+ 0 - 1
UI/forms/obs.qrc

@@ -28,7 +28,6 @@
     <file>images/visible.svg</file>
     <file>images/help.svg</file>
     <file>images/help_light.svg</file>
-    <file>images/trash.svg</file>
     <file>images/revert.svg</file>
     <file>images/alert.svg</file>
     <file>images/warning.svg</file>

+ 1 - 1
UI/window-extra-browsers.cpp

@@ -137,7 +137,7 @@ void ExtraBrowsersModel::AddDeleteButton(int idx)
 	QModelIndex index = createIndex(idx, (int)Column::Delete, nullptr);
 
 	QPushButton *del = new DelButton(index);
-	del->setProperty("themeID", "trashIcon");
+	del->setProperty("themeID", "removeIconSmall");
 	del->setObjectName("extraPanelDelete");
 	del->setMinimumSize(QSize(20, 20));
 	connect(del, &QPushButton::clicked, this,