mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-20 12:44:51 +00:00
Fix the sizing for model download.
Signed-off-by: Adam Treat <adam@nomic.ai>
This commit is contained in:
parent
ffed2ff823
commit
111e152a5d
@ -135,7 +135,7 @@ MyDialog {
|
|||||||
font.pixelSize: theme.fontSizeLarge
|
font.pixelSize: theme.fontSizeLarge
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.leftMargin: 20
|
Layout.leftMargin: 20
|
||||||
Layout.minimumWidth: apiKey.width
|
Layout.minimumWidth: 200
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||||
visible: !isOnline && !installed && !calcHash && downloadError === ""
|
visible: !isOnline && !installed && !calcHash && downloadError === ""
|
||||||
@ -154,7 +154,7 @@ MyDialog {
|
|||||||
text: qsTr("Remove")
|
text: qsTr("Remove")
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.leftMargin: 20
|
Layout.leftMargin: 20
|
||||||
Layout.minimumWidth: apiKey.width
|
Layout.minimumWidth: 200
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||||
visible: installed || downloadError !== ""
|
visible: installed || downloadError !== ""
|
||||||
@ -169,7 +169,7 @@ MyDialog {
|
|||||||
visible: !installed && isOnline
|
visible: !installed && isOnline
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.leftMargin: 20
|
Layout.leftMargin: 20
|
||||||
Layout.minimumWidth: apiKey.width
|
Layout.minimumWidth: 200
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||||
text: qsTr("Install")
|
text: qsTr("Install")
|
||||||
@ -238,7 +238,7 @@ MyDialog {
|
|||||||
visible: LLM.systemTotalRAMInGB() < ramrequired
|
visible: LLM.systemTotalRAMInGB() < ramrequired
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.leftMargin: 20
|
Layout.leftMargin: 20
|
||||||
Layout.maximumWidth: apiKey.width
|
Layout.maximumWidth: 300
|
||||||
textFormat: Text.StyledText
|
textFormat: Text.StyledText
|
||||||
text: qsTr("<strong><font size=\"2\">WARNING: Not recommended for your hardware.")
|
text: qsTr("<strong><font size=\"2\">WARNING: Not recommended for your hardware.")
|
||||||
+ qsTr(" Model requires more memory (") + ramrequired
|
+ qsTr(" Model requires more memory (") + ramrequired
|
||||||
@ -261,7 +261,7 @@ MyDialog {
|
|||||||
visible: isDownloading && !calcHash
|
visible: isDownloading && !calcHash
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.leftMargin: 20
|
Layout.leftMargin: 20
|
||||||
Layout.minimumWidth: apiKey.width
|
Layout.minimumWidth: 200
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||||
spacing: 20
|
spacing: 20
|
||||||
@ -269,7 +269,7 @@ MyDialog {
|
|||||||
ProgressBar {
|
ProgressBar {
|
||||||
id: itemProgressBar
|
id: itemProgressBar
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
width: apiKey.width
|
width: 200
|
||||||
value: bytesReceived / bytesTotal
|
value: bytesReceived / bytesTotal
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitHeight: 45
|
implicitHeight: 45
|
||||||
@ -307,14 +307,16 @@ MyDialog {
|
|||||||
visible: calcHash
|
visible: calcHash
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.leftMargin: 20
|
Layout.leftMargin: 20
|
||||||
Layout.minimumWidth: apiKey.width
|
Layout.minimumWidth: 200
|
||||||
|
Layout.maximumWidth: 200
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||||
|
clip: true
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
id: calcHashLabel
|
id: calcHashLabel
|
||||||
color: theme.textColor
|
color: theme.textColor
|
||||||
text: qsTr("Calculating MD5...")
|
text: qsTr("Calculating...")
|
||||||
font.pixelSize: theme.fontSizeLarge
|
font.pixelSize: theme.fontSizeLarge
|
||||||
Accessible.role: Accessible.Paragraph
|
Accessible.role: Accessible.Paragraph
|
||||||
Accessible.name: text
|
Accessible.name: text
|
||||||
@ -335,8 +337,7 @@ MyDialog {
|
|||||||
visible: !installed && isOnline
|
visible: !installed && isOnline
|
||||||
Layout.topMargin: 20
|
Layout.topMargin: 20
|
||||||
Layout.leftMargin: 20
|
Layout.leftMargin: 20
|
||||||
Layout.minimumWidth: 150
|
Layout.minimumWidth: 200
|
||||||
Layout.maximumWidth: textMetrics.width + 25
|
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
function showError() {
|
function showError() {
|
||||||
|
Loading…
Reference in New Issue
Block a user