From 90ac27b9e61356d32567fe83b2ec1b881df0e5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 18 Jun 2025 16:10:03 -0700 Subject: [PATCH] DeviceRow: use CSS for small label --- src/DeviceRow.vala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/DeviceRow.vala b/src/DeviceRow.vala index 78746589..cef40138 100644 --- a/src/DeviceRow.vala +++ b/src/DeviceRow.vala @@ -79,9 +79,10 @@ public class Bluetooth.DeviceRow : Gtk.ListBoxRow { state.halign = Gtk.Align.END; state.valign = Gtk.Align.END; - state_label = new Gtk.Label (null); - state_label.xalign = 0; - state_label.use_markup = true; + state_label = new Gtk.Label (null) { + xalign = 0 + }; + state_label.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL); var overlay = new Gtk.Overlay () { child = image, @@ -277,7 +278,7 @@ public class Bluetooth.DeviceRow : Gtk.ListBoxRow { } private void set_status (Status status) { - state_label.label = GLib.Markup.printf_escaped ("%s", status.to_string ()); + state_label.label = status.to_string (); state.visible = true; switch (status) {