mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Add donation callouts in-app and on the site
This commit is contained in:
@@ -20,8 +20,9 @@ impl DialogLayoutHolder for AboutGraphiteDialog {
|
||||
|
||||
fn layout_column_2(&self) -> Layout {
|
||||
let links = [
|
||||
("Website", "Website", "https://graphite.rs"),
|
||||
("Heart", "Donate", "https://graphite.rs/donate/"),
|
||||
("Volunteer", "Volunteer", "https://graphite.rs/volunteer/"),
|
||||
("GraphiteLogo", "Website", "https://graphite.rs"),
|
||||
("Credits", "Credits", "https://github.com/GraphiteEditor/Graphite/graphs/contributors"),
|
||||
];
|
||||
let mut widgets = links
|
||||
|
||||
@@ -585,18 +585,29 @@ impl LayoutHolder for MenuBarMessageHandler {
|
||||
action: MenuBarEntry::create_action(|_| DialogMessage::RequestAboutGraphiteDialog.into()),
|
||||
..MenuBarEntry::default()
|
||||
}],
|
||||
vec![MenuBarEntry {
|
||||
label: "User Manual".into(),
|
||||
icon: Some("UserManual".into()),
|
||||
action: MenuBarEntry::create_action(|_| {
|
||||
FrontendMessage::TriggerVisitLink {
|
||||
url: "https://graphite.rs/learn/".into(),
|
||||
}
|
||||
.into()
|
||||
}),
|
||||
..MenuBarEntry::default()
|
||||
}],
|
||||
vec![
|
||||
MenuBarEntry {
|
||||
label: "Donate to Graphite".into(),
|
||||
icon: Some("Heart".into()),
|
||||
action: MenuBarEntry::create_action(|_| {
|
||||
FrontendMessage::TriggerVisitLink {
|
||||
url: "https://graphite.rs/donate/".into(),
|
||||
}
|
||||
.into()
|
||||
}),
|
||||
..MenuBarEntry::default()
|
||||
},
|
||||
MenuBarEntry {
|
||||
label: "User Manual".into(),
|
||||
icon: Some("UserManual".into()),
|
||||
action: MenuBarEntry::create_action(|_| {
|
||||
FrontendMessage::TriggerVisitLink {
|
||||
url: "https://graphite.rs/learn/".into(),
|
||||
}
|
||||
.into()
|
||||
}),
|
||||
..MenuBarEntry::default()
|
||||
},
|
||||
MenuBarEntry {
|
||||
label: "Report a Bug".into(),
|
||||
icon: Some("Bug".into()),
|
||||
|
||||
Reference in New Issue
Block a user