styling tweaks & add separator

This commit is contained in:
Ashley Wulber 2021-12-15 11:37:28 -05:00
parent 7f65293179
commit b59d8a434c
9 changed files with 199 additions and 212 deletions

View file

@ -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>,