From 9a153b7170d80735d6cefc50b2eb291ec0279244 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 22 Nov 2018 02:35:25 -0800 Subject: [PATCH] Remove unneccessary hardcoded text color for better style support --- app/gui/AppView.qml | 3 +-- app/gui/CliStartStreamSegue.qml | 1 - app/gui/PcView.qml | 3 +-- app/gui/QuitSegue.qml | 1 - app/gui/SettingsView.qml | 26 +++++++++----------------- app/gui/StreamSegue.qml | 2 -- 6 files changed, 11 insertions(+), 25 deletions(-) diff --git a/app/gui/AppView.qml b/app/gui/AppView.qml index 0b2f79cb..d639fb1e 100644 --- a/app/gui/AppView.qml +++ b/app/gui/AppView.qml @@ -89,10 +89,9 @@ GridView { } } - Text { + Label { id: appNameText text: model.name - color: "white" width: parent.width height: 125 anchors.top: appIcon.bottom diff --git a/app/gui/CliStartStreamSegue.qml b/app/gui/CliStartStreamSegue.qml index 916b9684..54fde982 100644 --- a/app/gui/CliStartStreamSegue.qml +++ b/app/gui/CliStartStreamSegue.qml @@ -56,7 +56,6 @@ Item { verticalAlignment: Text.AlignVCenter wrapMode: Text.Wrap - color: "white" } } diff --git a/app/gui/PcView.qml b/app/gui/PcView.qml index ed614b82..59b51d5f 100644 --- a/app/gui/PcView.qml +++ b/app/gui/PcView.qml @@ -124,10 +124,9 @@ GridView { visible: !model.addPc && model.statusUnknown } - Text { + Label { id: pcNameText text: model.name - color: "white" width: parent.width anchors.top: pcIcon.bottom diff --git a/app/gui/QuitSegue.qml b/app/gui/QuitSegue.qml index 982a05fb..03b2f07c 100644 --- a/app/gui/QuitSegue.qml +++ b/app/gui/QuitSegue.qml @@ -65,7 +65,6 @@ Item { verticalAlignment: Text.AlignVCenter wrapMode: Text.Wrap - color: "white" } } diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index da6b2e0e..432f1328 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -72,8 +72,7 @@ Flickable { id: resFPStitle text: qsTr("Resolution and FPS") font.pointSize: 12 - wrapMode: Text.Wrap - color: "white" + wrapMode: Text.Wrap } Label { @@ -82,7 +81,6 @@ Flickable { text: qsTr("Setting values too high for your PC or network connection may cause lag, stuttering, or errors.") font.pointSize: 9 wrapMode: Text.Wrap - color: "white" } Row { @@ -297,7 +295,6 @@ Flickable { text: qsTr("Video bitrate: ") font.pointSize: 12 wrapMode: Text.Wrap - color: "white" } Label { @@ -306,7 +303,6 @@ Flickable { text: qsTr("Lower bitrate to reduce lag and stuttering. Raise bitrate to increase image quality.") font.pointSize: 9 wrapMode: Text.Wrap - color: "white" } Slider { @@ -334,7 +330,6 @@ Flickable { text: qsTr("Display mode") font.pointSize: 12 wrapMode: Text.Wrap - color: "white" } AutoResizingComboBox { @@ -383,7 +378,7 @@ Flickable { CheckBox { id: vsyncCheck hoverEnabled: true - text: "Enable V-Sync" + text: "Enable V-Sync" font.pointSize: 12 checked: prefs.enableVsync onCheckedChanged: { @@ -416,7 +411,6 @@ Flickable { text: qsTr("Audio configuration") font.pointSize: 12 wrapMode: Text.Wrap - color: "white" } AutoResizingComboBox { @@ -469,7 +463,7 @@ Flickable { CheckBox { id: startWindowedCheck - text: "Start Moonlight in windowed mode" + text: "Start Moonlight in windowed mode" font.pointSize: 12 checked: prefs.startWindowed onCheckedChanged: { @@ -499,7 +493,7 @@ Flickable { CheckBox { id: multiControllerCheck - text: "Multiple controller support" + text: "Multiple controller support" font.pointSize: 12 checked: prefs.multiController onCheckedChanged: { @@ -510,7 +504,7 @@ Flickable { CheckBox { id: rawInputCheck hoverEnabled: true - text: "Raw mouse input" + text: "Raw mouse input" font.pointSize: 12 checked: !prefs.mouseAcceleration onCheckedChanged: { @@ -538,7 +532,7 @@ Flickable { CheckBox { id: optimizeGameSettingsCheck - text: "Optimize game settings" + text: "Optimize game settings" font.pointSize: 12 checked: prefs.gameOptimizations onCheckedChanged: { @@ -548,7 +542,7 @@ Flickable { CheckBox { id: audioPcCheck - text: "Play audio on host PC" + text: "Play audio on host PC" font.pointSize: 12 checked: prefs.playAudioOnHost onCheckedChanged: { @@ -575,7 +569,6 @@ Flickable { text: qsTr("Video decoder") font.pointSize: 12 wrapMode: Text.Wrap - color: "white" } AutoResizingComboBox { @@ -622,7 +615,6 @@ Flickable { text: qsTr("Video codec") font.pointSize: 12 wrapMode: Text.Wrap - color: "white" } AutoResizingComboBox { @@ -672,7 +664,7 @@ Flickable { CheckBox { id: unlockUnsupportedFps - text: "Unlock unsupported FPS options" + text: "Unlock unsupported FPS options" font.pointSize: 12 checked: prefs.unsupportedFps onCheckedChanged: { @@ -686,7 +678,7 @@ Flickable { CheckBox { id: enableMdns - text: "Automatically find PCs on the local network (Recommended)" + text: "Automatically find PCs on the local network (Recommended)" font.pointSize: 12 checked: prefs.enableMdns onCheckedChanged: { diff --git a/app/gui/StreamSegue.qml b/app/gui/StreamSegue.qml index 09a40a5f..a1f99372 100644 --- a/app/gui/StreamSegue.qml +++ b/app/gui/StreamSegue.qml @@ -129,7 +129,6 @@ Item { verticalAlignment: Text.AlignVCenter wrapMode: Text.Wrap - color: "white" } } @@ -142,7 +141,6 @@ Item { verticalAlignment: Text.AlignVCenter wrapMode: Text.Wrap - color: "white" } MessageDialog {