gpt4all

Форк
0
/
AboutDialog.qml 
101 строка · 3.2 Кб
1
import QtCore
2
import QtQuick
3
import QtQuick.Controls
4
import QtQuick.Controls.Basic
5
import QtQuick.Layouts
6
import download
7
import network
8
import llm
9

10
MyDialog {
11
    id: abpoutDialog
12
    anchors.centerIn: parent
13
    modal: false
14
    padding: 20
15
    width: 1024
16
    height: column.height + 40
17

18
    Theme {
19
        id: theme
20
    }
21

22
    Column {
23
        id: column
24
        spacing: 20
25
        Item {
26
            width: childrenRect.width
27
            height: childrenRect.height
28
            Image {
29
                id: img
30
                anchors.top: parent.top
31
                anchors.left: parent.left
32
                width: 60
33
                height: 60
34
                source: "qrc:/gpt4all/icons/logo.svg"
35
            }
36
            Text {
37
                anchors.left: img.right
38
                anchors.leftMargin: 30
39
                anchors.verticalCenter: img.verticalCenter
40
                text: qsTr("About GPT4All")
41
                color: theme.textColor
42
                font.pixelSize: theme.fontSizeLarge
43
                font.bold: true
44
            }
45
        }
46

47
        ScrollView {
48
            clip: true
49
            height: 200
50
            width: 1024 - 40
51
            ScrollBar.vertical.policy: ScrollBar.AlwaysOn
52
            ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
53

54
            MyTextArea {
55
                id: welcome
56
                width: 1024 - 40
57
                textFormat: TextEdit.MarkdownText
58
                text: qsTr("### Release notes\n")
59
                    + Download.releaseInfo.notes
60
                    + qsTr("### Contributors\n")
61
                    + Download.releaseInfo.contributors
62
                focus: false
63
                readOnly: true
64
                Accessible.role: Accessible.Paragraph
65
                Accessible.name: qsTr("Release notes")
66
                Accessible.description: qsTr("Release notes for this version")
67
            }
68
        }
69

70
        MySettingsLabel {
71
            id: discordLink
72
            width: parent.width
73
            textFormat: Text.StyledText
74
            wrapMode: Text.WordWrap
75
            text: qsTr("Check out our discord channel <a href=\"https://discord.gg/4M2QFmTt2k\">https://discord.gg/4M2QFmTt2k</a>")
76
            font.pixelSize: theme.fontSizeLarge
77
            onLinkActivated: { Qt.openUrlExternally("https://discord.gg/4M2QFmTt2k") }
78
            color: theme.textColor
79
            linkColor: theme.linkColor
80

81
            Accessible.role: Accessible.Link
82
            Accessible.name: qsTr("Discord link")
83
        }
84

85
        MySettingsLabel {
86
            id: nomicProps
87
            width: parent.width
88
            textFormat: Text.StyledText
89
            wrapMode: Text.WordWrap
90
            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!")
91
            font.pixelSize: theme.fontSizeLarge
92
            onLinkActivated: { Qt.openUrlExternally("https://home.nomic.ai") }
93
            color: theme.textColor
94
            linkColor: theme.linkColor
95

96
            Accessible.role: Accessible.Paragraph
97
            Accessible.name: qsTr("Thank you blurb")
98
            Accessible.description: qsTr("Contains embedded link to https://home.nomic.ai")
99
        }
100
    }
101
}
102

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.