Skip to content

Commit

Permalink
gtk utils: Add title function
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Apr 24, 2024
1 parent 4767f06 commit f2b9c13
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/gtk/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod widgets;
pub mod utils;
11 changes: 11 additions & 0 deletions src/utils/gtk/utils.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use gtk::{Align, Label};

pub fn create_title(name: &'static str) -> Label {
Label::builder()
.label(name)
.css_classes(vec!["resetSettingLabel"])
.halign(Align::Start)
.margin_start(5)
.margin_bottom(10)
.build()
}
Empty file added src/utils/gtk/widgets.rs
Empty file.
1 change: 1 addition & 0 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pub mod plugin;
pub mod plugin_setup;
pub mod variant;
pub mod config;
pub mod gtk;

0 comments on commit f2b9c13

Please sign in to comment.