Add configuration and new tab button

This commit is contained in:
Jeremy Soller 2023-10-27 09:30:52 -06:00
parent 4b25e866b5
commit 8566c6f31f
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 57 additions and 11 deletions

View file

@ -11,9 +11,9 @@ use cosmic::{
Element,
};
use crate::Message;
use crate::{Config, Message};
pub fn menu_bar<'a>() -> Element<'a, Message> {
pub fn menu_bar<'a>(config: &Config) -> Element<'a, Message> {
//TODO: port to libcosmic
let menu_root = |label| {
widget::button(label)