From cd3ed42b6d0f421577ea39a6d0a9b01db5ef7c74 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 12 Oct 2025 18:43:59 +0200 Subject: [PATCH] make symbols on left sidebar wrapped with a pentagon --- .../widgets/CookieWrappedMaterialSymbol.qml | 25 +++++++++++++++++++ .../ii/modules/sidebarLeft/AiChat.qml | 3 +-- .../ii/modules/sidebarLeft/Anime.qml | 3 +-- 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .config/quickshell/ii/modules/common/widgets/CookieWrappedMaterialSymbol.qml diff --git a/.config/quickshell/ii/modules/common/widgets/CookieWrappedMaterialSymbol.qml b/.config/quickshell/ii/modules/common/widgets/CookieWrappedMaterialSymbol.qml new file mode 100644 index 000000000..996388a3c --- /dev/null +++ b/.config/quickshell/ii/modules/common/widgets/CookieWrappedMaterialSymbol.qml @@ -0,0 +1,25 @@ +import QtQuick +import qs.modules.common +import qs.modules.common.widgets + +MaterialCookie { + id: root + property alias text: symbol.text + property alias iconSize: symbol.iconSize + property alias font: symbol.font + property alias colSymbol: symbol.color + property real padding: 6 + + color: Appearance.colors.colSecondaryContainer + colSymbol: Appearance.colors.colOnSecondaryContainer + + sides: 5 + + implicitSize: Math.max(symbol.implicitWidth, symbol.implicitHeight) + padding * 2 + + MaterialSymbol { + id: symbol + anchors.centerIn: parent + } + +} diff --git a/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml b/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml index 90ad9a451..78a0b816c 100644 --- a/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml +++ b/.config/quickshell/ii/modules/sidebarLeft/AiChat.qml @@ -374,10 +374,9 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\) anchors.centerIn: parent spacing: 5 - MaterialSymbol { + CookieWrappedMaterialSymbol { Layout.alignment: Qt.AlignHCenter iconSize: 60 - color: Appearance.m3colors.m3outline text: "neurology" } StyledText { diff --git a/.config/quickshell/ii/modules/sidebarLeft/Anime.qml b/.config/quickshell/ii/modules/sidebarLeft/Anime.qml index 13c584feb..9306a9d09 100644 --- a/.config/quickshell/ii/modules/sidebarLeft/Anime.qml +++ b/.config/quickshell/ii/modules/sidebarLeft/Anime.qml @@ -198,10 +198,9 @@ Item { anchors.centerIn: parent spacing: 5 - MaterialSymbol { + CookieWrappedMaterialSymbol { Layout.alignment: Qt.AlignHCenter iconSize: 60 - color: Appearance.m3colors.m3outline text: "bookmark_heart" } StyledText {