miruka
41bc082044
PushRuleSettingsPopup: disable save if no rule ID
2021-03-03 17:14:56 -04:00
miruka
e0b7974904
Mention event content rule can use a glob pattern
2021-03-03 17:14:56 -04:00
miruka
c18ea2704b
PushRuleSettingsPopup: spinner while saving/rming
2021-03-03 17:14:56 -04:00
miruka
bc0646ef90
Better indicate when a pushrule is disabled
2021-03-03 17:14:56 -04:00
miruka
9c56e78164
PushRuleSettingsPopup: highlight action precision
2021-03-03 17:14:56 -04:00
miruka
13558fd61c
Popups: make key words colored instead of italic
...
The room name in room forget/leave/invite popups, the exception type in
the unexpected exception popup
2021-03-03 17:14:56 -04:00
miruka
bd91b4ca26
Terminology fix: "invite members" → "invite users"
...
What we're inviting to a room is users that aren't members yet
2021-03-03 17:14:56 -04:00
miruka
41bce03b92
Push rule popup: respect custom sound action SFX
2021-03-03 17:14:56 -04:00
miruka
4306098692
Add actions to push rule settings popup
2021-03-03 17:14:56 -04:00
miruka
f466fe9f08
Implement adding new custom push rules
2021-03-03 17:14:56 -04:00
miruka
5b296ed6be
Implement adding/removing general rule conditions
2021-03-03 17:14:56 -04:00
miruka
64b8ee03e3
Add some missing copyright/license headers
2021-03-03 17:14:56 -04:00
miruka
8c4e5deb66
Implement removing push rules
2021-03-03 17:14:56 -04:00
miruka
765ce46aeb
Add popup to edit push rules
2021-03-03 17:14:56 -04:00
miruka
86f0a8a6a0
Add warning popup when old settings.json detected
2021-03-03 17:14:55 -04:00
miruka
426faa2673
Improve RedactPopup multi-sender warning
...
Give reason why we can't delete all the selected messages when
selection contains a mix of own and other user messages and we don't
permission to remove them.
2021-03-03 17:14:55 -04:00
miruka
eed2cc4818
Remove double blank lines from QML files
2021-03-03 17:14:55 -04:00
miruka
db12036372
Use new PCN format for settings config file
2021-03-03 17:12:09 -04:00
miruka
ee1091b4dc
Don't pass Python Future objects to QML
...
Returning a Future doesn't work on Windows for some reason
(https://github.com/thp/pyotherside/issues/116 ).
Instead of using these objects from QML to cancel running coroutines,
call a Python QMLBridge function that takes a coroutine UUID and will
take care of the cancelling.
2021-03-03 17:12:08 -04:00
miruka
1df7cb8014
Add copyright header to source code files
...
Copyright notice as per
https://reuse.software/spec/#format-of-copyright-notices
Fixes #134
2021-03-03 17:12:08 -04:00
miruka
60a57db33e
Fix QML Connections-using code for Qt 5.12
2020-09-16 08:29:07 -04:00
miruka
6df9647b59
Faster switching of rooms from different accounts
...
Use a single [userId, roomId] property for the chat page.
This gets read of the intermediate state where the userId property has
been updated but the roomId one not yet, which led to the page unloading
and reloading itself until both were properly set.
Side-effect: when starting Mirage after this commit for the first time,
the last saved page will not load and user must click a room or
other page manually.
2020-09-13 16:05:15 -04:00
miruka
89f8cf25d3
Show login page if current was for logged out acc.
2020-09-04 14:05:07 -04:00
miruka
7b6478f514
Correctly handle account with invalid access token
...
Show a popup saying the session was signed out and cleanup
the models data, instead of spamming the users with
never-ending errors.
2020-09-04 11:25:29 -04:00
miruka
601b42a503
Rename PageLoader.showPage() → PageLoader.show()
2020-09-03 17:33:19 -04:00
miruka
e947fe7695
Refactor PageLoader show methods
...
Also lets the chat page recycling work with showPrevious() (ctrl+tab)
2020-09-02 15:19:27 -04:00
miruka
eebe215a62
Fix image viewer size 0x0 while loading & for GIFs
2020-09-02 11:53:44 -04:00
miruka
107eddaa5c
Use HTextArea.RichText, not Qt.RichText
2020-09-01 13:48:15 -04:00
miruka
0d2be820fe
Allow "replying" to an event with a file
...
Send a pseudo-reply consisting of two messages: a `m.text` which is just
a reply with an empty body, then the file event itself.
This is a workaround to the restriction imposed by the Matrix API,
which prevents us from simply attaching a reply to a media event:
https://matrix.org/docs/spec/client_server/latest#rich-replies
2020-08-24 10:17:04 -04:00
miruka
df3f1fb645
Remove all Backend "get_any_client"-using methods
...
thumbnail() and download() were remaining.
Use a direct and carefully chosen MatrixClient's methods instead to
avoid problems mentioned in the previous commit 7502c1.
2020-08-24 09:54:43 -04:00
miruka
2ccb28fa49
Box/popups: ignore enter press on disabled buttons
2020-08-21 05:08:12 -04:00
miruka
c813e92ac7
Move hideErrorTypes & showError() to PythonBridge
2020-08-03 01:19:08 -04:00
miruka
040e966d27
Remove utils.sendFile(), useless wrapper
2020-08-03 01:05:19 -04:00
miruka
5dbcf9c825
Image viewer: fix info bar text vertical alignment
2020-07-22 01:31:06 -04:00
miruka
aba29a198d
Increase image viewer bar opacity
...
Make it easier to read on bright images
2020-07-22 01:22:42 -04:00
miruka
e917e29913
Image viewer: respect autoHideOSDAfterMsec setting
2020-07-22 00:00:53 -04:00
miruka
c1f9416f1a
Clipboard change → force image preview update
2020-07-21 23:47:41 -04:00
miruka
a402c7657a
Don't render invisible thumbnail spinner
2020-07-21 19:50:49 -04:00
miruka
377b11220e
Auto-hide image viewer bars when needed
2020-07-21 19:42:57 -04:00
miruka
fdc06d81fd
Add info bar to image viewer
2020-07-21 17:34:45 -04:00
miruka
89e6931d9d
Fix ViewerButtons implicit width calculation
2020-07-20 21:39:52 -04:00
miruka
acd02a67a0
Add image viewer keybinds
2020-07-20 21:34:00 -04:00
miruka
e5b102c761
Hide HImage pause button in image viewer
...
Have only the one from the viewer's button bar
2020-07-20 19:39:32 -04:00
miruka
a8e1ece1ea
Add buttons to image viewer
2020-07-20 19:39:31 -04:00
miruka
b803c34338
Make middle click also work outside of image
2020-07-20 14:30:00 -04:00
miruka
66a44b5251
Split ImageViewer components
2020-07-20 14:27:52 -04:00
miruka
9444225afa
Remove pressDelay from image viewer flickable
...
Seems to create a bug where the user can accidentally scroll the
timeline behind the popup instead of the image viewer flickable itself
2020-07-20 13:24:03 -04:00
miruka
066102e64d
fullscreen: alt. scale mode only if image < window
2020-07-19 20:29:25 -04:00
miruka
06c2a24c9e
Image viewer: separate fullscreen functions
2020-07-19 20:27:08 -04:00
miruka
48014cb8e5
Allow right clicking outside of image to close it
2020-07-19 20:22:36 -04:00