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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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") :
|
||||
""
|
||||
|
||||
|
Reference in New Issue
Block a user