fix color

This commit is contained in:
Andrei Yankovich 2020-06-22 13:51:04 +03:00
parent 03795428d2
commit 0fed6d80f8
2 changed files with 9 additions and 1 deletions

View File

@ -43,7 +43,7 @@ ViewPortPage {
GradientStop {
position: 1.00;
color: "#33" + baseColor;
color: "#00" + baseColor;
}
}
}
@ -60,6 +60,8 @@ ViewPortPage {
font.bold: true
font.pointSize: headerTextPointSize
text: title;
color: fontColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
@ -87,6 +89,8 @@ ViewPortPage {
verticalAlignment: Text.AlignVCenter
width: parent.width / 2
text: root.text
color: fontColor
wrapMode: Text.WordWrap
anchors.bottom: parent.bottom
anchors.top: header.bottom

View File

@ -13,6 +13,7 @@ ViewPortDelegatBase {
property int textMargins: 10
property int sourceTextPointSize: 20
property int headerTextPointSize: 32
property color fontColor: ( Material.theme === Material.Light)? "#626465" : "#d2d5d8"
property int additionalHeight: getBrCount(text) * sourceText.fontInfo.pixelSize + textMargins * 2
@ -49,6 +50,7 @@ ViewPortDelegatBase {
id: header
font.bold: true
font.pointSize: headerTextPointSize
color: fontColor
text: title;
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
@ -76,6 +78,8 @@ ViewPortDelegatBase {
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
text: root.text
color: fontColor
wrapMode: Text.WordWrap
anchors.bottom: parent.bottom
anchors.top: header.bottom