fix: use font alias on IconButton callers
This commit is contained in:
parent
acd492b3ea
commit
fee0167908
3 changed files with 4 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ StyledRect {
|
|||
property bool checked
|
||||
property bool toggle
|
||||
property real padding: type === IconButton.Text ? Tokens.padding.extraSmall / 2 : Tokens.padding.small
|
||||
property alias font: label.font
|
||||
property alias font: label.fontStyle
|
||||
property int type: IconButton.Filled
|
||||
property bool disabled
|
||||
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ Item {
|
|||
icon: "clear_all"
|
||||
radius: Tokens.rounding.normal
|
||||
padding: Tokens.padding.medium
|
||||
fontStyle: Tokens.font.icon.builder.size(Math.round(Tokens.font.icon.large.pointSize * 1.2)).build()
|
||||
font: Tokens.font.icon.builder.size(Math.round(Tokens.font.icon.large.pointSize * 1.2)).build()
|
||||
onClicked: clearTimer.start()
|
||||
|
||||
Elevation {
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ StyledRect {
|
|||
toggle: true
|
||||
checked: Recorder.paused
|
||||
type: IconButton.Tonal
|
||||
fontStyle: Tokens.font.icon.large
|
||||
font: Tokens.font.icon.large
|
||||
onClicked: {
|
||||
Recorder.togglePause();
|
||||
internalChecked = Recorder.paused;
|
||||
|
|
@ -270,7 +270,7 @@ StyledRect {
|
|||
icon: "stop"
|
||||
inactiveColour: Colours.palette.m3error
|
||||
inactiveOnColour: Colours.palette.m3onError
|
||||
fontStyle: Tokens.font.icon.large
|
||||
font: Tokens.font.icon.large
|
||||
onClicked: Recorder.stop()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue