From 3f6596b52301d2cc938fc53a26a45e06c95ca5ef Mon Sep 17 00:00:00 2001 From: student-ice Date: Thu, 10 Aug 2023 15:05:35 +0800 Subject: [PATCH] fix: Titlebar icon doesn't change with the theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 标题栏图标不跟随主题变化 --- src/maincomponentplugin/titlebar/MyTitleBar.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/maincomponentplugin/titlebar/MyTitleBar.qml b/src/maincomponentplugin/titlebar/MyTitleBar.qml index 61b0ca3..acfed87 100644 --- a/src/maincomponentplugin/titlebar/MyTitleBar.qml +++ b/src/maincomponentplugin/titlebar/MyTitleBar.qml @@ -13,16 +13,12 @@ import "../router" TitleBar { id: root height: DS.Style.titleBar.height + icon.name: "deepin-home" signal notifyClicked() leftContent: RowLayout { - Image { - x: 10 - source: "/images/deepin-home.svg" - sourceSize.width: root.height - 10 - sourceSize.height: root.height - 10 - } Button { + Layout.leftMargin: 5 visible: Router.routeCurrent !== Router.routeIndex Layout.maximumWidth: 36 height: 36