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

View File

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

View File

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