feat(diagnostics): bold warnings

This commit is contained in:
Boshen 2023-03-26 22:23:06 +08:00
parent cda0c69ba1
commit a0cccf09f6
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ impl GraphicalReportHandler {
/// Whether to include [`Diagnostic::url()`] in the output.
///
/// Disabling this is not recommended, but can be useful for more easily
/// reproducable tests, as `url(docsrs)` links are version-dependent.
/// reproducible tests, as `url(docsrs)` links are version-dependent.
pub fn with_urls(mut self, urls: bool) -> Self {
self.links = match (self.links, urls) {
(_, false) => LinkStyle::None,

View file

@ -92,7 +92,7 @@ impl ThemeStyles {
pub fn rgb() -> Self {
Self {
error: style().fg_rgb::<225, 80, 80>().bold(), // CHANGED: <255, 30, 30>
warning: style().fg_rgb::<244, 191, 117>(),
warning: style().fg_rgb::<244, 191, 117>().bold(),
advice: style().fg_rgb::<106, 159, 181>(),
help: style().fg_rgb::<106, 159, 181>(),
link: style().fg_rgb::<92, 157, 255>().bold(),