mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-11 21:02:12 +00:00
Some tweaks to UI to make window resizing smooth and flow nicely.
This commit is contained in:
parent
f3564ac6b9
commit
a7f74e9d01
@ -12,6 +12,8 @@ Window {
|
|||||||
id: window
|
id: window
|
||||||
width: 1280
|
width: 1280
|
||||||
height: 720
|
height: 720
|
||||||
|
minimumWidth: 720
|
||||||
|
minimumHeight: 480
|
||||||
visible: true
|
visible: true
|
||||||
title: qsTr("GPT4All v") + Qt.application.version
|
title: qsTr("GPT4All v") + Qt.application.version
|
||||||
|
|
||||||
@ -119,7 +121,6 @@ Window {
|
|||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
height: 100
|
height: 100
|
||||||
color: theme.backgroundDarkest
|
color: theme.backgroundDarkest
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
@ -139,10 +140,12 @@ Window {
|
|||||||
|
|
||||||
MyComboBox {
|
MyComboBox {
|
||||||
id: comboBox
|
id: comboBox
|
||||||
width: 350
|
implicitWidth: 375
|
||||||
|
width: window.width >= 750 ? implicitWidth : implicitWidth - ((750 - window.width))
|
||||||
anchors.top: modelLabel.top
|
anchors.top: modelLabel.top
|
||||||
anchors.bottom: modelLabel.bottom
|
anchors.bottom: modelLabel.bottom
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.horizontalCenterOffset: window.width >= 950 ? 0 : Math.max(-((950 - window.width) / 2), -99.5)
|
||||||
enabled: !currentChat.isServer
|
enabled: !currentChat.isServer
|
||||||
model: currentChat.modelList
|
model: currentChat.modelList
|
||||||
Accessible.role: Accessible.ComboBox
|
Accessible.role: Accessible.ComboBox
|
||||||
@ -295,7 +298,7 @@ Window {
|
|||||||
anchors.right: networkButton.left
|
anchors.right: networkButton.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 30
|
anchors.topMargin: 30
|
||||||
anchors.rightMargin: 30
|
anchors.rightMargin: 10
|
||||||
width: 40
|
width: 40
|
||||||
height: 40
|
height: 40
|
||||||
z: 200
|
z: 200
|
||||||
@ -316,7 +319,7 @@ Window {
|
|||||||
anchors.right: collectionsButton.left
|
anchors.right: collectionsButton.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 30
|
anchors.topMargin: 30
|
||||||
anchors.rightMargin: 30
|
anchors.rightMargin: 10
|
||||||
width: 40
|
width: 40
|
||||||
height: 40
|
height: 40
|
||||||
z: 200
|
z: 200
|
||||||
@ -365,7 +368,7 @@ Window {
|
|||||||
anchors.right: settingsButton.left
|
anchors.right: settingsButton.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 30
|
anchors.topMargin: 30
|
||||||
anchors.rightMargin: 30
|
anchors.rightMargin: 10
|
||||||
width: 40
|
width: 40
|
||||||
height: 40
|
height: 40
|
||||||
z: 200
|
z: 200
|
||||||
@ -430,7 +433,7 @@ Window {
|
|||||||
anchors.right: copyButton.left
|
anchors.right: copyButton.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 30
|
anchors.topMargin: 30
|
||||||
anchors.rightMargin: 30
|
anchors.rightMargin: 10
|
||||||
width: 40
|
width: 40
|
||||||
height: 40
|
height: 40
|
||||||
z: 200
|
z: 200
|
||||||
|
@ -11,7 +11,7 @@ ComboBox {
|
|||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
leftPadding: 10
|
leftPadding: 10
|
||||||
rightPadding: 10
|
rightPadding: 20
|
||||||
text: comboBox.displayText
|
text: comboBox.displayText
|
||||||
font: comboBox.font
|
font: comboBox.font
|
||||||
color: theme.textColor
|
color: theme.textColor
|
||||||
|
Loading…
Reference in New Issue
Block a user