@@ -44,27 +44,38 @@ const BRIGHT_BLUE: Style = if USE_WINDOWS_COLORS {
44
44
} else {
45
45
AnsiColor :: BrightBlue . on_default ( )
46
46
} ;
47
- const DEFAULT_ERROR_STYLE : Style = AnsiColor :: BrightRed . on_default ( ) . effects ( Effects :: BOLD ) ;
48
- const DEFAULT_WARNING_STYLE : Style = if USE_WINDOWS_COLORS {
47
+ /// [`Renderer::error`] applied by [`Renderer::styled`]
48
+ pub const DEFAULT_ERROR_STYLE : Style = AnsiColor :: BrightRed . on_default ( ) . effects ( Effects :: BOLD ) ;
49
+ /// [`Renderer::warning`] applied by [`Renderer::styled`]
50
+ pub const DEFAULT_WARNING_STYLE : Style = if USE_WINDOWS_COLORS {
49
51
AnsiColor :: BrightYellow . on_default ( )
50
52
} else {
51
53
AnsiColor :: Yellow . on_default ( )
52
54
}
53
55
. effects ( Effects :: BOLD ) ;
54
- const DEFAULT_INFO_STYLE : Style = BRIGHT_BLUE . effects ( Effects :: BOLD ) ;
55
- const DEFAULT_NOTE_STYLE : Style = AnsiColor :: BrightGreen . on_default ( ) . effects ( Effects :: BOLD ) ;
56
- const DEFAULT_HELP_STYLE : Style = AnsiColor :: BrightCyan . on_default ( ) . effects ( Effects :: BOLD ) ;
57
- const DEFAULT_LINE_NUM_STYLE : Style = BRIGHT_BLUE . effects ( Effects :: BOLD ) ;
58
- const DEFAULT_EMPHASIS_STYLE : Style = if USE_WINDOWS_COLORS {
56
+ /// [`Renderer::info`] applied by [`Renderer::styled`]
57
+ pub const DEFAULT_INFO_STYLE : Style = BRIGHT_BLUE . effects ( Effects :: BOLD ) ;
58
+ /// [`Renderer::note`] applied by [`Renderer::styled`]
59
+ pub const DEFAULT_NOTE_STYLE : Style = AnsiColor :: BrightGreen . on_default ( ) . effects ( Effects :: BOLD ) ;
60
+ /// [`Renderer::help`] applied by [`Renderer::styled`]
61
+ pub const DEFAULT_HELP_STYLE : Style = AnsiColor :: BrightCyan . on_default ( ) . effects ( Effects :: BOLD ) ;
62
+ /// [`Renderer::line_num`] applied by [`Renderer::styled`]
63
+ pub const DEFAULT_LINE_NUM_STYLE : Style = BRIGHT_BLUE . effects ( Effects :: BOLD ) ;
64
+ /// [`Renderer::emphasis`] applied by [`Renderer::styled`]
65
+ pub const DEFAULT_EMPHASIS_STYLE : Style = if USE_WINDOWS_COLORS {
59
66
AnsiColor :: BrightWhite . on_default ( )
60
67
} else {
61
68
Style :: new ( )
62
69
}
63
70
. effects ( Effects :: BOLD ) ;
64
- const DEFAULT_NONE_STYLE : Style = Style :: new ( ) ;
65
- const DEFAULT_CONTEXT_STYLE : Style = BRIGHT_BLUE . effects ( Effects :: BOLD ) ;
66
- const DEFAULT_ADDITION_STYLE : Style = AnsiColor :: BrightGreen . on_default ( ) ;
67
- const DEFAULT_REMOVAL_STYLE : Style = AnsiColor :: BrightRed . on_default ( ) ;
71
+ /// [`Renderer::none`] applied by [`Renderer::styled`]
72
+ pub const DEFAULT_NONE_STYLE : Style = Style :: new ( ) ;
73
+ /// [`Renderer::context`] applied by [`Renderer::styled`]
74
+ pub const DEFAULT_CONTEXT_STYLE : Style = BRIGHT_BLUE . effects ( Effects :: BOLD ) ;
75
+ /// [`Renderer::addition`] applied by [`Renderer::styled`]
76
+ pub const DEFAULT_ADDITION_STYLE : Style = AnsiColor :: BrightGreen . on_default ( ) ;
77
+ /// [`Renderer::removal`] applied by [`Renderer::styled`]
78
+ pub const DEFAULT_REMOVAL_STYLE : Style = AnsiColor :: BrightRed . on_default ( ) ;
68
79
69
80
/// The [Renderer] for a [`Report`]
70
81
///
0 commit comments