Added user notifications

This commit is contained in:
Mikayla Maki 2022-12-03 16:03:46 -08:00
parent ffcad4e4e2
commit a1f273278b
7 changed files with 375 additions and 68 deletions

View file

@ -7,7 +7,7 @@ use gpui::{
use menu::Cancel;
use settings::Settings;
use util::channel::ReleaseChannel;
use workspace::Notification;
use workspace::notifications::Notification;
pub struct UpdateNotification {
version: AppVersion,
@ -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.update_notification;
let theme = &theme.simple_message_notification;
let app_name = cx.global::<ReleaseChannel>().display_name();