Refactor using Fable
This commit is contained in:
90 files changed
+2080
-2267
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Asteria
|
||||
|
||||
// Chrome-less button showing a single Material icon, with optional tooltip.
|
||||
Button {
|
||||
id: root
|
||||
|
||||
property alias iconText: label.text
|
||||
property int iconSize: 16
|
||||
property color iconColor: ThemeManager.currentTheme.dimText
|
||||
property string tooltip: ""
|
||||
|
||||
flat: true
|
||||
background: Item {}
|
||||
contentItem: Text {
|
||||
id: label
|
||||
font.family: "Material Icons Outlined"
|
||||
font.pixelSize: root.iconSize
|
||||
color: root.iconColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
ToolTip.visible: tooltip !== "" && hovered
|
||||
ToolTip.delay: 500
|
||||
ToolTip.text: tooltip
|
||||
}
|
||||
Reference in new issue
Block a user