Skip to content

Commit

Permalink
library: Add rust demo styling with CSS (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Sabrina authored Sep 9, 2023
1 parent 6514c98 commit 1396db7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Library/demos/Styling with CSS/code.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use crate::workbench;
use gtk::prelude::*;

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

0 comments on commit 1396db7

Please sign in to comment.