style: make support heart icon orange using friends color from settings

This commit is contained in:
Gigi
2025-10-15 14:59:51 +02:00
parent 1d1d389a03
commit 65d330d5ed
2 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import { usePullToRefresh } from 'use-pull-to-refresh'
import RefreshIndicator from './RefreshIndicator' import RefreshIndicator from './RefreshIndicator'
import { BookmarkSkeleton } from './Skeletons' import { BookmarkSkeleton } from './Skeletons'
import { groupIndividualBookmarks, hasContent } from '../utils/bookmarkUtils' import { groupIndividualBookmarks, hasContent } from '../utils/bookmarkUtils'
import { UserSettings } from '../services/settingsService'
interface BookmarkListProps { interface BookmarkListProps {
bookmarks: Bookmark[] bookmarks: Bookmark[]
@@ -30,6 +31,7 @@ interface BookmarkListProps {
loading?: boolean loading?: boolean
relayPool: RelayPool | null relayPool: RelayPool | null
isMobile?: boolean isMobile?: boolean
settings?: UserSettings
} }
export const BookmarkList: React.FC<BookmarkListProps> = ({ export const BookmarkList: React.FC<BookmarkListProps> = ({
@@ -47,10 +49,12 @@ export const BookmarkList: React.FC<BookmarkListProps> = ({
lastFetchTime, lastFetchTime,
loading = false, loading = false,
relayPool, relayPool,
isMobile = false isMobile = false,
settings
}) => { }) => {
const navigate = useNavigate() const navigate = useNavigate()
const bookmarksListRef = useRef<HTMLDivElement>(null) const bookmarksListRef = useRef<HTMLDivElement>(null)
const friendsColor = settings?.highlightColorFriends || '#f97316'
// Pull-to-refresh for bookmarks // Pull-to-refresh for bookmarks
const { isRefreshing: isPulling, pullPosition } = usePullToRefresh({ const { isRefreshing: isPulling, pullPosition } = usePullToRefresh({
@@ -157,6 +161,7 @@ export const BookmarkList: React.FC<BookmarkListProps> = ({
title="Support Boris" title="Support Boris"
ariaLabel="Support" ariaLabel="Support"
variant="ghost" variant="ghost"
style={{ color: friendsColor }}
/> />
{onRefresh && ( {onRefresh && (
<IconButton <IconButton

View File

@@ -324,6 +324,7 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
loading={props.bookmarksLoading} loading={props.bookmarksLoading}
relayPool={props.relayPool} relayPool={props.relayPool}
isMobile={isMobile} isMobile={isMobile}
settings={props.settings}
/> />
</div> </div>
<div <div