diff --git a/App_Resources/iOS/src/FaceclawGraphics.m b/App_Resources/iOS/src/FaceclawGraphics.m index b66b7411..0c9e746c 100644 --- a/App_Resources/iOS/src/FaceclawGraphics.m +++ b/App_Resources/iOS/src/FaceclawGraphics.m @@ -96,9 +96,9 @@ NSMutableData *gray = [NSMutableData dataWithLength:size * size]; const uint8_t *src = rgba.bytes; uint8_t *dst = gray.mutableBytes; - for (NSInteger i = 0; i < size * size; i++) { - dst[i] = (uint8_t)round(0.2126 * src[i * 4] + 0.7152 * src[i * 4 + 1] + 0.0722 * src[i * 4 + 2]); - } + // Icons are monochrome coverage masks, matching Android IconRenderer. + // Source black/currentColor shapes must remain visible on black lenses. + for (NSInteger i = 0; i < size * size; i++) dst[i] = src[i * 4 + 3]; CGContextRelease(context); CGColorSpaceRelease(space); return gray; diff --git a/app/native/svg-rasterizer.ios.ts b/app/native/svg-rasterizer.ios.ts index 283045dd..41ed5d9a 100644 --- a/app/native/svg-rasterizer.ios.ts +++ b/app/native/svg-rasterizer.ios.ts @@ -2,7 +2,9 @@ import { rasterizeSvg as render } from './ios-graphics' export function rasterizeSvg(svg: string, size: number, strokeWidth: number) { // Shared icon sources rely on the Android renderer's white, rounded // stroke defaults. Supply those explicitly for a standards SVG renderer. - const source = svg.replace(/]*)>/, (_tag, attributes: string) => { + // Store icons use currentColor without a surrounding document/theme. + // Resolve it explicitly; SVGKit does not inherit a host CSS color here. + const source = svg.replace(/\bcurrentColor\b/gi, '#ffffff').replace(/]*)>/, (_tag, attributes: string) => { const defaults = { xmlns: 'http://www.w3.org/2000/svg', width: '24', height: '24', stroke: svg.includes('fill="none"') ? '#ffffff' : 'none', fill: '#ffffff', 'stroke-width': String(strokeWidth), 'stroke-linecap': 'round', 'stroke-linejoin': 'round' } diff --git a/app/ui/dashboard-settings.ts b/app/ui/dashboard-settings.ts index b447ccb7..95557747 100644 --- a/app/ui/dashboard-settings.ts +++ b/app/ui/dashboard-settings.ts @@ -607,7 +607,7 @@ export const assistantBackendSetting = new ConfigSettingEnum assistantBackendLabels[value] ?? value, description: - global.isIOS ? "Cloud models called with your OpenAI or Anthropic API key." : "Who answers assistant queries: an LLM called from the phone (a cloud API with your key, or the downloaded on-phone model), or your own long-running agent (e.g. OpenClaw) reached through the faceclaw-agent-bridge plugin.", + global.isIOS ? "Cloud models called with your OpenAI or Anthropic API key. Add your key in Settings > API Keys." : "Who answers assistant queries: an LLM called from the phone (a cloud API with your key, or the downloaded on-phone model), or your own long-running agent (e.g. OpenClaw) reached through the faceclaw-agent-bridge plugin.", }); export const assistantBridgeHostSetting = new ConfigSettingString({ diff --git a/app/ui/dashboard/settings-menus.ts b/app/ui/dashboard/settings-menus.ts index 76399b10..064c3965 100644 --- a/app/ui/dashboard/settings-menus.ts +++ b/app/ui/dashboard/settings-menus.ts @@ -127,18 +127,17 @@ function settingsSections(): SettingsSection[] { { label: "Assistant", items: [ - // On-phone LLM loop vs the user's own agent via the bridge plugin. + // iOS offers cloud APIs; Android also supports local models and the bridge. enumSettingMenuItem(assistantBackendSetting), enumSettingMenuItem(assistantModelSetting), - ...(!global.isIOS ? [localModelMenuItem()] : []), - // When on, a wakeword utterance goes straight to the assistant with no - // Send/Type menu step. - toggleSettingMenuItem(assistantSkipConfirmationSetting), + // iOS has no local LLM, wakeword event delivery, or agent bridge yet. ...(!global.isIOS ? [ - textSettingMenuItem(assistantBridgeHostSetting), - textSettingMenuItem(assistantBridgePortSetting), - textSettingMenuItem(assistantBridgeTokenSetting), - toggleSettingMenuItem(assistantAllowProactiveSetting), + localModelMenuItem(), + toggleSettingMenuItem(assistantSkipConfirmationSetting), + textSettingMenuItem(assistantBridgeHostSetting), + textSettingMenuItem(assistantBridgePortSetting), + textSettingMenuItem(assistantBridgeTokenSetting), + toggleSettingMenuItem(assistantAllowProactiveSetting), ] : []), ], }, @@ -243,7 +242,7 @@ function settingsSections(): SettingsSection[] { }, ]; if (!global.isIOS) return sections; - const deferred = new Set(["Assistant", "Navigate", "Watch"]); + const deferred = new Set(["Navigate", "Watch"]); return sections.map(section => { if (section.label === "Developer") return { ...section, items: [toggleSettingMenuItem(showBleBandwidthSetting)] }; if (section.label === "Voice") return { label: "Voice", items: [{