Commit Graph

2534 Commits

Author SHA1 Message Date
miruka
045bce5f9c Remove model item __lt__ docstrings
Duplicate efforts and get outdated when the code better explains
how items are sorted
2021-03-03 17:14:56 -04:00
miruka
d31ee9cd67 Shorten lexical vs by activity room sorting code 2021-03-03 17:14:56 -04:00
miruka
81c460cbaf Revert "Fix the one-line events combining"
This reverts commit 39f159f0a3.

Causes problems when message delegates are reordered, with the
transition animations randomly stopping in the middle and leaving
delegates at odd positions.
2021-03-03 17:14:56 -04:00
miruka
32200f256b Update nio requirement to 0.17.0-0.18.0 2021-03-03 17:14:56 -04:00
miruka
f0d7757f0c Catch simpleaudio playback errors
Because of course sound isn't just gonna work on linux and
especially flatpak. Make sure to not spawn an error popup every time
we try to play a notification. Maybe use mpv in the future for
SFX playback (when we'll have a media player implemented),
since it has support for all these backends out of the box.
2021-03-03 17:14:56 -04:00
miruka
cfce4e1ddc Pre070SettingsDetectedPopup: point to master docs 2021-03-03 17:14:56 -04:00
miruka
4ace03be6c Update requirements and flatpak manifest 2021-03-03 17:14:56 -04:00
miruka
c420360602 settings.py: support ~ expansion for sound path 2021-03-03 17:14:56 -04:00
miruka
86f247d5cc AppImage build.sh: update to py 3.9.1 & olm 3.2.2 2021-03-03 17:14:56 -04:00
miruka
92c49140e7 Play sound from python/ALSA instead QtMultimedia
GStreamer sucks
2021-03-03 17:14:56 -04:00
miruka
31f6e5320a Improve default notification sound
Quieter by default, shorter and without the annoying clicky noise
2021-03-03 17:14:56 -04:00
miruka
3f7bf7dd5c Update CHANGELOG.md for v0.7.0 2021-03-03 17:14:56 -04:00
miruka
ffcccd38d2 Add documentation link to settings menu
And make mirage x.y.z label no longer open the github page
2021-03-03 17:14:56 -04:00
miruka
0c5d3d05c9 THEMIND.md: mention future move to PCN format 2021-03-03 17:14:56 -04:00
miruka
f49282ff36 Bump version strings to v0.7.0 2021-03-03 17:14:56 -04:00
miruka
c25149c459 Change dev branch links in config docs to master 2021-03-03 17:14:56 -04:00
miruka
6770178a23 Stop tracking TODO.md
Constantly causes issues when working with multiple branches and
rebasing
2021-03-03 17:14:56 -04:00
miruka
1db8c66759 Hide image event name/time bubbles when kb-focused 2021-03-03 17:14:56 -04:00
miruka
376364afad PushRuleSettingsPopup: add some missing padding 2021-03-03 17:14:56 -04:00
miruka
9de4252924 PushRuleSettingsPopup: remove unused action + btn 2021-03-03 17:14:56 -04:00
miruka
c46e1eb897 PushRuleSettingsPopup: add custom sound field 2021-03-03 17:14:56 -04:00
miruka
8b53b4ae11 When replacing disabled rule, disable new rule too 2021-03-03 17:14:56 -04:00
miruka
ef1f6edf31 PushRuleSettingsPopup: handle enter to save 2021-03-03 17:14:56 -04:00
miruka
156f89aca1 Change global notif. keybinds to avoid conflicts
Change the account next/prev binds back to Alt+(Shift+)M,
make mute notif Ctrl+Alt+N, mute except higlights Ctrl+Alt+H
2021-03-03 17:14:56 -04:00
miruka
e9af47e1c7 Fix popups not being flickable by keyboard 2021-03-03 17:14:56 -04:00
miruka
e45055f48c Indicate when combo box accepts custom input 2021-03-03 17:14:56 -04:00
miruka
768a343412 Fix spinbox glitch on min/max numbers 2021-03-03 17:14:56 -04:00
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
d5f6459e54 AccountSettings: fix second tab being default 2021-03-03 17:14:56 -04:00
miruka
c18ea2704b PushRuleSettingsPopup: spinner while saving/rming 2021-03-03 17:14:56 -04:00
miruka
656092cec4 Add bottom margin to notifications page spinner 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
db24ebc082 Increase pushrules auto-save timer: 10 → 30s
10s is too short and can bother user setting their rules
with the save's visible effects
2021-03-03 17:14:56 -04:00
miruka
340c88f123 AppImage building: use Qt 5.12.9 instead of 5.12.7 2021-03-03 17:14:56 -04:00
miruka
be3d3692ef Add Qt Multimedia as dependency for sound playback 2021-03-03 17:14:56 -04:00
miruka
99325fde86 Add support for notification sound effects 2021-03-03 17:14:56 -04:00
miruka
1b0bec3470 Add options to disable HTML in notifications 2021-03-03 17:14:56 -04:00
miruka
fe92ce6730 Fix avatar/display name missing from notifications
This happened when we got a message from an account-room pair
where the full member list hadn't been loaded yet, i.e. the user had
never focused the room since starting the client
2021-03-03 17:14:56 -04:00
miruka
26a68acefd Rename Notification... components for consistency 2021-03-03 17:14:56 -04:00
miruka
e5e78dcefa Rename notification bell icons for consistency 2021-03-03 17:14:56 -04:00
miruka
80c7b07d10 Add bell icons back to global notification menu 2021-03-03 17:14:56 -04:00
miruka
0f2023b924 Customize check mark for checkable menu items 2021-03-03 17:14:56 -04:00
miruka
7604b0f96a Customize submenu arrow for HMenuItem 2021-03-03 17:14:56 -04:00
miruka
6fc0b6725c Remove unused combo-box-menu icon 2021-03-03 17:14:56 -04:00
miruka
d7fbe8c222 Add keybinds to control global notifications
Alt+M: toggle "mute all notifications except highlights"
Alt+Shift+M: toggle "mute all notifications"

The Keys.Rooms.(previous/next)_highlight keybinds, previously bound to
Alt+(Shift+)M (stood for "mention") now defaults to Alt+(Shift+)H.

The NotificationLevel enum and notificationLevel property had to be
moved from Window to UI due to QML having a global "Window" object that
causes conflicts when trying to access the enum as
"Window.NotificationLevel" from UI.qml.
2021-03-03 17:14:56 -04:00
miruka
93ced92cda Add Notifications.start_level setting 2021-03-03 17:14:56 -04:00
miruka
9c56e78164 PushRuleSettingsPopup: highlight action precision 2021-03-03 17:14:56 -04:00
miruka
027454c6e0 Improve global notifications menu
- More descriptive menu entries
- Indicate the current setting in the menu with a checkmark
- Remove menu button tooltip that gets in the way
- Remove unused icon
2021-03-03 17:14:56 -04:00
miruka
0017a1562c Room context menu: notification setting checkmark
Indicate which notification override setting is currently active
2021-03-03 17:14:56 -04:00