Try to make text rendering in qml sharper

master
Nicolas Werner 4 years ago
parent dde28c627b
commit cded494cb5
  1. 2
      resources/qml/TimelineView.qml
  2. 1
      src/timeline/TimelineViewManager.cpp

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

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

Loading…
Cancel
Save