From 790ef19a48c15f627a9783543bf6478471c777ee Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Tue, 13 Dec 2022 09:58:04 -0800 Subject: [PATCH] Fix mis-set variables --- crates/auto_update/src/update_notification.rs | 2 +- crates/workspace/src/notifications.rs | 2 +- styles/src/styleTree/simpleMessageNotification.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/auto_update/src/update_notification.rs b/crates/auto_update/src/update_notification.rs index d6f94c708d24dad6cccb6d918ac6074043567906..e6b285b0728355751881686c37b26753fb76c888 100644 --- a/crates/auto_update/src/update_notification.rs +++ b/crates/auto_update/src/update_notification.rs @@ -28,7 +28,7 @@ impl View for UpdateNotification { fn render(&mut self, cx: &mut gpui::RenderContext<'_, Self>) -> gpui::ElementBox { let theme = cx.global::().theme.clone(); - let theme = &theme.simple_message_notification; + let theme = &theme.update_notification; let app_name = cx.global::().display_name(); diff --git a/crates/workspace/src/notifications.rs b/crates/workspace/src/notifications.rs index 0e76d45518d71d13039f1f378418bfedec7a9f50..43feede1904a9afe8dbf2b53b4987b9dfa21bc8d 100644 --- a/crates/workspace/src/notifications.rs +++ b/crates/workspace/src/notifications.rs @@ -206,7 +206,7 @@ pub mod simple_message_notification { fn render(&mut self, cx: &mut gpui::RenderContext<'_, Self>) -> gpui::ElementBox { let theme = cx.global::().theme.clone(); - let theme = &theme.update_notification; + let theme = &theme.simple_message_notification; enum MessageNotificationTag {} diff --git a/styles/src/styleTree/simpleMessageNotification.ts b/styles/src/styleTree/simpleMessageNotification.ts index 76ff5e1ca5f3ecd30498b59f7035899a61a9d226..2697bedc777e21d7fda8fdfef59a697de24bfd6c 100644 --- a/styles/src/styleTree/simpleMessageNotification.ts +++ b/styles/src/styleTree/simpleMessageNotification.ts @@ -7,11 +7,11 @@ export default function simpleMessageNotification(colorScheme: ColorScheme): Obj let layer = colorScheme.middle; return { message: { - ...text(layer, "sans", { size: "md" }), + ...text(layer, "sans", { size: "xs" }), margin: { left: headerPadding, right: headerPadding }, }, actionMessage: { - ...text(layer, "sans", { size: "md" }), + ...text(layer, "sans", { size: "xs" }), margin: { left: headerPadding, top: 6, bottom: 6 }, hover: { color: foreground(layer, "hovered"),