From 5cce65f88e3d27ede1e4277114896acc0b4d67b4 Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Sun, 17 Nov 2024 11:35:30 -0800 Subject: [PATCH] Added theming options for the Hypridle module and updated the default icon. (#518) --- customModules/config.ts | 2 -- customModules/theme.ts | 17 +++++++++++++++++ options.ts | 4 ++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/customModules/config.ts b/customModules/config.ts index 138839e..4452a43 100644 --- a/customModules/config.ts +++ b/customModules/config.ts @@ -684,7 +684,6 @@ export const CustomModuleSettings = (): Scrollable => opt: options.bar.customModules.hyprsunset.pollingInterval, title: 'Polling Interval', type: 'number', - subtitle: "WARNING: Be careful of your package manager's rate limit.", min: 100, max: 60 * 24 * 1000, increment: 1000, @@ -755,7 +754,6 @@ export const CustomModuleSettings = (): Scrollable => opt: options.bar.customModules.hypridle.pollingInterval, title: 'Polling Interval', type: 'number', - subtitle: "WARNING: Be careful of your package manager's rate limit.", min: 100, max: 60 * 24 * 1000, increment: 1000, diff --git a/customModules/theme.ts b/customModules/theme.ts index 91d8f5d..7df7755 100644 --- a/customModules/theme.ts +++ b/customModules/theme.ts @@ -184,6 +184,23 @@ export const CustomModuleTheme = (): Scrollable => { }), Option({ opt: options.theme.bar.buttons.modules.hyprsunset.border, title: 'Border', type: 'color' }), + Header('Hypridle'), + Option({ opt: options.theme.bar.buttons.modules.hypridle.text, title: 'Text', type: 'color' }), + Option({ opt: options.theme.bar.buttons.modules.hypridle.icon, title: 'Icon', type: 'color' }), + Option({ + opt: options.theme.bar.buttons.modules.hypridle.background, + title: 'Label Background', + type: 'color', + }), + Option({ + opt: options.theme.bar.buttons.modules.hypridle.icon_background, + title: 'Icon Background', + subtitle: + "Applies a background color to the icon section of the button.\nRequires 'split' button styling.", + type: 'color', + }), + Option({ opt: options.theme.bar.buttons.modules.hypridle.border, title: 'Border', type: 'color' }), + Header('Power'), Option({ opt: options.theme.bar.buttons.modules.power.icon, title: 'Icon', type: 'color' }), Option({ diff --git a/options.ts b/options.ts index f3afc61..a5f2720 100644 --- a/options.ts +++ b/options.ts @@ -1128,8 +1128,8 @@ const options = mkOptions(OPTIONS, { }, hypridle: { label: opt(true), - onIcon: opt(''), - offIcon: opt(''), + onIcon: opt(''), + offIcon: opt(''), onLabel: opt('On'), offLabel: opt('Off'), pollingInterval: opt(1000 * 2),