Merge pull request #1968 from zed-industries/fix-text-size-in-updates

Fix text size in notifications
This commit is contained in:
Mikayla Maki 2022-12-13 10:00:24 -08:00 committed by GitHub
commit b0652c55c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ impl View for UpdateNotification {
fn render(&mut self, cx: &mut gpui::RenderContext<'_, Self>) -> gpui::ElementBox {
let theme = cx.global::<Settings>().theme.clone();
let theme = &theme.simple_message_notification;
let theme = &theme.update_notification;
let app_name = cx.global::<ReleaseChannel>().display_name();

View file

@ -206,7 +206,7 @@ pub mod simple_message_notification {
fn render(&mut self, cx: &mut gpui::RenderContext<'_, Self>) -> gpui::ElementBox {
let theme = cx.global::<Settings>().theme.clone();
let theme = &theme.update_notification;
let theme = &theme.simple_message_notification;
enum MessageNotificationTag {}

View file

@ -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"),