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:
parent
e3442ec208
commit
eccc67d0c0
@ -58,7 +58,6 @@ Item {
|
|||||||
font.pixelSize: 42
|
font.pixelSize: 42
|
||||||
color: "white"
|
color: "white"
|
||||||
font.weight: Font.Light
|
font.weight: Font.Light
|
||||||
renderType: Text.NativeRendering
|
|
||||||
font.family: "Segoe UI"
|
font.family: "Segoe UI"
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
@ -73,7 +72,6 @@ Item {
|
|||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: "#59C1FE"
|
color: "#59C1FE"
|
||||||
font.weight: Font.Light
|
font.weight: Font.Light
|
||||||
renderType: Text.NativeRendering
|
|
||||||
font.family:"Segoe UI"
|
font.family:"Segoe UI"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Controls.Material
|
||||||
|
import QtQuick.Effects
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import QtQuick.Particles
|
import QtQuick.Particles
|
||||||
import QtQuick.Controls.Material
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Controls.Material
|
||||||
|
import QtQuick.Effects
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import QtQuick.Particles
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
@ -90,8 +90,6 @@ App::App()
|
|||||||
qWarning() << "Unable to load font from: " << fontsPath;
|
qWarning() << "Unable to load font from: " << fontsPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
QQuickWindow::setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
|
|
||||||
|
|
||||||
// TODO: This is a workaround because I don't know how to
|
// TODO: This is a workaround because I don't know how to
|
||||||
// init this in the ScreenPlayWorkshop plugin.
|
// init this in the ScreenPlayWorkshop plugin.
|
||||||
// Move to workshop plugin.
|
// Move to workshop plugin.
|
||||||
|
@ -7,7 +7,8 @@ import ScreenPlay
|
|||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
width: 300
|
implicitWidth: 300
|
||||||
|
implicitHeight: 50
|
||||||
|
|
||||||
ToolButton {
|
ToolButton {
|
||||||
id: icnSearch
|
id: icnSearch
|
||||||
@ -28,8 +29,9 @@ Item {
|
|||||||
TextField {
|
TextField {
|
||||||
id: txtSearch
|
id: txtSearch
|
||||||
placeholderTextColor: Material.secondaryTextColor
|
placeholderTextColor: Material.secondaryTextColor
|
||||||
width: 250
|
anchors.fill:parent
|
||||||
height: 40
|
anchors.margins: 10
|
||||||
|
|
||||||
color: Material.secondaryTextColor
|
color: Material.secondaryTextColor
|
||||||
placeholderText: qsTr("Search for Wallpaper & Widgets")
|
placeholderText: qsTr("Search for Wallpaper & Widgets")
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
@ -39,11 +41,5 @@ Item {
|
|||||||
App.installedListFilter.sortByName(txtSearch.text);
|
App.installedListFilter.sortByName(txtSearch.text);
|
||||||
}
|
}
|
||||||
|
|
||||||
anchors {
|
|
||||||
right: icnSearch.left
|
|
||||||
rightMargin: 10
|
|
||||||
top: parent.top
|
|
||||||
topMargin: 10
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ ColumnLayout {
|
|||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: textField
|
id: textField
|
||||||
font.weight: Font.Medium
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,7 +109,6 @@ ScreenPlay::WallpaperExitCode LinuxX11Window::start()
|
|||||||
QDir workingDir(QGuiApplication::instance()->applicationDirPath());
|
QDir workingDir(QGuiApplication::instance()->applicationDirPath());
|
||||||
m_window.engine()->addImportPath(workingDir.path() + "/qml");
|
m_window.engine()->addImportPath(workingDir.path() + "/qml");
|
||||||
m_window.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
|
m_window.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
|
||||||
m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
|
|
||||||
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWallpaper/qml/Wallpaper.qml"));
|
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWallpaper/qml/Wallpaper.qml"));
|
||||||
m_window.show();
|
m_window.show();
|
||||||
return ScreenPlay::WallpaperExitCode::Ok;
|
return ScreenPlay::WallpaperExitCode::Ok;
|
||||||
|
@ -26,7 +26,6 @@ ScreenPlay::WallpaperExitCode MacWindow::start()
|
|||||||
Qt::WindowFlags flags = m_window.flags();
|
Qt::WindowFlags flags = m_window.flags();
|
||||||
m_window.setFlags(flags | Qt::FramelessWindowHint | Qt::Desktop);
|
m_window.setFlags(flags | Qt::FramelessWindowHint | Qt::Desktop);
|
||||||
m_window.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
|
m_window.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
|
||||||
m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
|
|
||||||
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWallpaper/qml/Wallpaper.qml"));
|
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWallpaper/qml/Wallpaper.qml"));
|
||||||
|
|
||||||
MacIntegration* macIntegration = new MacIntegration(this);
|
MacIntegration* macIntegration = new MacIntegration(this);
|
||||||
|
@ -404,8 +404,6 @@ void WinWindow::configureWindowGeometry()
|
|||||||
setupWallpaperForMultipleScreens(activeScreensList());
|
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.setResizeMode(QQuickView::ResizeMode::SizeRootObjectToView);
|
||||||
m_window.setWidth(width());
|
m_window.setWidth(width());
|
||||||
m_window.setHeight(height());
|
m_window.setHeight(height());
|
||||||
|
@ -78,7 +78,6 @@ WidgetWindow::WidgetWindow(
|
|||||||
}
|
}
|
||||||
auto* guiAppInst = dynamic_cast<QGuiApplication*>(QGuiApplication::instance());
|
auto* guiAppInst = dynamic_cast<QGuiApplication*>(QGuiApplication::instance());
|
||||||
m_window.engine()->addImportPath(guiAppInst->applicationDirPath() + "/qml");
|
m_window.engine()->addImportPath(guiAppInst->applicationDirPath() + "/qml");
|
||||||
m_window.setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
|
|
||||||
m_window.setResizeMode(QQuickView::ResizeMode::SizeViewToRootObject);
|
m_window.setResizeMode(QQuickView::ResizeMode::SizeViewToRootObject);
|
||||||
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWidget/qml/Widget.qml"));
|
m_window.setSource(QUrl("qrc:/qml/ScreenPlayWidget/qml/Widget.qml"));
|
||||||
m_window.setColor(Qt::transparent);
|
m_window.setColor(Qt::transparent);
|
||||||
|
Loading…
Reference in New Issue
Block a user