forked from Blendman974/faceclaw
Phone UI: Settings are a page instead of a tab, watch vs ring style input is a setting rather than a tab, EvenHub webview is a button with the main buttons rather than in the top bar
This commit is contained in:
1 parent
a02b849200
commit
cd61fefb21
35 files changed
+848
-429
No files matched your search
@@ -768,6 +768,21 @@ export const mirrorTouchSetting = new ConfigSettingBoolean({
|
||||
"Let touches on the phone's mirror act on the glasses UI: tap selects what it lands on, double-tap goes back, a hold opens the menu, swipes navigate.",
|
||||
});
|
||||
|
||||
/** Which input device the touchpad on the phone's main screen imitates. */
|
||||
export type PhoneInputStyle = "watch" | "ring";
|
||||
|
||||
export const phoneInputStyleSetting = new ConfigSettingEnum<PhoneInputStyle>({
|
||||
id: "phone-input-style",
|
||||
label: "Phone input style",
|
||||
storageKey: "phone.inputStyle",
|
||||
defaultValue: "watch",
|
||||
values: ["watch", "ring"],
|
||||
formatValue: (value) => (value === "ring" ? "Ring" : "Watch"),
|
||||
description:
|
||||
"Which device the touchpad on the phone's main screen imitates. Watch: swipes navigate, tap selects, double-tap or two fingers goes back, a hold opens the menu. " +
|
||||
"Ring: vertical swipes scroll; tap, double-tap and hold are the ring's click, double-click and long-press.",
|
||||
});
|
||||
|
||||
// Watch remote (app/g2/wear-remote.ts, wear/, apple-watch/). All three are read on
|
||||
// every watch message, so a change applies immediately.
|
||||
export const watchRemoteEnabledSetting = new ConfigSettingBoolean({
|
||||
|
||||
@@ -65,6 +65,7 @@ import {
|
||||
openAiApiKeySetting,
|
||||
previewColorSetting,
|
||||
previewScalingSetting,
|
||||
phoneInputStyleSetting,
|
||||
phoneRotationSetting,
|
||||
ringConnectionModeSetting,
|
||||
glassesTypeSetting,
|
||||
@@ -222,6 +223,8 @@ function settingsSections(): SettingsSection[] {
|
||||
enumSettingMenuItem(previewColorSetting),
|
||||
enumSettingMenuItem(previewScalingSetting),
|
||||
toggleSettingMenuItem(mirrorTouchSetting),
|
||||
// Watch or Ring: which touchpad the main page shows under the mirror.
|
||||
enumSettingMenuItem(phoneInputStyleSetting),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user