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
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -51,6 +51,7 @@ Item {
contentItem: Text {
text: model.name
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"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
@@ -73,6 +74,7 @@ Item {
anchors.left: parent.left
anchors.leftMargin: 3
font.pointSize: root.font.pointSize * 0.8
font.family: root.font.family
Keys.onReleased: parent.popup.open()
}