Singleton for future style definition. For now, put the fonts there

This commit is contained in:
Sander Ferdinand
2017-11-16 22:05:14 +01:00
committed by moneromooo-monero
parent 50eafab5dc
commit 9819e63fcc
4 changed files with 16 additions and 11 deletions

10
components/Style.qml Normal file
View File

@@ -0,0 +1,10 @@
pragma Singleton
import QtQuick 2.5
QtObject {
property QtObject fontMedium: FontLoader { id: _fontMedium; source: "qrc:/fonts/SFUIDisplay-Medium.otf"; }
property QtObject fontBold: FontLoader { id: _fontBold; source: "qrc:/fonts/SFUIDisplay-Bold.otf"; }
property QtObject fontLight: FontLoader { id: _fontLight; source: "qrc:/fonts/SFUIDisplay-Light.otf"; }
property QtObject fontRegular: FontLoader { id: _fontRegular; source: "qrc:/fonts/SFUIDisplay-Regular.otf"; }
}