From d3150613852cf233071e2773195738e8b543ce4a Mon Sep 17 00:00:00 2001 From: cutefishd Date: Thu, 8 Apr 2021 00:44:38 +0800 Subject: [PATCH] LeftItem: add down icon --- images/dark/down.svg | 93 +++++++++++++++++++++++++++++++++++++++++++ images/light/down.svg | 93 +++++++++++++++++++++++++++++++++++++++++++ qml.qrc | 2 + qml/main.qml | 8 ++++ 4 files changed, 196 insertions(+) create mode 100644 images/dark/down.svg create mode 100644 images/light/down.svg diff --git a/images/dark/down.svg b/images/dark/down.svg new file mode 100644 index 0000000..ae209a9 --- /dev/null +++ b/images/dark/down.svg @@ -0,0 +1,93 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/light/down.svg b/images/light/down.svg new file mode 100644 index 0000000..1926146 --- /dev/null +++ b/images/light/down.svg @@ -0,0 +1,93 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/qml.qrc b/qml.qrc index b972a1e..5c1dbe9 100644 --- a/qml.qrc +++ b/qml.qrc @@ -101,5 +101,7 @@ qml/ControlDialog.qml qml/CardItem.qml qml/IconButton.qml + images/dark/down.svg + images/light/down.svg diff --git a/qml/main.qml b/qml/main.qml index bb11970..585f638 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -48,10 +48,18 @@ Item { anchors.fill: parent anchors.leftMargin: Meui.Units.smallSpacing anchors.rightMargin: Meui.Units.smallSpacing + spacing: Meui.Units.largeSpacing Label { text: acticity.title } + + Image { + width: 16 + height: 16 + sourceSize: Qt.size(width, height) + source: "qrc:/images/" + (Meui.Theme.darkMode ? "dark/down.svg" : "light/down.svg") + } } }