From 45f97d8f94f67657421316f082ac1d4222012691 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 15 Apr 2025 15:22:31 +1000 Subject: feat: add low transparency mode --- src/config/defaults.ts | 2 +- src/config/types.ts | 2 +- src/modules/launcher/actions.tsx | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/config/defaults.ts b/src/config/defaults.ts index 21ba436..a5ebbbc 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -2,7 +2,7 @@ import { Astal } from "astal/gtk3"; export default { style: { - transparency: "normal", // One of "off", "normal", "high" + transparency: "normal", // One of "off", "low", "normal", "high" borders: true, vibrant: false, // Extra saturation }, diff --git a/src/config/types.ts b/src/config/types.ts index 5e7415a..c8fb9b4 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -7,7 +7,7 @@ const ARR = (type: string | string[]) => `array of ${typeof type === "string" ? const OBJ_ARR = (shape: object) => ARR(JSON.stringify(shape)); export default { - "style.transparency": ["off", "normal", "high"], + "style.transparency": ["off", "low", "normal", "high"], "style.borders": BOOL, "style.vibrant": BOOL, "config.notifyOnError": BOOL, diff --git a/src/modules/launcher/actions.tsx b/src/modules/launcher/actions.tsx index 04c5458..1caa317 100644 --- a/src/modules/launcher/actions.tsx +++ b/src/modules/launcher/actions.tsx @@ -31,6 +31,11 @@ const transparencyActions = { name: "Off", description: "Completely opaque", }, + low: { + icon: "blur_circular", + name: "Low", + description: "Less transparent", + }, normal: { icon: "blur_linear", name: "Normal", -- cgit v1.2.3-freya