2018-07-12 01:44:41 +00:00
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Controls.Material 2.2
|
2018-07-07 08:24:53 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
property alias icon: iconText.text
|
2018-07-07 09:38:20 +00:00
|
|
|
property var color: Material.theme == Material.Light ? "black" : "white"
|
2018-07-07 08:24:53 +00:00
|
|
|
|
|
|
|
id: item
|
|
|
|
|
|
|
|
Text {
|
|
|
|
id: iconText
|
|
|
|
anchors.fill: parent
|
|
|
|
font.pointSize: 16
|
|
|
|
font.family: materialFont.name
|
|
|
|
color: item.color
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
2018-07-09 02:45:26 +00:00
|
|
|
}
|
2018-07-07 08:24:53 +00:00
|
|
|
}
|