mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
style: make support heart icon orange using friends color from settings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user