Spectral/qml/component/MaterialIcon.qml

17 lines
373 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 Spectral.Settings 0.1
2018-07-07 08:24:53 +00:00
2018-09-13 05:05:51 +00:00
Text {
property alias icon: materialLabel.text
2018-07-07 08:24:53 +00:00
2018-09-13 05:05:51 +00:00
id: materialLabel
2018-07-07 08:24:53 +00:00
color: MSettings.darkTheme ? "white" : "dark"
2018-09-13 05:05:51 +00:00
font.pointSize: 16
font.family: materialFont.name
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
2018-07-07 08:24:53 +00:00
}