Commit Graph

14 Commits

Author SHA1 Message Date
Tobias Fella
a6ab447955 Implement adding labels for account
This gives the user the ability to label different account (e.g. "work",
"private") and shows this label in the account switcher. Showing the
label in more places will be done in future MRs.

The label is stored in the user's account data and thus transfers
automatically to other instances of neochat
2022-01-31 22:45:17 +01:00
Tobias Fella
e9f935609f Don't segfault on shutdown
Use the current QPalette for user color instead of getting the platform
theme from QML, which caused segfaults.
2021-09-30 18:42:19 +02:00
Tobias Fella
2cb81d1276 Unify License header style in C++ 2021-04-06 19:25:06 +02:00
Tobias Fella
e4ab2e565f Apply clang-format 2021-04-04 22:43:17 +02:00
Nicolas Fella
1411d28b81 Fix crash when logging out and back in
we get the platformtheme attached property from a random user object,
but that user is destroyed when logging out. Instead use the controller
as parent since that survives the logout
2021-02-06 00:36:51 +00:00
Nicolas Fella
66bcc2105a Only keep one Kirigami theme instance for all users
Fetching the Kirigami Theme via attached properties is expensive. The
theme is also going to be the same for all users so it's enough to only
do it once.
2021-02-03 21:57:54 +00:00
Nicolas Fella
88cc972edc Build with QT_NO_KEYWORDS 2020-12-29 14:28:49 +00:00
Carl Schwan
136a8f2af8 Clang-tidy + clang-format 2020-11-27 00:26:39 +01:00
Alexey Andreev
d6e1a6a45b Improve color-coding for user disambiguation
See also: https://github.com/quotient-im/libQuotient/wiki/User-color-coding-standard-draft-proposal
2020-11-26 10:57:37 +00:00
Tobias Fella
4e2b68dc0a Make Neochat compile against libQuotient 0.6 2020-11-19 08:13:55 +00:00
Tobias Fella
92569a8869 Remove debug message 2020-11-17 19:39:18 +01:00
Tobias Fella
79ee2e1279 Apply clang-format to rest of cpp 2020-11-12 11:07:36 +00:00
Tobias Fella
d8dde6e082 Add license headers to code files 2020-11-11 15:17:23 +00:00
Carl Schwan
122a7cdd2f Rebrand files names Spectral -> NeoChat 2020-11-08 23:17:30 +01:00