* Resolves #13 - Added on-screen-displays to indicate volume and brightness changes. * <3 Aylur * Update brightness logic for osd * Update brightness labels * Fixed typos in the settings menu component. * Added options to toggle OSD and change its orientation.
28 lines
734 B
TypeScript
28 lines
734 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
|
|
}
|
|
|
|
export type OSDOrientation = "horizontal" | "vertical";
|