From 3a7cb5f0f53b7dfe8b7ee1b353dbb2ad92441a6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 16 Oct 2018 13:55:37 +0200 Subject: [PATCH] css: implement diff colors for the Pygments dark style. --- css/m-dark+doxygen.compiled.css | 2 ++ css/m-dark.compiled.css | 2 ++ css/pygments-dark.css | 2 ++ css/pygments-dark.py | 7 +++++-- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/css/m-dark+doxygen.compiled.css b/css/m-dark+doxygen.compiled.css index ba1bb2a1..cc44c641 100644 --- a/css/m-dark+doxygen.compiled.css +++ b/css/m-dark+doxygen.compiled.css @@ -2108,8 +2108,10 @@ article:last-child, article section:last-child { margin-bottom: 0; } .m-code .cpf { color: #c7cf2f } .m-code .c1 { color: #a5c9ea } .m-code .cs { color: #a5c9ea } +.m-code .gd { color: #cd3431 } .m-code .ge { color: #e6e6e6; font-style: italic } .m-code .gh { color: #ffffff; font-weight: bold } +.m-code .gi { color: #3bd267 } .m-code .gs { color: #e6e6e6; font-weight: bold } .m-code .kc { color: #ffffff; font-weight: bold } .m-code .kd { color: #ffffff; font-weight: bold } diff --git a/css/m-dark.compiled.css b/css/m-dark.compiled.css index 27d5e755..d12ca69a 100644 --- a/css/m-dark.compiled.css +++ b/css/m-dark.compiled.css @@ -2108,8 +2108,10 @@ article:last-child, article section:last-child { margin-bottom: 0; } .m-code .cpf { color: #c7cf2f } .m-code .c1 { color: #a5c9ea } .m-code .cs { color: #a5c9ea } +.m-code .gd { color: #cd3431 } .m-code .ge { color: #e6e6e6; font-style: italic } .m-code .gh { color: #ffffff; font-weight: bold } +.m-code .gi { color: #3bd267 } .m-code .gs { color: #e6e6e6; font-weight: bold } .m-code .kc { color: #ffffff; font-weight: bold } .m-code .kd { color: #ffffff; font-weight: bold } diff --git a/css/pygments-dark.css b/css/pygments-dark.css index 16d1510f..7e0315bd 100644 --- a/css/pygments-dark.css +++ b/css/pygments-dark.css @@ -10,8 +10,10 @@ .m-code .cpf { color: #c7cf2f } /* Comment.PreprocFile */ .m-code .c1 { color: #a5c9ea } /* Comment.Single */ .m-code .cs { color: #a5c9ea } /* Comment.Special */ +.m-code .gd { color: #cd3431 } /* Generic.Deleted */ .m-code .ge { color: #e6e6e6; font-style: italic } /* Generic.Emph */ .m-code .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ +.m-code .gi { color: #3bd267 } /* Generic.Inserted */ .m-code .gs { color: #e6e6e6; font-weight: bold } /* Generic.Strong */ .m-code .kc { color: #ffffff; font-weight: bold } /* Keyword.Constant */ .m-code .kd { color: #ffffff; font-weight: bold } /* Keyword.Declaration */ diff --git a/css/pygments-dark.py b/css/pygments-dark.py index ab751a2c..10e021fd 100644 --- a/css/pygments-dark.py +++ b/css/pygments-dark.py @@ -28,7 +28,6 @@ from pygments.token import Keyword, Name, Comment, String, Error, \ Whitespace class DarkStyle(Style): - background_color = None highlight_color = '#34424d' default_style = "" @@ -57,5 +56,9 @@ class DarkStyle(Style): Operator.Word: 'bold #dcdcdc', Generic.Heading: 'bold #ffffff', Generic.Emph: 'italic #e6e6e6', - Generic.Strong: 'bold #e6e6e6' + Generic.Strong: 'bold #e6e6e6', + + # Diffs + Generic.Inserted: '#3bd267', + Generic.Deleted: '#cd3431' } -- 2.30.2