Try to make text rendering in qml sharper

This commit is contained in:
Nicolas Werner 2020-06-19 19:34:03 +02:00
parent dde28c627b
commit cded494cb5
2 changed files with 3 additions and 0 deletions

View file

@ -134,6 +134,8 @@ Page {
anchors.fill: parent anchors.fill: parent
} }
pixelAligned: true
Shortcut { Shortcut {
sequence: StandardKey.MoveToPreviousPage sequence: StandardKey.MoveToPreviousPage
onActivated: { chat.contentY = chat.contentY - chat.height / 2; chat.returnToBounds(); } onActivated: { chat.contentY = chat.contentY - chat.height / 2; chat.returnToBounds(); }

View file

@ -107,6 +107,7 @@ TimelineViewManager::TimelineViewManager(QSharedPointer<UserSettings> userSettin
container = view; container = view;
view->setResizeMode(QQuickWidget::SizeRootObjectToView); view->setResizeMode(QQuickWidget::SizeRootObjectToView);
container->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); container->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
view->quickWindow()->setTextRenderType(QQuickWindow::NativeTextRendering);
connect(view, &QQuickWidget::statusChanged, this, [](QQuickWidget::Status status) { connect(view, &QQuickWidget::statusChanged, this, [](QQuickWidget::Status status) {
nhlog::ui()->debug("Status changed to {}", status); nhlog::ui()->debug("Status changed to {}", status);