forked from Blendman974/faceclaw
Add a phone preview Rotation setting; improve landscape layout
This commit is contained in:
1 parent
3d39d27456
commit
1154474754
9 files changed
+165
-74
No files matched your search
@@ -285,6 +285,17 @@ export const lockScreenEnabledSetting = new ConfigSettingBoolean({
|
||||
// Phone display: the phone app's mirror of the glasses screen and the
|
||||
// controls around it on the main page.
|
||||
export type PreviewColor = "white" | "green";
|
||||
export type PhoneRotation = "auto" | "portrait" | "landscape";
|
||||
|
||||
export const phoneRotationSetting = new ConfigSettingEnum<PhoneRotation>({
|
||||
id: "phone-rotation",
|
||||
label: "Rotation",
|
||||
storageKey: "phone.rotation",
|
||||
defaultValue: "auto",
|
||||
values: ["auto", "portrait", "landscape"],
|
||||
formatValue: (value) => ({ auto: "Auto-Rotate", portrait: "Always Portrait", landscape: "Always Landscape" })[value],
|
||||
description: "Automatically rotate with the phone, or keep the phone app in portrait or landscape. Auto-Rotate follows the phone's system rotation preference.",
|
||||
});
|
||||
|
||||
export const previewColorSetting = new ConfigSettingEnum<PreviewColor>({
|
||||
id: "preview-color",
|
||||
|
||||
Reference in new issue
Block a user