mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-25 17:38:06 +00:00
14 lines
468 B
Text
14 lines
468 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { Typography, TextStyle } from "../styling/typography.slint";
|
|
import { MaterialPalette } from "../styling/material_palette.slint";
|
|
|
|
export component MaterialText inherits Text {
|
|
in property <TextStyle> style: Typography.body_medium;
|
|
|
|
font_size: root.style.font_size;
|
|
font_weight: root.style.font_weight;
|
|
color: MaterialPalette.on_background;
|
|
overflow: elide;
|
|
}
|