From 6ff8c7ba17963719e332e41d3ee2cc6360ea5012 Mon Sep 17 00:00:00 2001 From: UrtsiSantsi <142679804+UrtsiSantsi@users.noreply.github.com> Date: Thu, 31 Oct 2024 07:47:48 +0200 Subject: [PATCH] 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 --- src/Styling with CSS/code.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Styling with CSS/code.rs b/src/Styling with CSS/code.rs index 0f1fea9c..a46dbb78 100644 --- a/src/Styling with CSS/code.rs +++ b/src/Styling with CSS/code.rs @@ -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"); }