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
@@ -74,6 +74,9 @@ function applySettingsTextFieldContrast(textField: TextField): void {
|
||||
|
||||
nativeTextField.setTextColor(android.graphics.Color.rgb(34, 34, 34))
|
||||
nativeTextField.setHintTextColor(android.graphics.Color.rgb(102, 102, 102))
|
||||
// Editing an existing value usually means replacing it: select all on focus
|
||||
// so typing starts fresh but the current value stays visible.
|
||||
nativeTextField.setSelectAllOnFocus(true)
|
||||
}
|
||||
|
||||
function focusSystemNameField(page: Page): void {
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
id="settingsTextField"
|
||||
text="{{ activeTextSettingValue }}"
|
||||
textChange="{{ onTextSettingTextChange }}"
|
||||
returnPress="{{ onTextSettingReturnPress }}"
|
||||
autocorrect="false"
|
||||
autocapitalizationType="words"
|
||||
returnKeyType="done" />
|
||||
|
||||
@@ -295,6 +295,10 @@ export class MainViewModel extends Observable {
|
||||
dashboardController.setActiveTextSettingValue(args.object?.text ?? args.value ?? "");
|
||||
}
|
||||
|
||||
onTextSettingReturnPress(): void {
|
||||
dashboardController.finishActiveTextSettingEdit();
|
||||
}
|
||||
|
||||
onOpenEvenAppSettingsTap(): void {
|
||||
dashboardController.openEvenAppSettings();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user