plasmoid: Use `data-error` icon instead of the old `emblem-important`

Loading the icon for the button from resources ceased to work (maybe when
switching to `PlasmaComponents3.ToolButton`). This change works around the
problem and the old icon no longer needs to be bundled.
This commit is contained in:
Martchus 2021-07-01 18:25:39 +02:00
parent 5463b15a29
commit 1ccac1e145
4 changed files with 2 additions and 24 deletions

View File

@ -67,7 +67,7 @@ ColumnLayout {
}
TinyButton {
id: errorsButton
icon.source: ":/icons/hicolor/scalable/emblems/emblem-important-old.svg"
icon.name: "data-error"
tooltip: qsTr("Show errors")
visible: pullErrorCount > 0
onClicked: {

View File

@ -68,9 +68,7 @@ Item {
":/icons/hicolor/scalable/status/syncthing-default.svg")
plasmoid.setAction("showSettings", qsTr("Settings"), "configure")
plasmoid.setAction("showLog", qsTr("Log"), "text-x-generic")
plasmoid.setAction(
"showErrors", qsTr("Internal errors"),
":/icons/hicolor/scalable/emblems/emblem-important-old.svg")
plasmoid.setAction("showErrors", qsTr("Internal errors"), "data-error")
plasmoid.setAction("rescanAllDirs", qsTr("Rescan all directories"),
"folder-sync")
plasmoid.setAction("restartSyncthing", qsTr("Restart Syncthing"),

View File

@ -1,19 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#4d4d4d;
}
</style>
</defs>
<path
style="opacity:1;fill:#da4453;fill-opacity:1;stroke:none"
d="m 12,4 -4.5,8 -4.5,8 9,0 9,0 -4.5,-8 z m -1,5 2,0 0,6 -2,0 z m 0,7 2,0 0,2 -2,0 z"
id="path4156"
class="ColorScheme-Text"
/>
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 11 9 L 11 15 L 13 15 L 13 9 L 11 9 z M 11 16 L 11 18 L 13 18 L 13 16 L 11 16 z "
id="rect3348" />
</svg>

Before

Width:  |  Height:  |  Size: 715 B

View File

@ -11,7 +11,6 @@
<file>icons/hicolor/scalable/app/syncthingtray.svg</file>
<file>icons/hicolor/scalable/actions/globe.svg</file>
<file>icons/hicolor/scalable/places/user-home.svg</file>
<file>icons/hicolor/scalable/emblems/emblem-important-old.svg</file>
<file>icons/hicolor/scalable/actions/edit-undo.svg</file>
<file>icons/hicolor/scalable/actions/document-open.svg</file>
<file>icons/hicolor/scalable/actions/go-down.svg</file>