styling tweaks & add separator
This commit is contained in:
parent
7f65293179
commit
b59d8a434c
9 changed files with 199 additions and 212 deletions
|
|
@ -1,5 +1,4 @@
|
|||
use gtk4 as gtk;
|
||||
use gtk4::EventController;
|
||||
use gtk4::EventControllerMotion;
|
||||
use gtk4::Revealer;
|
||||
|
||||
|
|
@ -7,15 +6,15 @@ use glib::subclass::InitializingObject;
|
|||
use gtk::prelude::*;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{gio, glib};
|
||||
use gtk::{CompositeTemplate, Entry, ListView};
|
||||
use gtk::{CompositeTemplate, ListView};
|
||||
use once_cell::sync::OnceCell;
|
||||
|
||||
// Object holding the state
|
||||
#[derive(CompositeTemplate, Default)]
|
||||
#[template(file = "window.ui")]
|
||||
pub struct Window {
|
||||
// #[template_child]
|
||||
// pub list_view: TemplateChild<ListView>,
|
||||
#[template_child]
|
||||
pub list_view: TemplateChild<ListView>,
|
||||
#[template_child]
|
||||
pub revealer: TemplateChild<Revealer>,
|
||||
pub model: OnceCell<gio::ListStore>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue