diff --git a/src/Library/demos/Action Bar/code.rs b/src/Library/demos/Action Bar/code.rs new file mode 100644 index 000000000..56b4681ff --- /dev/null +++ b/src/Library/demos/Action Bar/code.rs @@ -0,0 +1,21 @@ +use crate::workbench; +use gtk::prelude::*; + +pub fn main() { + let action_bar: gtk::ActionBar = workbench::builder().object("action_bar").unwrap(); + let button: gtk::ToggleButton = workbench::builder().object("button").unwrap(); + let start_widget: gtk::Button = workbench::builder().object("start_widget").unwrap(); + let end_widget: gtk::Button = workbench::builder().object("end_widget").unwrap(); + + button.connect_notify_local(Some("active"), move |button, _| { + action_bar.set_revealed(!button.is_active()); + }); + + start_widget.connect_clicked(|_| { + println!("Start Widget"); + }); + + end_widget.connect_clicked(|_| { + println!("End Widget"); + }); +} diff --git a/src/about.js b/src/about.js index 191f7d6fb..7ac3fc5df 100644 --- a/src/about.js +++ b/src/about.js @@ -75,6 +75,7 @@ ${getBlueprintVersion()} "Rasmus Thomsen ", "Marvin W https://github.com/mar-v-in", "Saad Khan https://github.com/saadulkh", + "Adeel Ahmed Qureshi https://github.com/itsAdee", // Add yourself as // "John Doe", // or