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 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(); }

@ -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);

Loading…
Cancel
Save