Files
custum-hyprpanel/lib/types/options.d.ts
matavach 1f7c5a70ca added 'increment' option for Inputter (#64)
* added 'increment' option for Inputter

* added 'quick edit: added max value for font-weight

* forgot to include type change
2024-08-02 19:54:25 -07:00

29 lines
757 B
TypeScript

import { Opt } from "lib/option";
export type Unit = "imperial" | "metric";
export type PowerOptions = "sleep" | "reboot" | "logout" | "shutdown";
export type NotificationAnchor = "top" | "top right" | "top left" | "bottom" | "bottom right" | "bottom left";
export type OSDAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
export type RowProps<T> = {
opt: Opt<T>
title: string
note?: string
type?:
| "number"
| "color"
| "float"
| "object"
| "string"
| "enum"
| "boolean"
| "img"
| "font"
enums?: string[]
max?: number
min?: number
subtitle?: string
increment?: number
}
export type OSDOrientation = "horizontal" | "vertical";