1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-25 04:02:50 +01:00

Remove native rendering setting

Looks like this version is worse than not setting it. This changes
every Qt version....
This commit is contained in:
Elias Steurer 2023-02-24 16:54:56 +01:00
parent e3442ec208
commit eccc67d0c0
10 changed files with 14 additions and 20 deletions

View File

@ -58,7 +58,6 @@ Item {
font.pixelSize: 42
color: "white"
font.weight: Font.Light
renderType: Text.NativeRendering
font.family: "Segoe UI"
}
Text {
@ -73,7 +72,6 @@ Item {
font.pixelSize: 12
color: "#59C1FE"
font.weight: Font.Light
renderType: Text.NativeRendering
font.family:"Segoe UI"
}

View File

@ -1,7 +1,10 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Effects
import QtQuick.Layouts
import QtQuick.Particles
import QtQuick.Controls.Material
Rectangle {
id: root

View File

@ -1,4 +1,9 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Effects
import QtQuick.Layouts
import QtQuick.Particles
Item {
id: root

View File

@ -90,8 +90,6 @@ App::App()
qWarning() << "Unable to load font from: " << fontsPath;
}
QQuickWindow::setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
// TODO: This is a workaround because I don't know how to
// init this in the ScreenPlayWorkshop plugin.
// Move to workshop plugin.

View File

@ -7,7 +7,8 @@ import ScreenPlay
Item {
id: root
width: 300
implicitWidth: 300
implicitHeight: 50
ToolButton {
id: icnSearch
@ -28,8 +29,9 @@ Item {
TextField {
id: txtSearch
placeholderTextColor: Material.secondaryTextColor
width: 250
height: 40
anchors.fill:parent
anchors.margins: 10
color: Material.secondaryTextColor
placeholderText: qsTr("Search for Wallpaper & Widgets")
onTextChanged: {
@ -39,11 +41,5 @@ Item {
App.installedListFilter.sortByName(txtSearch.text);
}
anchors {
right: icnSearch.left
rightMargin: 10
top: parent.top
topMargin: 10
}
}
}

View File

@ -17,7 +17,6 @@ ColumnLayout {
TextField {
id: textField
font.weight: Font.Medium
Layout.fillWidth: true
}

View File

@ -109,7 +109,6 @@ ScreenPlay::WallpaperExitCode LinuxX11Window::start()
QDir workingDir(QGuiApplication::instance()->applicationDirPath());
m_window.engine()->addImportPath(workingDir.path() + "/qml");
m_window.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWallpaper/qml/Wallpaper.qml"));
m_window.show();
return ScreenPlay::WallpaperExitCode::Ok;

View File

@ -26,7 +26,6 @@ ScreenPlay::WallpaperExitCode MacWindow::start()
Qt::WindowFlags flags = m_window.flags();
m_window.setFlags(flags | Qt::FramelessWindowHint | Qt::Desktop);
m_window.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWallpaper/qml/Wallpaper.qml"));
MacIntegration* macIntegration = new MacIntegration(this);

View File

@ -404,8 +404,6 @@ void WinWindow::configureWindowGeometry()
setupWallpaperForMultipleScreens(activeScreensList());
}
// Instead of setting "renderType: Text.NativeRendering" every time we can set it here once
m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
m_window.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
m_window.setWidth(width());
m_window.setHeight(height());

View File

@ -78,7 +78,6 @@ WidgetWindow::WidgetWindow(
}
auto* guiAppInst = dynamic_cast<QGuiApplication*>(QGuiApplication::instance());
m_window.engine()->addImportPath(guiAppInst->applicationDirPath() + "/qml");
m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
m_window.setResizeMode(QQuickView::ResizeMode::SizeViewToRootObject);
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWidget/qml/Widget.qml"));
m_window.setColor(Qt::transparent);