Fix: Improved GDK to Hyprland monitor mapping logic. (#867)

* Feat: Improved GDK<->Hyprland monitor mapping logic.

* Update src/components/bar/utils/GdkMonitorMapper.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix type issue.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jas Singh
2025-03-28 01:52:25 -07:00
committed by GitHub
parent c147f154a4
commit b6b58edf76
6 changed files with 395 additions and 283 deletions

View File

@@ -1,6 +1,6 @@
import FontButton from 'src/components/shared/FontButton';
import { Opt } from 'src/lib/option';
import { styleToString } from './utils';
import { FontStyle, styleToString } from './utils';
export const FontInputter = <T extends string | number | boolean | object>({
fontFamily,
@@ -38,6 +38,6 @@ export const FontInputter = <T extends string | number | boolean | object>({
interface FontInputterProps<T> {
fontFamily: Opt<T>;
fontStyle?: Opt<string>;
fontStyle?: Opt<FontStyle>;
fontLabel?: Opt<string>;
}