Update the look of the chatbar to be floating with the rich text controls on top and send buttons inline

This commit is contained in:
James Graham
2026-01-17 15:46:00 +00:00
parent 79de8a792c
commit 6b318ec754
25 changed files with 945 additions and 806 deletions

View File

@@ -45,6 +45,15 @@ public:
*/
Q_INVOKABLE bool handleKey(Qt::Key key, Qt::KeyboardModifiers modifiers);
/**
* @brief Whether the enter/return should send message.
*
* If false, return/enter adds a new line.
*
* shift + return/enter does the opposite to return/enter.
*/
bool sendMessageWithEnter = true;
Q_SIGNALS:
/**
* @brief There is an unhandled up key press.
@@ -98,6 +107,14 @@ Q_SIGNALS:
*/
void unhandledReturn(bool isCompleting);
/**
* @brief The completion dialog should be closed if open.
*
* Current trigger conditions:
* - Return clicked when a completion has been started.
*/
void closeCompletion();
/**
* @brief An image has been pasted.
*/
@@ -116,7 +133,9 @@ private:
bool backspace();
bool insertReturn();
bool insertReturn(Qt::KeyboardModifiers modifiers);
bool cancel();
bool pasteImage();
};