Skip to content

Commit e137d9a

Browse files
committed
Add default color and opacity for documentation and injected, respectively, in the html generator
1 parent 351bba9 commit e137d9a

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

crates/ra_ide/src/snapshots/highlight_doctest.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
.lifetime { color: #DFAF8F; font-style: italic; }
77
.comment { color: #7F9F7F; }
8+
.documentation { color: #00CC00; }
9+
.injected { opacity: 0.65 ; }
810
.struct, .enum { color: #7CB8BB; }
911
.enum_variant { color: #BDE0F3; }
1012
.string_literal { color: #CC9393; }

crates/ra_ide/src/snapshots/highlight_injection.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
.lifetime { color: #DFAF8F; font-style: italic; }
77
.comment { color: #7F9F7F; }
8+
.documentation { color: #00CC00; }
9+
.injected { opacity: 0.65 ; }
810
.struct, .enum { color: #7CB8BB; }
911
.enum_variant { color: #BDE0F3; }
1012
.string_literal { color: #CC9393; }

crates/ra_ide/src/snapshots/highlight_strings.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
.lifetime { color: #DFAF8F; font-style: italic; }
77
.comment { color: #7F9F7F; }
8+
.documentation { color: #00CC00; }
9+
.injected { opacity: 0.65 ; }
810
.struct, .enum { color: #7CB8BB; }
911
.enum_variant { color: #BDE0F3; }
1012
.string_literal { color: #CC9393; }

crates/ra_ide/src/snapshots/highlight_unsafe.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
.lifetime { color: #DFAF8F; font-style: italic; }
77
.comment { color: #7F9F7F; }
8+
.documentation { color: #00CC00; }
9+
.injected { opacity: 0.65 ; }
810
.struct, .enum { color: #7CB8BB; }
911
.enum_variant { color: #BDE0F3; }
1012
.string_literal { color: #CC9393; }

crates/ra_ide/src/snapshots/highlighting.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
.lifetime { color: #DFAF8F; font-style: italic; }
77
.comment { color: #7F9F7F; }
8+
.documentation { color: #00CC00; }
9+
.injected { opacity: 0.65 ; }
810
.struct, .enum { color: #7CB8BB; }
911
.enum_variant { color: #BDE0F3; }
1012
.string_literal { color: #CC9393; }

crates/ra_ide/src/snapshots/rainbow_highlighting.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
.lifetime { color: #DFAF8F; font-style: italic; }
77
.comment { color: #7F9F7F; }
8+
.documentation { color: #00CC00; }
9+
.injected { opacity: 0.65 ; }
810
.struct, .enum { color: #7CB8BB; }
911
.enum_variant { color: #BDE0F3; }
1012
.string_literal { color: #CC9393; }

crates/ra_ide/src/syntax_highlighting/html.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
6464
6565
.lifetime { color: #DFAF8F; font-style: italic; }
6666
.comment { color: #7F9F7F; }
67+
.documentation { color: #00CC00; }
68+
.injected { opacity: 0.65 ; }
6769
.struct, .enum { color: #7CB8BB; }
6870
.enum_variant { color: #BDE0F3; }
6971
.string_literal { color: #CC9393; }

0 commit comments

Comments
 (0)