diff --git a/src/widgets/RemoteControlStatus.ts b/src/widgets/RemoteControlStatus.ts index 87ceec019..eeef782a0 100644 --- a/src/widgets/RemoteControlStatus.ts +++ b/src/widgets/RemoteControlStatus.ts @@ -17,7 +17,9 @@ import { const SATELLITE_EMOJI = '📡'; const SATELLITE_NERD_FONT = ''; -const SATELLITE_SLASH_NERD_FONT = ''; +// nf-md-wifi_off. Nerd Fonts v3 moved the Material Design icons out of the +// BMP; the v2 codepoint this used to be (U+F6AC) is unassigned in v3 fonts. +const SATELLITE_SLASH_NERD_FONT = '\u{f05aa}'; const STATE_DOT_OFF = '○'; const STATE_DOT_ON = '◉'; diff --git a/src/widgets/__tests__/RemoteControlStatus.test.ts b/src/widgets/__tests__/RemoteControlStatus.test.ts index 97ff91315..74d4626c9 100644 --- a/src/widgets/__tests__/RemoteControlStatus.test.ts +++ b/src/widgets/__tests__/RemoteControlStatus.test.ts @@ -195,9 +195,9 @@ describe('RemoteControlStatusWidget', () => { describe('render() - format icon, Nerd Font', () => { const NERD_ITEM: WidgetItem = { ...ITEM, metadata: { nerdFont: 'true' } }; - it('renders disconnected glyph (U+F6AC) when OFF', () => { + it('renders nf-md-wifi_off (U+F05AA) when OFF', () => { vi.spyOn(claudeSettings, 'getRemoteControlStatus').mockReturnValue({ enabled: false }); - expect(new RemoteControlStatusWidget().render(NERD_ITEM, makeContext(), DEFAULT_SETTINGS)).toBe('\uF6AC'); + expect(new RemoteControlStatusWidget().render(NERD_ITEM, makeContext(), DEFAULT_SETTINGS)).toBe('\u{F05AA}'); }); it('renders connected glyph (U+F1EB) when ON', () => { @@ -317,7 +317,7 @@ describe('RemoteControlStatusWidget', () => { { name: 'icon with Nerd Font', item: { ...RAW_ITEM, metadata: { nerdFont: 'true' } }, - off: '\uF6AC', + off: '\u{F05AA}', on: '\uF1EB' }, {