Use the same font for all the components

This commit is contained in:
Omer Yacine 2022-11-22 14:14:09 +02:00
parent ef7ff4199e
commit 13e98a427a
No known key found for this signature in database
GPG Key ID: C3BED6698142B393
2 changed files with 4 additions and 0 deletions

View File

@ -297,6 +297,7 @@ Column {
anchors.left: indicator.right anchors.left: indicator.right
anchors.leftMargin: indicator.width / 2 anchors.leftMargin: indicator.width / 2
font.pointSize: root.font.pointSize * 0.8 font.pointSize: root.font.pointSize * 0.8
font.family: root.font.family
color: root.palette.text color: root.palette.text
} }
@ -452,6 +453,7 @@ Column {
text: parent.text text: parent.text
color: config.OverrideLoginButtonTextColor != "" ? config.OverrideLoginButtonTextColor : root.palette.highlight.hslLightness >= 0.7 ? "#444" : "white" color: config.OverrideLoginButtonTextColor != "" ? config.OverrideLoginButtonTextColor : root.palette.highlight.hslLightness >= 0.7 ? "#444" : "white"
font.pointSize: root.font.pointSize font.pointSize: root.font.pointSize
font.family: root.font.family
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
opacity: 0.5 opacity: 0.5

View File

@ -51,6 +51,7 @@ Item {
contentItem: Text { contentItem: Text {
text: model.name text: model.name
font.pointSize: root.font.pointSize * 0.8 font.pointSize: root.font.pointSize * 0.8
font.family: root.font.family
color: selectSession.highlightedIndex === index ? root.palette.highlight.hslLightness >= 0.7 ? "#444444" : "white" : root.palette.window.hslLightness >= 0.8 ? root.palette.highlight.hslLightness >= 0.8 ? "#444444" : root.palette.highlight : "white" color: selectSession.highlightedIndex === index ? root.palette.highlight.hslLightness >= 0.7 ? "#444444" : "white" : root.palette.window.hslLightness >= 0.8 ? root.palette.highlight.hslLightness >= 0.8 ? "#444444" : root.palette.highlight : "white"
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
@ -73,6 +74,7 @@ Item {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 3 anchors.leftMargin: 3
font.pointSize: root.font.pointSize * 0.8 font.pointSize: root.font.pointSize * 0.8
font.family: root.font.family
Keys.onReleased: parent.popup.open() Keys.onReleased: parent.popup.open()
} }