Files
material-cpp-template/material-1.0/ui/components/material_text.slint
2025-09-25 11:49:06 +02:00

15 lines
493 B
Plaintext

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import { MaterialTypography, TextStyle } from "../styling/material_typography.slint";
import { MaterialPalette } from "../styling/material_palette.slint";
export component MaterialText inherits Text {
in property <TextStyle> style: MaterialTypography.body_medium;
font_size: root.style.font_size;
font_weight: root.style.font_weight;
color: MaterialPalette.on_background;
overflow: elide;
}