From 5c71c53787c2270ff4c184d368a6492339212958 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 30 Oct 2025 11:42:54 +0100 Subject: [PATCH] make region selector use materialshape instead of materialcookie --- .../modules/regionSelector/OptionsToolbar.qml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/regionSelector/OptionsToolbar.qml b/dots/.config/quickshell/ii/modules/regionSelector/OptionsToolbar.qml index e737e9cac..d4e54ddda 100644 --- a/dots/.config/quickshell/ii/modules/regionSelector/OptionsToolbar.qml +++ b/dots/.config/quickshell/ii/modules/regionSelector/OptionsToolbar.qml @@ -23,13 +23,25 @@ Toolbar { // Signals signal dismiss() - MaterialCookie { + MaterialShape { Layout.fillHeight: true Layout.leftMargin: 2 Layout.rightMargin: 2 implicitSize: 36 // Intentionally smaller because this one is brighter than others - sides: 10 - amplitude: implicitSize / 44 + shape: switch (root.action) { + case RegionSelection.SnipAction.Copy: + case RegionSelection.SnipAction.Edit: + return MaterialShape.Shape.Cookie4Sided; + case RegionSelection.SnipAction.Search: + return MaterialShape.Shape.Pentagon; + case RegionSelection.SnipAction.CharRecognition: + return MaterialShape.Shape.Sunny; + case RegionSelection.SnipAction.Record: + case RegionSelection.SnipAction.RecordWithSound: + return MaterialShape.Shape.Gem; + default: + return MaterialShape.Shape.Cookie12Sided; + } color: Appearance.colors.colPrimary MaterialSymbol { anchors.centerIn: parent