From 5aba283e929db13032a7881f85577c9730e9d562 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 9 Oct 2025 12:23:05 +0100 Subject: [PATCH] refactor(settings): use sidebar-style colored buttons for highlight visibility - Replace generic IconButton with colored level-toggle-btn elements - Match the UI style from HighlightsPanelHeader in sidebar - Show highlight colors (purple, orange, yellow) when active - Use same CSS classes and structure for visual consistency --- .../Settings/StartupPreferencesSettings.tsx | 52 +++++++++++-------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/src/components/Settings/StartupPreferencesSettings.tsx b/src/components/Settings/StartupPreferencesSettings.tsx index 789615e3..53263076 100644 --- a/src/components/Settings/StartupPreferencesSettings.tsx +++ b/src/components/Settings/StartupPreferencesSettings.tsx @@ -1,7 +1,7 @@ import React from 'react' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faNetworkWired, faUserGroup, faUser } from '@fortawesome/free-solid-svg-icons' import { UserSettings } from '../../services/settingsService' -import IconButton from '../IconButton' interface StartupPreferencesSettingsProps { settings: UserSettings @@ -41,28 +41,34 @@ const StartupPreferencesSettings: React.FC = ({
-
- onUpdate({ defaultHighlightVisibilityNostrverse: !(settings.defaultHighlightVisibilityNostrverse !== false) })} - title="Nostrverse highlights" - ariaLabel="Toggle nostrverse highlights by default" - variant={(settings.defaultHighlightVisibilityNostrverse !== false) ? 'primary' : 'ghost'} - /> - onUpdate({ defaultHighlightVisibilityFriends: !(settings.defaultHighlightVisibilityFriends !== false) })} - title="Friends highlights" - ariaLabel="Toggle friends highlights by default" - variant={(settings.defaultHighlightVisibilityFriends !== false) ? 'primary' : 'ghost'} - /> - onUpdate({ defaultHighlightVisibilityMine: !(settings.defaultHighlightVisibilityMine !== false) })} - title="My highlights" - ariaLabel="Toggle my highlights by default" - variant={(settings.defaultHighlightVisibilityMine !== false) ? 'primary' : 'ghost'} - /> +
+ + +