Skip to content

Commit

Permalink
Force Text.QtRendering on button labels
Browse files Browse the repository at this point in the history
Otherwise they look pixelated.
  • Loading branch information
Vogtinator committed Feb 3, 2024
1 parent 158d059 commit f8966e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qml/NButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Rectangle {
font.pixelSize: height*0.55
color: font_color
font.bold: true
renderType: Text.QtRendering
// Workaround: Text.AutoText doesn't seem to work for properties (?)
textFormat: text.indexOf(">") == -1 ? Text.PlainText : Text.RichText
verticalAlignment: Text.AlignVCenter
Expand Down

0 comments on commit f8966e5

Please sign in to comment.