feat: fontbuilder to streamline font styling
This commit is contained in:
@@ -36,8 +36,7 @@ CustomRect {
|
||||
radius: Tokens.rounding.medium
|
||||
|
||||
Behavior on border.color {
|
||||
CAnim {
|
||||
}
|
||||
CAnim {}
|
||||
}
|
||||
|
||||
Elevation {
|
||||
@@ -84,7 +83,7 @@ CustomRect {
|
||||
return Colors.palette.m3onError;
|
||||
return Colors.palette.m3onSurfaceVariant;
|
||||
}
|
||||
font.pointSize: Math.round(Tokens.font.size.large * 1.2)
|
||||
fontStyle: Tokens.font.icon.builders.large.scale(1.2).build()
|
||||
text: root.modelData.icon
|
||||
}
|
||||
}
|
||||
@@ -107,7 +106,7 @@ CustomRect {
|
||||
return Colors.palette.m3onSurface;
|
||||
}
|
||||
elide: Text.ElideRight
|
||||
font.pointSize: Tokens.font.size.normal
|
||||
font: Tokens.font.title.small
|
||||
text: root.modelData.title
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user