1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Remove renderType: Text.NativeRendering like everywhere lol

This commit is contained in:
Elias 2019-01-16 19:51:35 +01:00
parent 426346950c
commit 448132d621
30 changed files with 50 additions and 48 deletions

View File

@ -141,8 +141,14 @@ int main(int argc, char* argv[])
profileListModel.loadProfiles();
settings.loadActiveProfiles();
QQmlApplicationEngine mainWindowEngine;
// Instead of setting "renderType: Text.NativeRendering" every time
// we can set it here once :)
auto* window = static_cast<QQuickWindow*>(mainWindowEngine.rootObjects().first());
window->setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
mainWindowEngine.rootContext()->setContextProperty("screenPlay", &screenPlay);
mainWindowEngine.rootContext()->setContextProperty("screenPlayCreate", &create);
mainWindowEngine.rootContext()->setContextProperty("utility", &qmlUtil);

View File

@ -64,7 +64,7 @@ Item {
font.weight: Font.Normal
wrapMode: Text.WordWrap
horizontalAlignment: Qt.AlignHCenter
renderType: Text.NativeRendering
anchors {
top: imgStomt.bottom
topMargin: -50

View File

@ -58,7 +58,7 @@ GridView {
text: qsTr("News & Patchnotes")
wrapMode: Text.WordWrap
color: "#626262"
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
font.pixelSize: 32
@ -130,7 +130,7 @@ GridView {
Text {
id: txtTitle
text: title
renderType: Text.NativeRendering
anchors {
right: parent.right
bottom: parent.bottom
@ -158,7 +158,7 @@ GridView {
}
color: "white"
font.family: "Roboto"
renderType: Text.NativeRendering
font.weight: Font.Normal
font.pixelSize: 14
wrapMode: Text.WordWrap

View File

@ -21,7 +21,7 @@ Item {
font.pixelSize: 14
font.family: "Roboto"
color: "#5D5D5D"
renderType: Text.NativeRendering
anchors {
top: parent.top
right: parent.right
@ -61,7 +61,7 @@ Item {
color: "#818181"
text: Math.round(slider.value * 100) / 100
anchors.verticalCenter: parent.verticalCenter
font.family: "Libre Baskerville"
//font.family: "Libre Baskerville"
font.pointSize: 12
font.italic: true
verticalAlignment: Text.AlignVCenter

View File

@ -210,7 +210,7 @@ Item {
id: txtDescriptionBottom
text: qsTr("Create wallpapers and widgets for local usage or the steam workshop!")
font.family: "Roboto"
renderType: Text.NativeRendering
font.pixelSize: 14
color: "white"
anchors {

View File

@ -85,7 +85,7 @@ Item {
id: txtStatus
height: 80
font.family: "Roboto"
renderType: Text.NativeRendering
font.pixelSize: 24
color: "gray"
verticalAlignment: Text.AlignVCenter

View File

@ -316,7 +316,7 @@ Item {
topMargin: 20
}
font.family: "Roboto"
renderType: Text.NativeRendering
}
Text {
id: txtUploadStatus
@ -330,7 +330,7 @@ Item {
topMargin: 20
}
font.family: "Roboto"
renderType: Text.NativeRendering
}
ProgressBar {

View File

@ -30,7 +30,7 @@ Item {
color: "white"
font.pixelSize: 28
renderType: Text.NativeRendering
font.family: "Roboto"
font.weight: Font.Thin
}

View File

@ -20,7 +20,7 @@ Item {
color: "white"
font.pixelSize: 28
renderType: Text.NativeRendering
font.family: "Roboto"
font.weight: Font.Thin
}
@ -52,7 +52,7 @@ Item {
id: txtExamples
text: qsTr("Examples Widgets and Scenes")
font.family: "Roboto"
renderType: Text.NativeRendering
font.pixelSize: 18
color: "white"

View File

@ -68,7 +68,7 @@ Item {
id: name
text: btnEmpty.text
font.family: "Roboto"
renderType: Text.NativeRendering
font.pixelSize: 18
color: "gray"
anchors {
@ -81,7 +81,7 @@ Item {
text: ">"
font.family: "Roboto"
renderType: Text.NativeRendering
font.pixelSize: 24
color: "#b9b9b9"
anchors {

View File

@ -22,7 +22,7 @@ Item {
font.family: "Segoe UI, Roboto"
font.weight: Font.Light
color: Material.color(Material.Red)
renderType: Text.NativeRendering
font.pixelSize: 32
}
@ -57,7 +57,7 @@ Item {
}
wrapMode: Text.WordWrap
color: "#626262"
renderType: Text.NativeRendering
height: txtFFMPEGDebug.paintedHeight
}
Connections {

View File

@ -22,7 +22,7 @@ Item {
font.family: "Segoe UI, Roboto"
font.weight: Font.Light
color: Material.color(Material.Green)
renderType: Text.NativeRendering
font.pixelSize: 32
}

View File

@ -15,7 +15,7 @@ Item {
font.family: "Roboto"
font.weight: Font.Light
color: "#757575"
renderType: Text.NativeRendering
font.pixelSize: 23
anchors {
top: parent.top

View File

@ -15,7 +15,7 @@ Item {
font.family: "Roboto"
font.weight: Font.Light
color: "#757575"
renderType: Text.NativeRendering
font.pixelSize: 23
anchors {
top: parent.top

View File

@ -82,7 +82,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter
font.family: "Libre Baskerville"
font.italic: true
renderType: Text.NativeRendering
}
}
Text {
@ -97,7 +97,7 @@ Rectangle {
wrapMode: Text.WordWrap
font.pointSize: 12
opacity: 0
renderType: Text.NativeRendering
text: helpText
}

View File

@ -59,7 +59,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
font.family: "Roboto"
font.weight: Font.Normal
renderType: Text.NativeRendering
}
Image {

View File

@ -63,7 +63,7 @@ Item {
font.family: "Roboto"
color: "white"
font.weight: Font.Normal
renderType: Text.NativeRendering
}
Text {
@ -73,7 +73,7 @@ Item {
font.pixelSize: 75
color: "white"
font.weight: Font.Normal
renderType: Text.NativeRendering
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top

View File

@ -191,7 +191,6 @@ Item {
color: "#2F2F2F"
font.pointSize: 9
renderType: Text.NativeRendering
font.family: "Segoe UI, Roboto"
}
}

View File

@ -161,7 +161,7 @@ Item {
id: txtHeadline
text: qsTr("Headline")
height: 60
renderType: Text.NativeRendering
font.family: "Roboto"
font.weight: Font.Thin
verticalAlignment: Text.AlignVCenter
@ -182,7 +182,7 @@ Item {
id: txtHeadlineMonitor
text: qsTr("Select a Monitor to display the content")
height: 50
renderType: Text.NativeRendering
horizontalAlignment: Qt.AlignHCenter
font.family: "Roboto"
font.pixelSize: 18
@ -236,7 +236,7 @@ Item {
id: txtSliderVolume
text: qsTr("Volume")
height: 30
renderType: Text.NativeRendering
font.family: "Roboto"
verticalAlignment: Text.AlignVCenter
font.pixelSize: 14
@ -291,7 +291,7 @@ Item {
id: txtComboBoxFillMode
text: qsTr("Fill Mode")
height: 30
renderType: Text.NativeRendering
font.family: "Roboto"
verticalAlignment: Text.AlignVCenter
font.pixelSize: 14

View File

@ -31,7 +31,7 @@ Item {
}
Text {
renderType: Text.NativeRendering
text: monitorSize.width + "x" + monitorSize.height
anchors{
horizontalCenter: parent.horizontalCenter

View File

@ -25,7 +25,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
font.family: "Roboto"
font.weight: Font.Normal
renderType: Text.NativeRendering
anchors {
left: parent.left
}

View File

@ -66,7 +66,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
font.family: "Roboto"
font.weight: Font.Normal
renderType: Text.NativeRendering
}
Image {

View File

@ -42,7 +42,7 @@ Item {
font.pointSize: 10
font.bold: true
font.family: "Roboto"
renderType: Text.NativeRendering
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
@ -64,7 +64,7 @@ Item {
color: "#626262"
font.pointSize: 12
font.family: "Roboto"
renderType: Text.NativeRendering
}
MouseArea {
id: mouseArea

View File

@ -25,7 +25,7 @@ Item {
id: txtHeadline
color: "#5D5D5D"
text: settingsBool.headline
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
anchors{
@ -45,7 +45,7 @@ Item {
text: settingsBool.description
wrapMode: Text.WordWrap
color: "#B5B5B5"
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
font.pixelSize: 12

View File

@ -144,7 +144,6 @@ Item {
color: "#B5B5B5"
height: 30
width: parent.width
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft
@ -299,7 +298,6 @@ Item {
id: txtHeadline
color: "#5D5D5D"
text: "Lore Ipsum"
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
font.pixelSize: 16
@ -314,7 +312,6 @@ Item {
id: txtDescriptionAbout
text: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. \n \n Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. "
color: "#B5B5B5"
renderType: Text.NativeRendering
wrapMode: Text.WordWrap
verticalAlignment: Text.AlignTop
horizontalAlignment: Text.AlignLeft

View File

@ -31,7 +31,7 @@ Item {
id: txtHeadline
color: "#5D5D5D"
text: settingsButton.headline
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
anchors{
@ -49,7 +49,7 @@ Item {
id: txtDescription
text: settingsButton.description
color: "#B5B5B5"
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft

View File

@ -25,7 +25,7 @@ Item {
id: txtHeadline
color: "#5D5D5D"
text: settingsComboBox.headline
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
anchors{
@ -44,7 +44,7 @@ Item {
id: txtDescription
text: settingsComboBox.description
color: "#B5B5B5"
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
wrapMode: Text.WordWrap

View File

@ -29,7 +29,7 @@ Rectangle {
margins: 20
}
color: "#626262"
renderType: Text.NativeRendering
height: txtExpander.paintedHeight
wrapMode: Text.Wrap
}

View File

@ -65,7 +65,7 @@ Item {
font.pixelSize: 18
color: "white"
verticalAlignment: Text.AlignTop
renderType: Text.NativeRendering
font.family: "Roboto"
anchors {
top: parent.top

View File

@ -147,7 +147,7 @@ ApplicationWindow {
text: qsTr("Could not connect to Steam :(")
color: "white"
font.family: "Roboto"
renderType: Text.NativeRendering
wrapMode: Text.WordWrap
font.pixelSize: 25
anchors {
@ -163,7 +163,7 @@ ApplicationWindow {
text: qsTr("To use ScreenPlay with all its features you have to have Steam running!")
color: "white"
font.family: "Roboto"
renderType: Text.NativeRendering
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 18