Remove hard-coded colors and cleanup SVG icons

Also remove old filled icons pack, and rename the "light-thin" pack to just
"thin".
This commit is contained in:
miruka
2019-08-28 16:30:48 -04:00
parent 18120f5216
commit 37e762d241
110 changed files with 128 additions and 1582 deletions

View File

@@ -10,6 +10,7 @@ Button {
topPadding: spacing / 2
bottomPadding: topPadding
iconItem.svgName: loading ? "hourglass" : icon.name
icon.color: theme.icons.colorize
enabled: ! loading
onVisibleChanged: if (! visible) loading = false

View File

@@ -38,7 +38,7 @@ CheckBox {
anchors.centerIn: parent
dimension: parent.width - 2
svgName: "check-mark"
colorize: theme.controls.checkBox.checkIconColor
colorize: theme.controls.checkBox.checkIconColorize
visible: scale > 0
scale: box.checked ? 1 : 0

View File

@@ -1,15 +1,16 @@
import QtQuick 2.12
HImage {
visible: Boolean(svgName)
property string svgName: ""
property int dimension: 20
visible: Boolean(svgName)
colorize: theme.icons.colorize
source:
svgName ?
("../../icons/" +
(theme ? theme.preferredIconPack : "light-thin") +
("../../icons/" + (theme ? theme.icons.preferredPack : "thin") +
"/" + svgName + ".svg") :
""