Commit Graph

27 Commits

Author SHA1 Message Date
miruka
5ab588f40c Prevent RoomEventDelegate startup position glitch 2019-05-17 14:24:03 -04:00
miruka
c67e1bfc79 Fix hiding members pane not giving space to chat 2019-05-15 02:25:40 -04:00
miruka
2a687f8eee Standardize animation durations 2019-05-14 15:15:10 -04:00
miruka
20f8e83a01 Fix RoomSidePane hide animation being too quick 2019-05-14 15:07:43 -04:00
miruka
f2c84d5260 Snap to buttons width → restores auto-sizing 2019-05-13 12:37:35 -04:00
miruka
645aa73183 Allow quick hiding/expanding of RoomSidePane
by clicking the button corresponding to the currently active view
2019-05-13 12:02:52 -04:00
miruka
125a70bea6 Make RoomSidePane follow buttons size again
Also add selected button color
2019-05-13 10:52:26 -04:00
miruka
fa12d3f4ec Adjust RoomSidePane autosize max width
Set it to the RoomHeader's buttons implicitWidth
2019-05-12 19:03:51 -04:00
miruka
b35e635be4 RoomHeader buttons and RoomSidePane size/collapse
RoomSidePane's size and collapsing is not bound anymore to the
RoomHeader buttons.
2019-05-12 19:01:02 -04:00
miruka
46d5704eb6 RoomSidePane: respect user manual resizing 2019-05-12 16:01:18 -04:00
miruka
f9a5902545 Improve SidePane auto-sizing and appearance 2019-05-12 15:57:18 -04:00
miruka
97c1dda4ba Add a basic member list pane to rooms 2019-05-12 13:17:42 -04:00
miruka
8f965a3e72 Remove blur effect, causes too much trouble 2019-05-11 17:51:49 -04:00
miruka
bbc4c15ad3 Rework Backend, models and items organization 2019-05-11 15:52:56 -04:00
miruka
7b3b886f10 Show banner when unverified devices in room
The banner replaces the SendBox, to prevent sending messages when nio
will raise an OlmTrustError.
2019-05-08 13:45:25 -04:00
miruka
d6714141e0 Update chatPage properly when roomCategory changes 2019-05-06 14:06:28 -04:00
miruka
52d538e995 Merge Backend and QMLModels
Backend.models.accounts → Backend.accounts
Backend.models.roomEvents → Backend.roomEvents
2019-05-02 14:31:47 -04:00
miruka
047225fded Rework models hierarchy, room categories models 2019-05-02 14:20:21 -04:00
miruka
3299aefaf1 Fix Engine.app_dir and leftover Backend.pdb()
Use __file__ instead of sys.argv[0] to determine the current script's
path, which works correctly when importing the package from another dir
2019-05-01 01:32:06 -04:00
miruka
12ce4cdb30 Rework startup and Application-Engine relation
- Application and Engine will be started by __init__.run() independently
- Exiting app will disconnect clients
- Signals like SIGINT (Ctrl-C) are now handled for proper exit
2019-05-01 01:23:38 -04:00
miruka
012e89f6cb Improved ListModel and ListItem
- New ListItem implemented using a metaclass, which makes defining new
  ListItem subclasses much cleaner and shorter

- ListModel functions taking an index now accept either an int
  (list index) or str (value of a main key)

- getWhere() gone, simply use get(a_main_key_value) now

- updateOrAppendWhere replaced by update()/upsert()
2019-04-29 23:51:37 -04:00
miruka
67c3ef5906 Disable QML cache, responsible of multiple bugs 2019-04-28 20:37:11 -04:00
miruka
ef60a1129f Clean up QML imports 2019-04-28 15:36:43 -04:00
miruka
d0089df051 Use Base components without namespace prefix 2019-04-28 15:18:36 -04:00
miruka
b8901dfc5b Use H*Layout totalSpacing wherever possible 2019-04-28 14:54:01 -04:00
miruka
7004b4ea3f Reorganize Chat component files
- MessageList renamed to RoomEventList
- MessageDelegate renamed to RoomEventDelegate
- Banner and RoomEventList get their own folders
2019-04-28 14:34:29 -04:00
miruka
99ab6a817a Update/refactor Chat components and banner 2019-04-28 14:20:30 -04:00