diff options
| author | xiphon <xiphon@protonmail.com> | 2019-11-25 05:52:13 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-11-25 06:37:21 +0000 |
| commit | 0daf2aacf560b85e1c5660e8dc749ce98b96dc47 (patch) | |
| tree | 0b6767c5a7b9dc8bcb458b6c979ce6b553e6eed1 /components/CheckBox.qml | |
| parent | 2f5c47e95fab6beec40e8c1dec7b74c75b931a0c (diff) | |
| download | monzero-gui-0daf2aacf560b85e1c5660e8dc749ce98b96dc47.tar.gz monzero-gui-0daf2aacf560b85e1c5660e8dc749ce98b96dc47.tar.xz monzero-gui-0daf2aacf560b85e1c5660e8dc749ce98b96dc47.zip | |
CheckBox: use Font Awesome plus/minus icons, remove unused images
Diffstat (limited to 'components/CheckBox.qml')
| -rw-r--r-- | components/CheckBox.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/CheckBox.qml b/components/CheckBox.qml index 99ea6416..4ef1aae8 100644 --- a/components/CheckBox.qml +++ b/components/CheckBox.qml @@ -38,6 +38,7 @@ Item { property alias text: label.text property string checkedIcon: "qrc:///images/check-white.svg" property string uncheckedIcon + property bool fontAwesomeIcons: false property int imgWidth: 13 property int imgHeight: 13 property bool toggleOnClick: true @@ -89,9 +90,11 @@ Item { width: checkBox.imgWidth height: checkBox.imgHeight color: MoneroComponents.Style.defaultFontColor - fontAwesomeFallbackIcon: FontAwesome.plus + fontAwesomeFallbackIcon: checkBox.fontAwesomeIcons ? getIcon() : FontAwesome.plus fontAwesomeFallbackSize: 14 - image: { + image: checkBox.fontAwesomeIcons ? "" : getIcon() + + function getIcon() { if (checkBox.checked || checkBox.uncheckedIcon == "") return checkBox.checkedIcon; return checkBox.uncheckedIcon; |
