Add new solution for context links that does not force regular markdown (#938)

in responses which is disruptive to code completions in responses.
This commit is contained in:
AT
2023-06-10 10:15:38 -04:00
committed by GitHub
parent d3ba1295a7
commit a9c2f47303
6 changed files with 205 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ Dialog {
Label {
id: discordLink
width: parent.width
textFormat: Text.RichText
textFormat: Text.StyledText
wrapMode: Text.WordWrap
text: qsTr("Check out our discord channel <a href=\"https://discord.gg/4M2QFmTt2k\">https://discord.gg/4M2QFmTt2k</a>")
onLinkActivated: { Qt.openUrlExternally("https://discord.gg/4M2QFmTt2k") }
@@ -90,7 +90,7 @@ Dialog {
Label {
id: nomicProps
width: parent.width
textFormat: Text.RichText
textFormat: Text.StyledText
wrapMode: Text.WordWrap
text: qsTr("Thank you to <a href=\"https://home.nomic.ai\">Nomic AI</a> and the community for contributing so much great data, code, ideas, and energy to the growing open source AI ecosystem!")
onLinkActivated: { Qt.openUrlExternally("https://home.nomic.ai") }

View File

@@ -18,8 +18,8 @@ QtObject {
property color dialogBorder: "#d1d5db"
property color userColor: "#ec86bf"
property color assistantColor: "#10a37f"
property color linkColor: "white"
property color tabBorder: "#2C2D35"
property color linkColor: "#55aaff"
property color tabBorder: "#2c2d35"
property real fontSizeLarge: Qt.application.font.pixelSize
property real fontSizeLarger: Qt.application.font.pixelSize + 2
}