Use modules.
This commit is contained in:
18
imports/Spectral/Component/MaterialIcon.qml
Normal file
18
imports/Spectral/Component/MaterialIcon.qml
Normal file
@@ -0,0 +1,18 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
import Spectral.Setting 0.1
|
||||
import Spectral.Font 0.1
|
||||
|
||||
Text {
|
||||
property alias icon: materialLabel.text
|
||||
|
||||
id: materialLabel
|
||||
|
||||
color: MSettings.darkTheme ? "white" : "dark"
|
||||
font.pointSize: 16
|
||||
font.family: MaterialFont.name
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
Reference in New Issue
Block a user