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

Commit: 
https://github.com/vim/vim/commit/b256221e8377abba3c121d612c559006a9233052
Author: Max Bernstein <tekknol...@gmail.com>
Date:   Sat Nov 2 18:48:53 2024 +0100

    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 <tekknol...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/2html.vim b/runtime/syntax/2html.vim
index f3ce8bed8..ca40810e8 100644
--- a/runtime/syntax/2html.vim
+++ b/runtime/syntax/2html.vim
@@ -1,6 +1,6 @@
 " Vim syntax support file
 " Maintainer: Ben Fritz <fritzophre...@gmail.com>
-" Last Change: 2023 Sep 05
+" Last Change: 2024 Nov 02
 "
 " Additional contributors:
 "
@@ -1843,6 +1843,10 @@ if s:settings.use_css && !s:settings.no_doc
   " default font size for different elements
   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
   " like normal text
   if !empty(s:settings.prevent_copy)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1t7IPr-008vds-QY%40256bit.org.

Raspunde prin e-mail lui