From 82cc0683e86e47dba78018dbcc9c7e8f70cafc1c Mon Sep 17 00:00:00 2001 From: Florian Blasius Date: Wed, 21 Jun 2023 13:37:42 +0000 Subject: [PATCH] Switched to relative-font-size for fluent. (#2951) --- internal/compiler/widgets/fluent-base/styling.slint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/compiler/widgets/fluent-base/styling.slint b/internal/compiler/widgets/fluent-base/styling.slint index 22b8fc8ed..4e97dfd69 100644 --- a/internal/compiler/widgets/fluent-base/styling.slint +++ b/internal/compiler/widgets/fluent-base/styling.slint @@ -4,7 +4,7 @@ import { ColorSchemeSelector } from "color-scheme.slint"; export struct TextStyle { - font-size: length, + font-size: relative-font-size, font-weight: int, } @@ -14,12 +14,12 @@ export global Typography { out property semibold-font-weight: 600; out property body: { - font-size: 14px, + font-size: 14 * 0.0769rem, font-weight: regular-font-weight }; out property body-strong: { - font-size: 14px, + font-size: 14 * 0.0769rem, font-weight: semibold-font-weight }; }