Switched to relative-font-size for fluent. (#2951)

This commit is contained in:
Florian Blasius 2023-06-21 13:37:42 +00:00 committed by GitHub
parent 087122e80d
commit 82cc0683e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
import { ColorSchemeSelector } from "color-scheme.slint"; import { ColorSchemeSelector } from "color-scheme.slint";
export struct TextStyle { export struct TextStyle {
font-size: length, font-size: relative-font-size,
font-weight: int, font-weight: int,
} }
@ -14,12 +14,12 @@ export global Typography {
out property <int> semibold-font-weight: 600; out property <int> semibold-font-weight: 600;
out property <TextStyle> body: { out property <TextStyle> body: {
font-size: 14px, font-size: 14 * 0.0769rem,
font-weight: regular-font-weight font-weight: regular-font-weight
}; };
out property <TextStyle> body-strong: { out property <TextStyle> body-strong: {
font-size: 14px, font-size: 14 * 0.0769rem,
font-weight: semibold-font-weight font-weight: semibold-font-weight
}; };
} }