Implemented Expander
- Updated example to show behavior - Created styles for Expander and ExpanderRow - Simpler implementation of `ExpanderRow` - Deleted `ExpanderData` and replaced it with `ExpanderRow` - Every row can now have child rows. - Ran cargo fmt. - Deleted settings example - Added expander to cosmic example - Expander icons now render ListBox partially implemented
This commit is contained in:
parent
a50294676d
commit
7743d0d084
22 changed files with 1222 additions and 738 deletions
|
|
@ -68,9 +68,9 @@ pub fn init() -> (Option<FileMonitor>, Option<FileMonitor>) {
|
|||
monitor
|
||||
});
|
||||
let path = xdg::BaseDirectories::with_prefix("gtk-4.0")
|
||||
.ok()
|
||||
.and_then(|xdg_dirs| xdg_dirs.find_config_file("cosmic.css"))
|
||||
.unwrap_or_else(|| "~/.config/gtk-4.0/cosmic.css".into());
|
||||
.ok()
|
||||
.and_then(|xdg_dirs| xdg_dirs.find_config_file("cosmic.css"))
|
||||
.unwrap_or_else(|| "~/.config/gtk-4.0/cosmic.css".into());
|
||||
|
||||
let cosmic_file = gio::File::for_path(path);
|
||||
cosmic_user_provider.load_from_file(&cosmic_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue