qml: FlatButton icon above text, smaller fontsize
This commit is contained in:
@@ -1,6 +1,24 @@
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Controls.Material 2.15
|
||||
import QtQuick.Controls.impl 2.15
|
||||
import QtQuick.Controls.Material.impl 2.15
|
||||
|
||||
TabButton {
|
||||
id: control
|
||||
checkable: false
|
||||
|
||||
font.pixelSize: constants.fontSizeSmall
|
||||
display: IconLabel.TextUnderIcon
|
||||
|
||||
contentItem: IconLabel {
|
||||
spacing: control.spacing
|
||||
mirrored: control.mirrored
|
||||
display: control.display
|
||||
|
||||
icon: control.icon
|
||||
text: control.text
|
||||
font: control.font
|
||||
color: !control.enabled ? control.Material.hintTextColor : control.down || control.checked ? control.Material.accentColor : control.Material.foreground
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user