runtime(2html): Make links use color scheme colors in TOhtml

The browser-default dark blue/purple colors don't fit in with most color
schemes and also are unreadable if the color scheme has a dark
background.

closes: #10191

Signed-off-by: Max Bernstein <tekknolagi@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Max Bernstein
2024-11-02 18:48:53 +01:00
committed by Christian Brabandt
parent a13f3a4f5d
commit b256221e83

View File

@ -1,6 +1,6 @@
" Vim syntax support file " Vim syntax support file
" Maintainer: Ben Fritz <fritzophrenic@gmail.com> " Maintainer: Ben Fritz <fritzophrenic@gmail.com>
" Last Change: 2023 Sep 05 " Last Change: 2024 Nov 02
" "
" Additional contributors: " Additional contributors:
" "
@ -1843,6 +1843,10 @@ if s:settings.use_css && !s:settings.no_doc
" default font size for different elements " default font size for different elements
call append('.', '* { font-size: 1em; }') call append('.', '* { font-size: 1em; }')
+ +
" use color scheme styles for links
" browser-default blue/purple colors for links don't look like the existing theme and are unreadable on dark backgrounds
call append('.', 'a { color: inherit; }')
+
" if we use any input elements for unselectable content, make sure they look " if we use any input elements for unselectable content, make sure they look
" like normal text " like normal text
if !empty(s:settings.prevent_copy) if !empty(s:settings.prevent_copy)