Added the ability to define custom icons for the system tray. (#408)

* Added the ability to define custom icons for the system tray.

* Add placeholder icon if icon is not defined.

* Update themes
This commit is contained in:
Jas Singh
2024-10-30 21:16:15 -07:00
committed by GitHub
parent aaad7c73b5
commit 77d4512c82
51 changed files with 534 additions and 399 deletions

View File

@@ -13,6 +13,7 @@ import {
WindowLayer,
} from 'lib/types/options';
import { MatugenScheme, MatugenTheme, MatugenVariations } from 'lib/types/options';
import { SystrayIconMap } from 'lib/types/systray';
import { UnitType } from 'lib/types/weather';
import { Transition } from 'lib/types/widget';
import { ApplicationIcons, WorkspaceIcons, WorkspaceIconsColored } from 'lib/types/workspace';
@@ -242,6 +243,7 @@ const options = mkOptions(OPTIONS, {
},
systray: {
enableBorder: opt(false),
customIcon: opt(colors.text),
border: opt(colors.lavender),
background: opt(colors.base2),
spacing: opt('0.5em'),
@@ -923,6 +925,7 @@ const options = mkOptions(OPTIONS, {
},
systray: {
ignore: opt<string[]>([]),
customIcons: opt<SystrayIconMap>({}),
},
clock: {
icon: opt('󰸗'),