mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-09 13:18:58 +00:00
Switched to relative-font-size for fluent. (#2951)
This commit is contained in:
parent
087122e80d
commit
82cc0683e8
1 changed files with 3 additions and 3 deletions
|
@ -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 <int> semibold-font-weight: 600;
|
||||
|
||||
out property <TextStyle> body: {
|
||||
font-size: 14px,
|
||||
font-size: 14 * 0.0769rem,
|
||||
font-weight: regular-font-weight
|
||||
};
|
||||
|
||||
out property <TextStyle> body-strong: {
|
||||
font-size: 14px,
|
||||
font-size: 14 * 0.0769rem,
|
||||
font-weight: semibold-font-weight
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue