From 1456cfe9072750ec887af21a94819d810ad7d6b3 Mon Sep 17 00:00:00 2001 From: Guocork Date: Wed, 18 Dec 2024 17:32:40 +0800 Subject: [PATCH 1/5] add logout icon --- resources/icons/logout.svg | 1 + src/home/spaces_dock.rs | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 resources/icons/logout.svg diff --git a/resources/icons/logout.svg b/resources/icons/logout.svg new file mode 100644 index 0000000..4147993 --- /dev/null +++ b/resources/icons/logout.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/home/spaces_dock.rs b/src/home/spaces_dock.rs index 7b19486..64e2e28 100644 --- a/src/home/spaces_dock.rs +++ b/src/home/spaces_dock.rs @@ -17,6 +17,7 @@ live_design! { ICON_HOME = dep("crate://self/resources/icons/home.svg") ICON_SETTINGS = dep("crate://self/resources/icons/settings.svg") + ICON_LOGOUT = dep("crate://self/resources/icons/logout.svg") Filler = { height: Fill, width: Fill @@ -102,6 +103,30 @@ live_design! { } } + Logout = { + width: Fit, height: Fit + padding: {top: 8, left: 8, right: 12, bottom: 8} + align: {x: 0.5, y: 0.5} +