forked from Blendman974/faceclaw
Various UI tweaks
Fix missing submenu indicators and change their appearance. Clean up styling in the Terminal app and move Settings to the top-level menu. Remove right padding from the bottom bar.
This commit is contained in:
1 parent
eff32d4a5a
commit
295922effd
12 files changed
+95
-96
No files matched your search
@@ -5,7 +5,7 @@ import { copyRemoteToken, remoteInterfaces } from '../../native/remote-input';
|
||||
import { TextViewerLayer } from '../../apps/files/text-viewer';
|
||||
import { ConfigSettingString, textSettingMenuItem } from '../dashboard-settings';
|
||||
import { getDefaultSmallFont } from '../../graphics/ui-fonts';
|
||||
import { drawRightValueMenuItem, type MenuItem } from '../menu';
|
||||
import { drawRightValueMenuItem, submenuItem, type MenuItem } from '../menu';
|
||||
import { type LayerContext } from '../layers';
|
||||
import { openSettingsSubMenu } from './settings-panel';
|
||||
|
||||
@@ -86,5 +86,5 @@ function openTokens(ctx: LayerContext): void {
|
||||
]);
|
||||
}
|
||||
export function remoteInputMenuItem(): MenuItem {
|
||||
return { label: 'Input tokens', description: 'Allow another app to provide ring/watch input, type into the foreground window, or send messages to the voice assistant. Create tokens with individual permissions and revoke them here.', onSelect: openTokens };
|
||||
return submenuItem('Input tokens', openTokens, { description: 'Allow another app to provide ring/watch input, type into the foreground window, or send messages to the voice assistant. Create tokens with individual permissions and revoke them here.' });
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
} from "../../native/asr-model";
|
||||
import { TextViewerLayer } from "../../apps/files/text-viewer";
|
||||
import type { LayerContext } from "../layers";
|
||||
import { drawRightValueMenuItem, openModalMenu, type MenuItem } from "../menu";
|
||||
import { drawRightValueMenuItem, openModalMenu, submenuItem, type MenuItem } from "../menu";
|
||||
import { shell } from "../shell/shell";
|
||||
import {
|
||||
anthropicApiKeySetting,
|
||||
@@ -262,17 +262,17 @@ function customizationRows(): () => MenuItem[] {
|
||||
}
|
||||
|
||||
function autoBrightnessMenuItem(): MenuItem {
|
||||
return {
|
||||
label: "Auto-brightness",
|
||||
description: "Adjust the minimum, maximum, and ambient-light curve used by Auto brightness.",
|
||||
onSelect: (ctx) => {
|
||||
return submenuItem(
|
||||
"Auto-brightness",
|
||||
(ctx) => {
|
||||
openSettingsSubMenu(ctx, "Auto-brightness", [
|
||||
enumSettingMenuItem(autoBrightnessMinSetting),
|
||||
enumSettingMenuItem(autoBrightnessMaxSetting),
|
||||
textSettingMenuItem(autoBrightnessCurveSetting),
|
||||
]);
|
||||
},
|
||||
};
|
||||
{ description: "Adjust the minimum, maximum, and ambient-light curve used by Auto brightness." },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -310,16 +310,16 @@ function batteryIndicatorsMenuItem(): MenuItem {
|
||||
|
||||
/** The Customization section's "Animations" row: opens a modal submenu of animation toggles. */
|
||||
function animationsMenuItem(): MenuItem {
|
||||
return {
|
||||
label: "Animations",
|
||||
description: "Turn off menu and icon-grid motion, or the fade when the screen turns on and off.",
|
||||
onSelect: (ctx) => {
|
||||
return submenuItem(
|
||||
"Animations",
|
||||
(ctx) => {
|
||||
openSettingsSubMenu(ctx, "Animations", [
|
||||
toggleSettingMenuItem(menuAnimationSetting),
|
||||
toggleSettingMenuItem(screenFadeSetting),
|
||||
]);
|
||||
},
|
||||
};
|
||||
{ description: "Turn off menu and icon-grid motion, or the fade when the screen turns on and off." },
|
||||
);
|
||||
}
|
||||
|
||||
const LOCAL_MODEL_GB = `${(LOCAL_MODEL.sizeBytes / 1e9).toFixed(1)}GB`;
|
||||
|
||||
Reference in new issue
Block a user