Comments (5)
This isn't easy to implement currently, but not impossible.
The difficulties come from Qt Quick (the QML library that provides us GUI controls)'s lack of a proper nested tree view component and us having to fake one out of a flat ListView
, although it seems that things are finally progressing (QTBUG-61630).
from mirage.
I assume that this means there is currently no way to nest what is used for the initial account "tab"? I will have to look into Qt Quick; never used Qt before, in fact...
from mirage.
Well, we have to flatten it with iterations. Not super trivial, indeed, but possible. As you mention, ListView should do with separate delegates assigned for rooms and headers indicating room type. Probably, something like you do for multiple accounts already:
- Account name
- direct messages
- peer 1
- peer 2
- regular rooms
- room 1
- room 2
- low priority
...
- direct messages
Compared to current design, seems like just a header type is introduced. Sorting as well, in addition.
from mirage.
I assume that this means there is currently no way to nest what is used for the initial account "tab"? I will have to look into Qt Quick; never used Qt before, in fact...
I'm not sure what you mean by "initial account tab"
Compared to current design, seems like just a header type is introduced. Sorting as well, in addition.
We have to figure out how that will work on the python side. The "all_rooms"
model used by the account-room list catches events emitted by the "accounts"
and all the ("<account_user_id>", "rooms")
models to aggregate their items, but categories have a different nature: they are not pre-existing items coming from other sources.
I wish we could simply use the ListView.section
properties, but these are impossible to collapse by design (the section item stops existing if it has 0 "children") and buggy (gets out of bounds for some reason when filtering rooms and only one or two match is left).
from mirage.
An alternative (maybe easier to implement) way to implement this would be to allow hiding rooms from the list based on tags. i.e. have a way to show only rooms with a tag or hide rooms with a tag.
from mirage.
Related Issues (20)
- Make it possible to change room image from Mirage
- [Bug] Mirage stuck on loading screen HOT 24
- UnicodeEncodeError: 'ascii' codec can't encode character '\xfc'
- Make notification settings more understandable
- Parantheses at end of URL fails to be recognized as part of URL
- Mac OSX: Clicking on read receipt opens dialog HOT 2
- Python 3.10: AttributeError: module 'collections' has no attribute 'Mapping' HOT 7
- Mirage is Broken on Alpine/PostmarketOS: gives an infinite spinning wheel on startup HOT 4
- SSO login should work for homeservers that don't have password login disabled HOT 1
- Getting verified by other clients (Element, nheko,...) HOT 3
- Could not initialize GLX HOT 1
- Startup Crash FreeBSD HOT 3
- Add option to start the application minimized HOT 2
- Flatpak: The KDE 5.14 runtime is no longer supported and does not receive security updates. HOT 1
- Cannot import keys from Element - Passphrase not recognized HOT 1
- clipboard images wont send on arch linux
- Traceback (most recent call last): File "qrc:/src/backend/matrix_client.py", line 399, in _start Problem HOT 4
- Unable to install python-mistune1 on Manjaro HOT 2
- lol it ded HOT 2
- Warnings and errors on Debian make application unusable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirage.