feat: Add separator to chat top bar

This commit is contained in:
Petr Mironychev
2025-12-08 10:18:12 +01:00
parent 9f050aec67
commit 14e7ea2ec3
4 changed files with 63 additions and 25 deletions

View File

@ -91,7 +91,7 @@ Rectangle {
ToolTip.visible: hovered
ToolTip.delay: 250
ToolTip.text: qsTr("Switch AI configuration")
ToolTip.text: qsTr("Switch saved AI configuration")
}
QoAComboBox {
@ -174,6 +174,10 @@ Rectangle {
ToolTip.delay: 250
ToolTip.text: qsTr("Open Chat Assistant Settings")
}
QoASeparator {
anchors.verticalCenter: parent.verticalCenter
}
}
Item {
@ -235,18 +239,20 @@ Rectangle {
}
QoAButton {
id: clearButtonId
id: openChatHistoryId
icon {
source: "qrc:/qt/qml/ChatView/icons/clean-icon-dark.svg"
source: "qrc:/qt/qml/ChatView/icons/file-in-system.svg"
height: 15
width: 8
width: 15
}
ToolTip.visible: hovered
ToolTip.delay: 250
ToolTip.text: qsTr("Clean chat")
ToolTip.text: qsTr("Show in system")
}
QoASeparator {}
QoAButton {
id: compressButtonId
@ -292,19 +298,6 @@ Rectangle {
}
}
QoAButton {
id: openChatHistoryId
icon {
source: "qrc:/qt/qml/ChatView/icons/file-in-system.svg"
height: 15
width: 15
}
ToolTip.visible: hovered
ToolTip.delay: 250
ToolTip.text: qsTr("Show in system")
}
QoAButton {
id: contextButtonId
@ -327,6 +320,21 @@ Rectangle {
ToolTip.delay: 250
ToolTip.text: qsTr("Current amount tokens in chat and LLM limit threshold")
}
QoASeparator {}
QoAButton {
id: clearButtonId
icon {
source: "qrc:/qt/qml/ChatView/icons/clean-icon-dark.svg"
height: 15
width: 8
}
ToolTip.visible: hovered
ToolTip.delay: 250
ToolTip.text: qsTr("Clean chat")
}
}
}
}