Make the setting labels font a bit bigger and fix hover.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-01-29 12:31:18 -05:00 committed by AT
parent 34de19ebf6
commit 3556f63a29
3 changed files with 19 additions and 18 deletions

View File

@ -225,8 +225,8 @@ Window {
text: "<a href=\"https://gpt4all.io\">gpt4all.io</a> |"
horizontalAlignment: Text.AlignLeft
font.pixelSize: theme.fontSizeFixedSmall
color: theme.iconBackgroundHovered
linkColor: hoverHandler1.hovered ? theme.accentColor : theme.iconBackgroundHovered
color: theme.iconBackgroundLight
linkColor: hoverHandler1.hovered ? theme.iconBackgroundHovered : theme.iconBackgroundLight
HoverHandler { id: hoverHandler1 }
onLinkActivated: { Qt.openUrlExternally("https://gpt4all.io") }
}
@ -236,8 +236,8 @@ Window {
text: "<a href=\"https://github.com/nomic-ai/gpt4all\">github</a>"
horizontalAlignment: Text.AlignLeft
font.pixelSize: theme.fontSizeFixedSmall
color: theme.iconBackgroundHovered
linkColor: hoverHandler2.hovered ? theme.accentColor : theme.iconBackgroundHovered
color: theme.iconBackgroundLight
linkColor: hoverHandler2.hovered ? theme.iconBackgroundHovered : theme.iconBackgroundLight
HoverHandler { id: hoverHandler2 }
onLinkActivated: { Qt.openUrlExternally("https://github.com/nomic-ai/gpt4all") }
}
@ -252,8 +252,8 @@ Window {
text: "<a href=\"https://nomic.ai\">nomic.ai</a> |"
horizontalAlignment: Text.AlignRight
font.pixelSize: theme.fontSizeFixedSmall
color: theme.iconBackgroundHovered
linkColor: hoverHandler3.hovered ? theme.accentColor : theme.iconBackgroundHovered
color: theme.iconBackgroundLight
linkColor: hoverHandler3.hovered ? theme.iconBackgroundHovered : theme.iconBackgroundLight
HoverHandler { id: hoverHandler3 }
onLinkActivated: { Qt.openUrlExternally("https://nomic.ai") }
}
@ -263,8 +263,8 @@ Window {
text: "<a href=\"https://twitter.com/nomic_ai\">twitter</a> |"
horizontalAlignment: Text.AlignRight
font.pixelSize: theme.fontSizeFixedSmall
color: theme.iconBackgroundHovered
linkColor: hoverHandler4.hovered ? theme.accentColor : theme.iconBackgroundHovered
color: theme.iconBackgroundLight
linkColor: hoverHandler4.hovered ? theme.iconBackgroundHovered : theme.iconBackgroundLight
HoverHandler { id: hoverHandler4 }
onLinkActivated: { Qt.openUrlExternally("https://twitter.com/nomic_ai") }
}
@ -274,8 +274,8 @@ Window {
text: "<a href=\"https://discord.gg/4M2QFmTt2k\">discord</a>"
horizontalAlignment: Text.AlignRight
font.pixelSize: theme.fontSizeFixedSmall
color: theme.iconBackgroundHovered
linkColor: hoverHandler5.hovered ? theme.accentColor : theme.iconBackgroundHovered
color: theme.iconBackgroundLight
linkColor: hoverHandler5.hovered ? theme.iconBackgroundHovered : theme.iconBackgroundLight
HoverHandler { id: hoverHandler5 }
onLinkActivated: { Qt.openUrlExternally("https://discord.gg/4M2QFmTt2k") }
}
@ -533,7 +533,7 @@ Window {
anchors.topMargin: 42.5
anchors.rightMargin: 10
width: 40
height: 40
height: 42.5
z: 200
padding: 15
toggled: currentChat.collectionList.length

View File

@ -5,6 +5,6 @@ import QtQuick.Controls.Basic
Label {
color: theme.settingsTitleTextColor
font.pixelSize: theme.fontSizeLarge - 4
font.pixelSize: theme.fontSizeSmall
font.bold: true
}

View File

@ -542,15 +542,16 @@ QtObject {
}
property real fontSizeFixedSmall: 16
property real fontSize: Qt.application.font.pixelSize
property real fontSizeSmall: fontSizeLarge - 2
property real fontSizeLarge: MySettings.fontSize === "Small" ?
Qt.application.font.pixelSize : MySettings.fontSize === "Medium" ?
Qt.application.font.pixelSize + 5 : Qt.application.font.pixelSize + 10
fontSize : MySettings.fontSize === "Medium" ?
fontSize + 5 : fontSize + 10
property real fontSizeLarger: MySettings.fontSize === "Small" ?
Qt.application.font.pixelSize + 2 : MySettings.fontSize === "Medium" ?
Qt.application.font.pixelSize + 7 : Qt.application.font.pixelSize + 12
fontSize + 2 : MySettings.fontSize === "Medium" ?
fontSize + 7 : fontSize + 12
property real fontSizeLargest: MySettings.fontSize === "Small" ?
Qt.application.font.pixelSize + 7 : MySettings.fontSize === "Medium" ?
Qt.application.font.pixelSize + 12 : Qt.application.font.pixelSize + 14
fontSize + 7 : MySettings.fontSize === "Medium" ?
fontSize + 12 : fontSize + 14
}