mirror of
https://github.com/QuasarApp/ViewSolutions.git
synced 2025-04-26 01:34:39 +00:00
fix support highDPI screens
This commit is contained in:
parent
cb5069cb74
commit
78ba786722
@ -68,7 +68,7 @@ ViewPortPage {
|
||||
Label {
|
||||
id: header
|
||||
font.bold: true
|
||||
font.pointSize: headerTextPointSize
|
||||
font.pixelSize: headerTextPixelSize
|
||||
text: title;
|
||||
color: fontColor
|
||||
|
||||
@ -84,7 +84,7 @@ ViewPortPage {
|
||||
anchors.margins: textMargins
|
||||
|
||||
layer.effect: DropShadow {
|
||||
verticalOffset: 2
|
||||
verticalOffset: 0
|
||||
color: "#80000000"
|
||||
radius: 1
|
||||
samples: 3
|
||||
@ -94,7 +94,7 @@ ViewPortPage {
|
||||
Label {
|
||||
id: sourceText
|
||||
font.bold: false
|
||||
font.pointSize: sourceTextPointSize
|
||||
font.pixelSize: sourceTextPixelSize
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
width: parent.width / 2
|
||||
@ -110,7 +110,7 @@ ViewPortPage {
|
||||
|
||||
layer.enabled: true
|
||||
layer.effect: DropShadow {
|
||||
verticalOffset: 2
|
||||
verticalOffset: 0
|
||||
color: "#80000000"
|
||||
radius: 1
|
||||
samples: 3
|
||||
|
@ -11,8 +11,8 @@ ViewPortDelegatBase {
|
||||
property string title: ""
|
||||
property string text: ""
|
||||
property int textMargins: 10
|
||||
property int sourceTextPointSize: 20
|
||||
property int headerTextPointSize: 32
|
||||
property int sourceTextPixelSize: 20
|
||||
property int headerTextPixelSize: 32
|
||||
property color fontColor: ( Material.theme === Material.Light)? "#626465" : "#d2d5d8"
|
||||
|
||||
property int additionalHeight: getBrCount(text) * sourceText.fontInfo.pixelSize + textMargins * 2
|
||||
@ -50,7 +50,7 @@ ViewPortDelegatBase {
|
||||
Label {
|
||||
id: header
|
||||
font.bold: true
|
||||
font.pointSize: headerTextPointSize
|
||||
font.pixelSize: headerTextPixelSize
|
||||
color: fontColor
|
||||
text: title;
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
@ -65,7 +65,7 @@ ViewPortDelegatBase {
|
||||
anchors.margins: textMargins
|
||||
|
||||
layer.effect: DropShadow {
|
||||
verticalOffset: 2
|
||||
verticalOffset: 0
|
||||
color: "#80000000"
|
||||
radius: 1
|
||||
samples: 3
|
||||
@ -75,7 +75,7 @@ ViewPortDelegatBase {
|
||||
Label {
|
||||
id: sourceText
|
||||
font.bold: false
|
||||
font.pointSize: sourceTextPointSize
|
||||
font.pixelSize: sourceTextPixelSize
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: root.text
|
||||
@ -91,7 +91,7 @@ ViewPortDelegatBase {
|
||||
|
||||
layer.enabled: true
|
||||
layer.effect: DropShadow {
|
||||
verticalOffset: 2
|
||||
verticalOffset: 0
|
||||
color: "#80000000"
|
||||
radius: 1
|
||||
samples: 3
|
||||
|
@ -19,8 +19,8 @@ ViewSolutionsControl {
|
||||
property int margins: 5
|
||||
|
||||
property int textMargins: 10
|
||||
property int sourceTextPointSize: 20
|
||||
property int headerTextPointSize: 32
|
||||
property int sourceTextPixelSize: 20
|
||||
property int headerTextPixelSize: 32
|
||||
|
||||
property alias title: header.text
|
||||
property alias text: sourceText.text
|
||||
@ -63,7 +63,7 @@ ViewSolutionsControl {
|
||||
Label {
|
||||
id: header
|
||||
font.bold: true
|
||||
font.pointSize: headerTextPointSize
|
||||
font.pixelSize: headerTextPixelSize
|
||||
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
@ -87,7 +87,7 @@ ViewSolutionsControl {
|
||||
Label {
|
||||
id: sourceText
|
||||
font.bold: false
|
||||
font.pointSize: sourceTextPointSize
|
||||
font.pixelSize: sourceTextPixelSize
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
width: parent.width / 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user