feat: add world clock module (#795)

Co-authored-by: Louis Dalibard <ontake@ontake.dev>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
Louis Dalibard
2025-04-05 08:10:51 +02:00
committed by GitHub
parent 9a40475f4a
commit 1d717e9f2e
9 changed files with 291 additions and 0 deletions

View File

@@ -419,6 +419,29 @@ export const CustomModuleSettings = (): JSX.Element => {
<Option opt={options.bar.customModules.cava.scrollUp} title="Scroll Up" type="string" />
<Option opt={options.bar.customModules.cava.scrollDown} title="Scroll Down" type="string" />
{/* World Clock Section */}
<Header title="World Clock" />
<Option
opt={options.theme.bar.buttons.modules.worldclock.enableBorder}
title="Button Border"
type="boolean"
/>
<Option opt={options.bar.customModules.worldclock.icon} title="Icon" type="string" />
<Option opt={options.bar.customModules.worldclock.showIcon} title="Show Icon" type="boolean" />
<Option opt={options.theme.bar.buttons.modules.worldclock.spacing} title="Spacing" type="string" />
<Option opt={options.bar.customModules.worldclock.showTime} title="Show Time" type="boolean" />
<Option opt={options.bar.customModules.worldclock.format} title="Format" type="string" />
<Option
opt={options.bar.customModules.worldclock.formatDiffDate}
title="Format (when date different from local date)"
type="string"
/>
<Option opt={options.bar.customModules.worldclock.rightClick} title="Right Click" type="string" />
<Option opt={options.bar.customModules.worldclock.middleClick} title="Middle Click" type="string" />
<Option opt={options.bar.customModules.worldclock.scrollUp} title="Scroll Up" type="string" />
<Option opt={options.bar.customModules.worldclock.scrollDown} title="Scroll Down" type="string" />
<Option opt={options.bar.customModules.worldclock.tz} title="Timezones Displayed" type="object" />
{/* Power Section */}
<Header title="Power" />
<Option