mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 02:49:12 -04:00
feat: Improve Chat UI
Move send and compress button to right bottom corner
This commit is contained in:
@@ -10,6 +10,7 @@ qt_add_qml_module(QodeAssistUIControls
|
||||
QML_FILES
|
||||
qml/Badge.qml
|
||||
qml/QoAButton.qml
|
||||
qml/QoABusyOverlay.qml
|
||||
qml/QoATextSlider.qml
|
||||
qml/QoAComboBox.qml
|
||||
qml/FadeListItemAnimation.qml
|
||||
|
||||
43
UIControls/qml/QoABusyOverlay.qml
Normal file
43
UIControls/qml/QoABusyOverlay.qml
Normal file
@@ -0,0 +1,43 @@
|
||||
// Copyright (C) 2024-2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
||||
property alias text: label.text
|
||||
property bool active: false
|
||||
|
||||
visible: active
|
||||
color: Qt.rgba(palette.window.r, palette.window.g, palette.window.b, 0.75)
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.AllButtons
|
||||
hoverEnabled: true
|
||||
preventStealing: true
|
||||
onWheel: function(wheel) { wheel.accepted = true }
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
spacing: 10
|
||||
|
||||
BusyIndicator {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
running: root.active
|
||||
implicitWidth: 36
|
||||
implicitHeight: 36
|
||||
}
|
||||
|
||||
Text {
|
||||
id: label
|
||||
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
color: palette.text
|
||||
font.pixelSize: 13
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user