Add a phone preview Rotation setting; improve landscape layout

This commit is contained in:
James Babcock committed 2026-09-08 02:43:51 -07:00
1 parent 3d39d27456
commit 1154474754
9 files changed
+165 -74

No files matched your search

+11
View File
@@ -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",
+2
View File
@@ -48,6 +48,7 @@ import {
navigateWorkAddressSetting,
openAiApiKeySetting,
previewColorSetting,
phoneRotationSetting,
ringConnectionModeSetting,
sonioxApiKeySetting,
enumSettingMenuItem,
@@ -177,6 +178,7 @@ function settingsSections(): SettingsSection[] {
// The phone app's mirror of the glasses screen and its controls
// (app/phone-ui/): all read live by the main page.
items: [
enumSettingMenuItem(phoneRotationSetting),
enumSettingMenuItem(previewColorSetting),
toggleSettingMenuItem(mirrorTouchSetting),
],