Show notification when a new project is shared and allow joining it

This commit is contained in:
Antonio Scandurra
2022-10-04 16:55:41 +02:00
parent 57930cb88a
commit debedaf004
6 changed files with 215 additions and 5 deletions
+9
View File
@@ -30,6 +30,7 @@ pub struct Theme {
pub breadcrumbs: ContainedText,
pub contact_notification: ContactNotification,
pub update_notification: UpdateNotification,
pub project_shared_notification: ProjectSharedNotification,
pub tooltip: TooltipStyle,
pub terminal: TerminalStyle,
}
@@ -481,6 +482,14 @@ pub struct UpdateNotification {
pub dismiss_button: Interactive<IconButton>,
}
#[derive(Deserialize, Default)]
pub struct ProjectSharedNotification {
pub owner_avatar: ImageStyle,
pub message: ContainedText,
pub join_button: ContainedText,
pub dismiss_button: ContainedText,
}
#[derive(Clone, Deserialize, Default)]
pub struct Editor {
pub text_color: Color,