update theme
This commit is contained in:
@@ -44,7 +44,7 @@ impl NotificationKind {
|
||||
Self::Info => (IconName::Info, cx.theme().text_muted),
|
||||
Self::Success => (IconName::CheckCircle, cx.theme().success),
|
||||
Self::Warning => (IconName::Warning, cx.theme().warning),
|
||||
Self::Error => (IconName::CloseCircle, cx.theme().on_accent),
|
||||
Self::Error => (IconName::CloseCircle, gpui::white()),
|
||||
};
|
||||
Icon::new(name).with_size(Size::Medium).text_color(color)
|
||||
}
|
||||
@@ -284,7 +284,9 @@ impl Render for Notification {
|
||||
};
|
||||
|
||||
let text_color = match self.kind {
|
||||
Some(NotificationKind::Error) => cx.theme().on_accent,
|
||||
// White on the danger plate in both appearances, per bezel's
|
||||
// destructive pairing.
|
||||
Some(NotificationKind::Error) => gpui::white(),
|
||||
_ => cx.theme().text,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user