From 6f08b09494a21cdd9a689bcf0c8517bfef4cbd79 Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 13 Apr 2025 13:33:27 -0700 Subject: [PATCH] fix: use foreground color for icon default --- AppIcon.qml | 2 +- gallery/Main.qml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AppIcon.qml b/AppIcon.qml index aa68a63..7e4e396 100644 --- a/AppIcon.qml +++ b/AppIcon.qml @@ -4,7 +4,7 @@ import QtQuick.Controls.Basic Item { id: item required property string source - property color color: "white" + property color color: Theme.foreground required property int iconHeight required property int iconWidth property var onClicked diff --git a/gallery/Main.qml b/gallery/Main.qml index 2d5efc5..df81fc5 100644 --- a/gallery/Main.qml +++ b/gallery/Main.qml @@ -152,6 +152,11 @@ AppWindow { // NOTE: MenuItem is not recommended as it isn't consistent with the menu theming. Please use Action until a fix is made. } + AppIcon { + source: "qrc:/live.flowy/imports/DesignSystem/icons/sidebar-duotone.svg" + iconWidth: 10 + iconHeight: 10 + } AppSecondaryButton { onClicked: menu.open() text: "Open menu"