diff options
| author | Danilo M. <danix@danix.xyz> | 2026-12-04 11:32:58 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-12-04 11:32:58 +0100 |
| commit | feda206462824b52adad1fff83b04599c3076509 (patch) | |
| tree | 6880209e972f6e5298b5ec993ddf2bbd9a6310d0 /desktop/assistant/Message.qml | |
| parent | 2830b2c1dd5ebe8ebcb5a48816479eff0b0950f6 (diff) | |
| download | quickshell-feda206462824b52adad1fff83b04599c3076509.tar.gz quickshell-feda206462824b52adad1fff83b04599c3076509.zip | |
feat(assistant): title bar with face, chat title, enlarge and close
A row above the chat header: the assistant's face, the chat's title from
the daemon ("Desktop Assistant" until it has one), and enlarge and close.
Enlarged, the tall card fills the screen but a margin, for the session.
Avatar moves out of Message.qml to be shared.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/assistant/Message.qml')
| -rw-r--r-- | desktop/assistant/Message.qml | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/desktop/assistant/Message.qml b/desktop/assistant/Message.qml index c2e1b13..cc0537c 100644 --- a/desktop/assistant/Message.qml +++ b/desktop/assistant/Message.qml @@ -9,7 +9,6 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -import Quickshell.Widgets import QtQuick import ".." @@ -230,28 +229,4 @@ Column { // Unformatted twins of the texts, for the bubbles' widths. Text { id: qProbe; visible: false; text: msg.user; textFormat: Text.PlainText; font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } } Text { id: rProbe; visible: false; text: msg.reply; textFormat: Text.PlainText; font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } } - - // A round avatar: a picture filling it, or with crop ([centre x, centre - // y, size] in the picture's pixels) that square of it. No picture: a - // plain circle. - component Avatar: ClippingRectangle { - id: a - property string source: "" - property var crop: [] - width: msg.av - height: msg.av - radius: msg.av / 2 - color: Theme.surfaceAlt - Image { - readonly property real k: a.crop.length ? a.width / a.crop[2] : 0 - source: a.source - visible: status === Image.Ready - mipmap: true - fillMode: a.crop.length ? Image.Stretch : Image.PreserveAspectCrop - width: a.crop.length ? implicitWidth * k : a.width - height: a.crop.length ? implicitHeight * k : a.height - x: a.crop.length ? -(a.crop[0] - a.crop[2] / 2) * k : 0 - y: a.crop.length ? -(a.crop[1] - a.crop[2] / 2) * k : 0 - } - } } |
