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(); profileListModel.loadProfiles();
settings.loadActiveProfiles(); settings.loadActiveProfiles();
QQmlApplicationEngine mainWindowEngine; 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("screenPlay", &screenPlay);
mainWindowEngine.rootContext()->setContextProperty("screenPlayCreate", &create); mainWindowEngine.rootContext()->setContextProperty("screenPlayCreate", &create);
mainWindowEngine.rootContext()->setContextProperty("utility", &qmlUtil); mainWindowEngine.rootContext()->setContextProperty("utility", &qmlUtil);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -144,7 +144,6 @@ Item {
color: "#B5B5B5" color: "#B5B5B5"
height: 30 height: 30
width: parent.width width: parent.width
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
@ -299,7 +298,6 @@ Item {
id: txtHeadline id: txtHeadline
color: "#5D5D5D" color: "#5D5D5D"
text: "Lore Ipsum" text: "Lore Ipsum"
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
font.pixelSize: 16 font.pixelSize: 16
@ -314,7 +312,6 @@ Item {
id: txtDescriptionAbout 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. " 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" color: "#B5B5B5"
renderType: Text.NativeRendering
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
verticalAlignment: Text.AlignTop verticalAlignment: Text.AlignTop
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft

View File

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

View File

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

View File

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

View File

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

View File

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