Merge PR #160: Fix font settings
This commit is contained in:
commit
2b214f62f2
@ -76,13 +76,6 @@ int main(int argc, char *argv[])
|
|||||||
QFontDatabase::addApplicationFont(fi.absoluteFilePath());
|
QFontDatabase::addApplicationFont(fi.absoluteFilePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
QFont applicationFont;
|
|
||||||
// applicationFont.setFamily("Oswald");
|
|
||||||
applicationFont.setCapitalization(QFont::MixedCase);
|
|
||||||
applicationFont.setPixelSize(16);
|
|
||||||
applicationFont.setWeight(QFont::Normal);
|
|
||||||
QApplication::setFont(applicationFont);
|
|
||||||
|
|
||||||
QTranslator qtTranslator;
|
QTranslator qtTranslator;
|
||||||
qtTranslator.load("qt_" + QLocale::system().name(),
|
qtTranslator.load("qt_" + QLocale::system().name(),
|
||||||
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||||
|
|||||||
@ -5,6 +5,11 @@ import QtQuick.Controls.Material 2.2
|
|||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
Material.theme: Material.Dark
|
Material.theme: Material.Dark
|
||||||
|
|
||||||
|
font.pixelSize: 16
|
||||||
|
font.weight: Font.Normal
|
||||||
|
font.capitalization: Font.MixedCase
|
||||||
|
font.family: "Ubuntu"
|
||||||
|
|
||||||
// The system (box) name.
|
// The system (box) name.
|
||||||
property string systemName: "nymea"
|
property string systemName: "nymea"
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,12 @@ import QtQuick.Templates 2.2
|
|||||||
import QtQuick.Controls.Material 2.2
|
import QtQuick.Controls.Material 2.2
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
|
|
||||||
|
font.pixelSize: 16
|
||||||
|
font.weight: Font.Normal
|
||||||
|
font.capitalization: Font.MixedCase
|
||||||
|
font.family: "Ubuntu"
|
||||||
|
|
||||||
// The system (box) name.
|
// The system (box) name.
|
||||||
property string systemName: "nymea"
|
property string systemName: "nymea"
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,9 @@ ApplicationWindow {
|
|||||||
// Main background color
|
// Main background color
|
||||||
Material.background: "#50514f"
|
Material.background: "#50514f"
|
||||||
|
|
||||||
|
font.pixelSize: 16
|
||||||
|
font.weight: Font.Normal
|
||||||
|
font.capitalization: Font.MixedCase
|
||||||
font.family: "Oswald"
|
font.family: "Oswald"
|
||||||
|
|
||||||
// The header background color
|
// The header background color
|
||||||
|
|||||||
@ -14,8 +14,6 @@ ApplicationWindow {
|
|||||||
minimumWidth: 360
|
minimumWidth: 360
|
||||||
minimumHeight: 480
|
minimumHeight: 480
|
||||||
visibility: ApplicationWindow.AutomaticVisibility
|
visibility: ApplicationWindow.AutomaticVisibility
|
||||||
// font: Qt.application.font
|
|
||||||
|
|
||||||
|
|
||||||
// Those variables must be present in the Style
|
// Those variables must be present in the Style
|
||||||
title: appName
|
title: appName
|
||||||
|
|||||||
Reference in New Issue
Block a user