mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-12-15 10:01:39 +01:00
Add title and border to settingbox
Fix padding around window Add some styling
This commit is contained in:
parent
179a2b44cc
commit
9f3815476d
12 changed files with 313 additions and 258 deletions
|
|
@ -1,17 +1,20 @@
|
|||
use gtk::{CompositeTemplate, glib};
|
||||
use gtk::{CompositeTemplate, glib, Label};
|
||||
use gtk::subclass::prelude::*;
|
||||
use crate::components::base::settingBox;
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[derive(Default, CompositeTemplate)]
|
||||
#[template(resource = "/org/Xetibo/ReSet/resetSettingBox.ui")]
|
||||
pub struct SettingBox {}
|
||||
pub struct SettingBox {
|
||||
#[template_child]
|
||||
pub resetSettingLabel: TemplateChild<Label>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
impl ObjectSubclass for SettingBox {
|
||||
const NAME: &'static str = "resetSetting";
|
||||
const NAME: &'static str = "resetSettingFrame";
|
||||
type Type = settingBox::SettingBox;
|
||||
type ParentType = gtk::Box;
|
||||
type ParentType = gtk::Frame;
|
||||
|
||||
fn class_init(klass: &mut Self::Class) {
|
||||
klass.bind_template();
|
||||
|
|
@ -28,7 +31,7 @@ impl ObjectImpl for SettingBox {
|
|||
}
|
||||
}
|
||||
|
||||
impl BoxImpl for SettingBox {}
|
||||
impl FrameImpl for SettingBox {}
|
||||
|
||||
impl WidgetImpl for SettingBox {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue