Skip to content

Commit 6ff8c7b

Browse files
authored
Use 'my_custom_class" for the programmaticaly set style (#214)
The "my_custom_class" style was unused, but was meant to style the last label
1 parent c4ee997 commit 6ff8c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Styling with CSS/code.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ use gtk::prelude::*;
33

44
pub fn main() {
55
let basic_label: gtk::Label = workbench::builder().object("basic_label").unwrap();
6-
basic_label.add_css_class("css_text");
6+
basic_label.add_css_class("my_custom_class");
77
}

0 commit comments

Comments
 (0)