Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion internal/compiler/builtins.slint
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,16 @@ component ComplexText inherits SimpleText {

export { ComplexText as Text }

export component MarkdownText inherits SimpleText {
export component MarkdownText inherits Empty {
in property <length> width;
in property <length> height;
in property <string> text;
in property <length> font-size;
in property <int> font-weight;
in property <brush> color;
in property <TextHorizontalAlignment> horizontal-alignment;
in property <TextVerticalAlignment> vertical-alignment;

in property <string> font-family;
in property <bool> font-italic;
in property <TextOverflow> overflow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn apply_default_properties_from_style(
}
});
}
"Text" => {
"Text" | "MarkdownText" => {
elem.set_binding_if_not_set("color".into(), || Expression::Cast {
from: Expression::PropertyReference(NamedReference::new(
&palette.root_element,
Expand Down
Loading