feat: UI for changing display orientation

* Added UI for changing display orientation.

* Fixed lint issue.
This commit is contained in:
Peder Toftegaard Olsen
2025-05-11 17:17:41 +02:00
committed by GitHub
parent d79f359c43
commit 5a4f1766b7
5 changed files with 75 additions and 0 deletions

View File

@@ -292,6 +292,9 @@ interface SettingsState {
developerMode: boolean;
setDeveloperMode: (enabled: boolean) => void;
displayRotation: string;
setDisplayRotation: (rotation: string) => void;
backlightSettings: BacklightSettings;
setBacklightSettings: (settings: BacklightSettings) => void;
}
@@ -312,6 +315,10 @@ export const useSettingsStore = create(
developerMode: false,
setDeveloperMode: enabled => set({ developerMode: enabled }),
displayRotation: "270",
setDisplayRotation: (rotation: string) =>
set({ displayRotation: rotation }),
backlightSettings: {
max_brightness: 100,
dim_after: 10000,