gpt4all
101 строка · 3.2 Кб
1import QtCore
2import QtQuick
3import QtQuick.Controls
4import QtQuick.Controls.Basic
5import QtQuick.Layouts
6import download
7import network
8import llm
9
10MyDialog {
11id: abpoutDialog
12anchors.centerIn: parent
13modal: false
14padding: 20
15width: 1024
16height: column.height + 40
17
18Theme {
19id: theme
20}
21
22Column {
23id: column
24spacing: 20
25Item {
26width: childrenRect.width
27height: childrenRect.height
28Image {
29id: img
30anchors.top: parent.top
31anchors.left: parent.left
32width: 60
33height: 60
34source: "qrc:/gpt4all/icons/logo.svg"
35}
36Text {
37anchors.left: img.right
38anchors.leftMargin: 30
39anchors.verticalCenter: img.verticalCenter
40text: qsTr("About GPT4All")
41color: theme.textColor
42font.pixelSize: theme.fontSizeLarge
43font.bold: true
44}
45}
46
47ScrollView {
48clip: true
49height: 200
50width: 1024 - 40
51ScrollBar.vertical.policy: ScrollBar.AlwaysOn
52ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
53
54MyTextArea {
55id: welcome
56width: 1024 - 40
57textFormat: TextEdit.MarkdownText
58text: qsTr("### Release notes\n")
59+ Download.releaseInfo.notes
60+ qsTr("### Contributors\n")
61+ Download.releaseInfo.contributors
62focus: false
63readOnly: true
64Accessible.role: Accessible.Paragraph
65Accessible.name: qsTr("Release notes")
66Accessible.description: qsTr("Release notes for this version")
67}
68}
69
70MySettingsLabel {
71id: discordLink
72width: parent.width
73textFormat: Text.StyledText
74wrapMode: Text.WordWrap
75text: qsTr("Check out our discord channel <a href=\"https://discord.gg/4M2QFmTt2k\">https://discord.gg/4M2QFmTt2k</a>")
76font.pixelSize: theme.fontSizeLarge
77onLinkActivated: { Qt.openUrlExternally("https://discord.gg/4M2QFmTt2k") }
78color: theme.textColor
79linkColor: theme.linkColor
80
81Accessible.role: Accessible.Link
82Accessible.name: qsTr("Discord link")
83}
84
85MySettingsLabel {
86id: nomicProps
87width: parent.width
88textFormat: Text.StyledText
89wrapMode: Text.WordWrap
90text: 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!")
91font.pixelSize: theme.fontSizeLarge
92onLinkActivated: { Qt.openUrlExternally("https://home.nomic.ai") }
93color: theme.textColor
94linkColor: theme.linkColor
95
96Accessible.role: Accessible.Paragraph
97Accessible.name: qsTr("Thank you blurb")
98Accessible.description: qsTr("Contains embedded link to https://home.nomic.ai")
99}
100}
101}
102