aboutsummaryrefslogtreecommitdiff
path: root/src/toggle-box.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 14:36:24 +0200
committerMihai Moldovan <ionic@ionic.de>2023-09-15 16:02:35 +0200
commite7f11116fcdc20e99bda87ddc4dfdce545749efc (patch)
treea24f4674651004d2ecf5e25c9a3dc25ab5c44053 /src/toggle-box.vala
parentcf4253c78f675aa525a59c07fc98faf504c339fe (diff)
downloadarctica-greeter-e7f11116fcdc20e99bda87ddc4dfdce545749efc.tar.gz
arctica-greeter-e7f11116fcdc20e99bda87ddc4dfdce545749efc.tar.bz2
arctica-greeter-e7f11116fcdc20e99bda87ddc4dfdce545749efc.zip
src/toggle-box.vala: Fix runtime Gtk.Warning about missing size unit. Using size unit 'pt' now (and reducing font size by 3).
Diffstat (limited to 'src/toggle-box.vala')
-rw-r--r--src/toggle-box.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toggle-box.vala b/src/toggle-box.vala
index 12072b1..d009088 100644
--- a/src/toggle-box.vala
+++ b/src/toggle-box.vala
@@ -212,7 +212,7 @@ public class ToggleBox : Gtk.Box
var style = new Gtk.CssProvider ();
style.load_from_data ("label {\n" +
" font-family: \"%s\", sans-serif;\n".printf (font_family) +
- " font-size: %d;\n".printf (font_size + 2) +
+ " font-size: %dpt;\n".printf (font_size - 1) +
"}\n" +
"label.high_contrast {\n" +
" color: %s;\n".printf ("rgba(255, 255, 255, 1.0)") +