Theme: Add renderType

pull/24/head
kateleet 4 years ago
parent a4a072b392
commit e1b6cfa3d8

@ -64,6 +64,8 @@ QtObject {
property real hugeRadius: 14.0
property real windowRadius: 11.0
property var renderType: Text.QtRendering
property font defaultFont: fontMetrics.font
property font smallFont: {
let font = fontMetrics.font

@ -12,7 +12,7 @@ T.Label {
// Text.NativeRendering is broken on non integer pixel ratios
// renderType: Window.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering
renderType: Text.NativeRendering
renderType: FishUI.Theme.renderType
font.capitalization: FishUI.Theme.defaultFont.capitalization
font.family: FishUI.Theme.fontFamily

@ -46,9 +46,7 @@ T.TextArea {
verticalAlignment: TextEdit.AlignTop
hoverEnabled: false
// https://bugreports.qt.io/browse/QTBUG-67007
// This bug has been fixed since 5.11.0 Beta 3.
renderType: Text.NativeRendering
renderType: FishUI.Theme.renderType
selectByMouse: true

@ -41,7 +41,8 @@ T.TextField {
rightPadding: FishUI.Units.smallSpacing + FishUI.Units.extendBorderWidth
//Text.NativeRendering is broken on non integer pixel ratios
renderType: Window.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering
// renderType: Window.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering
renderType: FishUI.Theme.renderType
color: control.enabled ? FishUI.Theme.textColor : FishUI.Theme.disabledTextColor
selectionColor: FishUI.Theme.highlightColor

Loading…
Cancel
Save