diff --git a/src/components/HighlightsPanel/HighlightsPanelHeader.tsx b/src/components/HighlightsPanel/HighlightsPanelHeader.tsx index fa156592..f98b3040 100644 --- a/src/components/HighlightsPanel/HighlightsPanelHeader.tsx +++ b/src/components/HighlightsPanel/HighlightsPanelHeader.tsx @@ -40,8 +40,11 @@ const HighlightsPanelHeader: React.FC = ({ })} title="Toggle nostrverse highlights" ariaLabel="Toggle nostrverse highlights" - variant={highlightVisibility.nostrverse ? 'primary' : 'ghost'} - style={{ color: highlightVisibility.nostrverse ? 'var(--highlight-color-nostrverse, #9333ea)' : undefined }} + variant="ghost" + style={{ + color: highlightVisibility.nostrverse ? 'var(--highlight-color-nostrverse, #9333ea)' : undefined, + opacity: highlightVisibility.nostrverse ? 1 : 0.4 + }} /> = ({ })} title={currentUserPubkey ? "Toggle friends highlights" : "Login to see friends highlights"} ariaLabel="Toggle friends highlights" - variant={highlightVisibility.friends ? 'primary' : 'ghost'} + variant="ghost" disabled={!currentUserPubkey} - style={{ color: highlightVisibility.friends ? 'var(--highlight-color-friends, #f97316)' : undefined }} + style={{ + color: highlightVisibility.friends ? 'var(--highlight-color-friends, #f97316)' : undefined, + opacity: highlightVisibility.friends ? 1 : 0.4 + }} /> = ({ })} title={currentUserPubkey ? "Toggle my highlights" : "Login to see your highlights"} ariaLabel="Toggle my highlights" - variant={highlightVisibility.mine ? 'primary' : 'ghost'} + variant="ghost" disabled={!currentUserPubkey} - style={{ color: highlightVisibility.mine ? 'var(--highlight-color-mine, #eab308)' : undefined }} + style={{ + color: highlightVisibility.mine ? 'var(--highlight-color-mine, #eab308)' : undefined, + opacity: highlightVisibility.mine ? 1 : 0.4 + }} /> )} diff --git a/src/components/Settings/ReadingDisplaySettings.tsx b/src/components/Settings/ReadingDisplaySettings.tsx index 34630425..e844ec60 100644 --- a/src/components/Settings/ReadingDisplaySettings.tsx +++ b/src/components/Settings/ReadingDisplaySettings.tsx @@ -1,5 +1,4 @@ import React from 'react' -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faHighlighter, faUnderline, faNetworkWired, faUserGroup, faUser } from '@fortawesome/free-solid-svg-icons' import { UserSettings } from '../../services/settingsService' import IconButton from '../IconButton' @@ -102,33 +101,39 @@ const ReadingDisplaySettings: React.FC = ({ setting
- - - + ariaLabel="Toggle my highlights by default" + variant="ghost" + style={{ + color: (settings.defaultHighlightVisibilityMine !== false) ? 'var(--highlight-color-mine, #eab308)' : undefined, + opacity: (settings.defaultHighlightVisibilityMine !== false) ? 1 : 0.4 + }} + />