forked from Blendman974/faceclaw
UI improvements
Menus can paginate and be taller than quarter-screen. Text config setting editor selects all on enter, exits on confirm. Notification icons are displayed on the notifications-list and single-notification pages.
This commit is contained in:
1 parent
049824f489
commit
d2a942f5a3
11 files changed
+223
-26
No files matched your search
@@ -16,6 +16,7 @@ import { voiceControlBridge } from "../native/voice-control";
|
||||
import { G2_LENS_HEIGHT, G2_LENS_WIDTH, GrayImage } from "../graphics/image";
|
||||
import {
|
||||
applyDashboardScreenTimeout,
|
||||
closeDashboardTextSettingEditor,
|
||||
dashboardState,
|
||||
drawDashboard,
|
||||
noteDashboardPhoneTextInput,
|
||||
@@ -530,6 +531,23 @@ class DashboardController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Finish the active edit from the phone side (e.g. the IME's done key):
|
||||
* ends the edit session and navigates the glasses out of the edit page.
|
||||
*/
|
||||
finishActiveTextSettingEdit(): void {
|
||||
if (!this.activeTextSetting) return;
|
||||
this.endTextSettingEdit();
|
||||
if (!closeDashboardTextSettingEditor()) return;
|
||||
if (this.phase === "connected" && this.communicator) {
|
||||
void this.requestRender("interval").catch((error) => {
|
||||
this.appendLog(`edit close render failed: ${this.formatError(error)}`);
|
||||
});
|
||||
} else {
|
||||
this.updateDisplayPreviewFromImage(drawDashboard());
|
||||
}
|
||||
}
|
||||
|
||||
private updateTextSetting(setting: ConfigSettingString, value: string): void {
|
||||
if (setting.get() !== value) {
|
||||
setting.set(value);
|
||||
|
||||
Reference in new issue
Block a user