Skip to content

Commit

Permalink
Use 'my_custom_class" for the programmaticaly set style (#214)
Browse files Browse the repository at this point in the history
The "my_custom_class" style was unused, but was meant to style the last label
  • Loading branch information
UrtsiSantsi authored Oct 31, 2024
1 parent c4ee997 commit 6ff8c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Styling with CSS/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ use gtk::prelude::*;

pub fn main() {
let basic_label: gtk::Label = workbench::builder().object("basic_label").unwrap();
basic_label.add_css_class("css_text");
basic_label.add_css_class("my_custom_class");
}

0 comments on commit 6ff8c7b

Please sign in to comment.