Skip to content

Commit

Permalink
set Antialiasin for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Aug 7, 2024
1 parent 9d0732e commit 6e08c07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/framework/ui/api/themeapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ void ThemeApi::setupUiFonts()

QString family = QString::fromStdString(configuration()->fontFamily());
for (QFont* font : fonts.keys()) {

int size = configuration()->fontSize(fonts[font].sizeType);
QFont::Weight weight = fonts[font].weight;

Expand Down
5 changes: 5 additions & 0 deletions src/framework/uicomponents/view/quickpaintedview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ using namespace muse::uicomponents;
QuickPaintedView::QuickPaintedView(QQuickItem* parent)
: QQuickPaintedItem(parent)
{
#ifdef Q_OS_WIN
setAntialiasing(true);
setSmooth(true);
#else
//! NOTE It is necessary that when UI scaling is displayed without a blur
setAntialiasing(false);
setSmooth(false);
#endif
}

QSGNode* QuickPaintedView::updatePaintNode(QSGNode* old, UpdatePaintNodeData* data)
Expand Down

0 comments on commit 6e08c07

Please sign in to comment.