From e137d9accb0ad73e1794e55a76c18ed4c8ca85e9 Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Thu, 18 Jun 2020 10:30:40 -0400 Subject: Add default color and opacity for documentation and injected, respectively, in the html generator --- crates/ra_ide/src/snapshots/highlight_doctest.html | 2 ++ crates/ra_ide/src/snapshots/highlight_injection.html | 2 ++ crates/ra_ide/src/snapshots/highlight_strings.html | 2 ++ crates/ra_ide/src/snapshots/highlight_unsafe.html | 2 ++ crates/ra_ide/src/snapshots/highlighting.html | 2 ++ crates/ra_ide/src/snapshots/rainbow_highlighting.html | 2 ++ crates/ra_ide/src/syntax_highlighting/html.rs | 2 ++ 7 files changed, 14 insertions(+) (limited to 'crates') diff --git a/crates/ra_ide/src/snapshots/highlight_doctest.html b/crates/ra_ide/src/snapshots/highlight_doctest.html index 6b3932aff..f9a11710e 100644 --- a/crates/ra_ide/src/snapshots/highlight_doctest.html +++ b/crates/ra_ide/src/snapshots/highlight_doctest.html @@ -5,6 +5,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .lifetime { color: #DFAF8F; font-style: italic; } .comment { color: #7F9F7F; } +.documentation { color: #00CC00; } +.injected { opacity: 0.65 ; } .struct, .enum { color: #7CB8BB; } .enum_variant { color: #BDE0F3; } .string_literal { color: #CC9393; } diff --git a/crates/ra_ide/src/snapshots/highlight_injection.html b/crates/ra_ide/src/snapshots/highlight_injection.html index 47dbd7bc8..4c3fa2a7b 100644 --- a/crates/ra_ide/src/snapshots/highlight_injection.html +++ b/crates/ra_ide/src/snapshots/highlight_injection.html @@ -5,6 +5,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .lifetime { color: #DFAF8F; font-style: italic; } .comment { color: #7F9F7F; } +.documentation { color: #00CC00; } +.injected { opacity: 0.65 ; } .struct, .enum { color: #7CB8BB; } .enum_variant { color: #BDE0F3; } .string_literal { color: #CC9393; } diff --git a/crates/ra_ide/src/snapshots/highlight_strings.html b/crates/ra_ide/src/snapshots/highlight_strings.html index b46fa44c6..245c425f5 100644 --- a/crates/ra_ide/src/snapshots/highlight_strings.html +++ b/crates/ra_ide/src/snapshots/highlight_strings.html @@ -5,6 +5,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .lifetime { color: #DFAF8F; font-style: italic; } .comment { color: #7F9F7F; } +.documentation { color: #00CC00; } +.injected { opacity: 0.65 ; } .struct, .enum { color: #7CB8BB; } .enum_variant { color: #BDE0F3; } .string_literal { color: #CC9393; } diff --git a/crates/ra_ide/src/snapshots/highlight_unsafe.html b/crates/ra_ide/src/snapshots/highlight_unsafe.html index 73438fbb4..fe986b98c 100644 --- a/crates/ra_ide/src/snapshots/highlight_unsafe.html +++ b/crates/ra_ide/src/snapshots/highlight_unsafe.html @@ -5,6 +5,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .lifetime { color: #DFAF8F; font-style: italic; } .comment { color: #7F9F7F; } +.documentation { color: #00CC00; } +.injected { opacity: 0.65 ; } .struct, .enum { color: #7CB8BB; } .enum_variant { color: #BDE0F3; } .string_literal { color: #CC9393; } diff --git a/crates/ra_ide/src/snapshots/highlighting.html b/crates/ra_ide/src/snapshots/highlighting.html index 0c4f0a018..c101af8ea 100644 --- a/crates/ra_ide/src/snapshots/highlighting.html +++ b/crates/ra_ide/src/snapshots/highlighting.html @@ -5,6 +5,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .lifetime { color: #DFAF8F; font-style: italic; } .comment { color: #7F9F7F; } +.documentation { color: #00CC00; } +.injected { opacity: 0.65 ; } .struct, .enum { color: #7CB8BB; } .enum_variant { color: #BDE0F3; } .string_literal { color: #CC9393; } diff --git a/crates/ra_ide/src/snapshots/rainbow_highlighting.html b/crates/ra_ide/src/snapshots/rainbow_highlighting.html index a74a70069..97b296d72 100644 --- a/crates/ra_ide/src/snapshots/rainbow_highlighting.html +++ b/crates/ra_ide/src/snapshots/rainbow_highlighting.html @@ -5,6 +5,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .lifetime { color: #DFAF8F; font-style: italic; } .comment { color: #7F9F7F; } +.documentation { color: #00CC00; } +.injected { opacity: 0.65 ; } .struct, .enum { color: #7CB8BB; } .enum_variant { color: #BDE0F3; } .string_literal { color: #CC9393; } diff --git a/crates/ra_ide/src/syntax_highlighting/html.rs b/crates/ra_ide/src/syntax_highlighting/html.rs index 9043024df..191c586a3 100644 --- a/crates/ra_ide/src/syntax_highlighting/html.rs +++ b/crates/ra_ide/src/syntax_highlighting/html.rs @@ -64,6 +64,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .lifetime { color: #DFAF8F; font-style: italic; } .comment { color: #7F9F7F; } +.documentation { color: #00CC00; } +.injected { opacity: 0.65 ; } .struct, .enum { color: #7CB8BB; } .enum_variant { color: #BDE0F3; } .string_literal { color: #CC9393; } -- cgit v1.2.3