Spectral/qml/component/MaterialIcon.qml

23 lines
483 B
QML
Raw Normal View History

2018-07-12 01:44:41 +00:00
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import Matrique.Settings 0.1
2018-07-07 08:24:53 +00:00
Item {
property alias icon: iconText.text
property var color: MSettings.darkTheme ? "white" : "black"
2018-07-07 08:24:53 +00:00
id: item
Text {
anchors.fill: parent
2018-09-04 13:13:14 +00:00
id: iconText
2018-07-07 08:24:53 +00:00
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
}