Increase link brightness for darkmode to make links more easy to read
This commit is contained in:
parent
0b5ecb18cd
commit
2ad01885c1
|
@ -267,7 +267,7 @@ private extension ArticleRenderer {
|
||||||
let blue: Int
|
let blue: Int
|
||||||
|
|
||||||
if NSApplication.shared.effectiveAppearance.isDarkMode {
|
if NSApplication.shared.effectiveAppearance.isDarkMode {
|
||||||
let brighten = CGFloat(0.25)
|
let brighten = CGFloat(0.50)
|
||||||
let baseRed = linkColor.redComponent * 0xFF
|
let baseRed = linkColor.redComponent * 0xFF
|
||||||
red = Int(round(((255 - baseRed) * brighten)) + round(baseRed))
|
red = Int(round(((255 - baseRed) * brighten)) + round(baseRed))
|
||||||
let baseGreen = linkColor.greenComponent * 0xFF
|
let baseGreen = linkColor.greenComponent * 0xFF
|
||||||
|
|
Loading…
Reference in New Issue