mirror of
https://github.com/dergigi/boris.git
synced 2025-12-20 16:14:20 +01:00
fix: reduce brightness and add colored border to highlight count indicator
- Set background color to 75% opacity (bf hex) to reduce brightness - Add border color matching the highlight group color - Makes the indicator less overwhelming while maintaining visibility
This commit is contained in:
@@ -87,7 +87,8 @@ const ReaderHeader: React.FC<ReaderHeaderProps> = ({
|
|||||||
<div
|
<div
|
||||||
className="highlight-indicator"
|
className="highlight-indicator"
|
||||||
style={highlightIndicatorColor ? {
|
style={highlightIndicatorColor ? {
|
||||||
backgroundColor: highlightIndicatorColor,
|
backgroundColor: `${highlightIndicatorColor}bf`,
|
||||||
|
borderColor: highlightIndicatorColor,
|
||||||
color: '#000'
|
color: '#000'
|
||||||
} : undefined}
|
} : undefined}
|
||||||
>
|
>
|
||||||
@@ -130,7 +131,8 @@ const ReaderHeader: React.FC<ReaderHeaderProps> = ({
|
|||||||
<div
|
<div
|
||||||
className="highlight-indicator"
|
className="highlight-indicator"
|
||||||
style={highlightIndicatorColor ? {
|
style={highlightIndicatorColor ? {
|
||||||
backgroundColor: highlightIndicatorColor,
|
backgroundColor: `${highlightIndicatorColor}bf`,
|
||||||
|
borderColor: highlightIndicatorColor,
|
||||||
color: '#000'
|
color: '#000'
|
||||||
} : undefined}
|
} : undefined}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user