2192 Commits

Author SHA1 Message Date
Ilya Fedin cf61dedc79 Simplify GNotification actions 2025-02-18 21:21:37 +04:00
Nikolai Nechaev 03af444735 Notifications: stop fading in before starting to fade out
When a notification is to start hiding (i.e., fade out), it is supposed
to start fading out from the maximum opacity, even if it was not fully
restored (which only happens if the cursor passed through the
notification too quickly). Thus, call `.stop()` for the previous
animation, if any, before `.start()`ing the next animation.
2025-02-14 20:17:02 +04:00
Nikolai Nechaev 7f6221b409 Manager::startAllHiding: don't treat fading in notifications specially
Previously, `Window::Notifications::Default::Manager` would not start
hiding notifications that are fading in when other notifications should
hide. This would lead to some notifications never hiding, e.g., when the
cursor passes through the notification too quickly and there was not
enough time for the notification to fade in completely.

Also renamed `Widget::isShowing` -> `Widget::isFadingIn` for clarity.

Fixes #28811.
2025-02-14 20:17:02 +04:00
John Preston 247a070405 Prioritize last used playback timestamp. 2025-02-12 17:24:24 +04:00
John Preston 6a415cf232 Support on-hover autoplay and position save. 2025-02-12 17:24:24 +04:00
John Preston 2077f51084 Open video from ?t= links. 2025-02-12 17:24:24 +04:00
John Preston 141a291523 Start video from required timestamp. 2025-02-12 17:24:24 +04:00
23rd 0c4bca312e Removed ability to set wallpaper to chat with require-premium user. 2025-02-10 22:52:25 +03:00
John Preston c82fbefcfc Don't show Send a Gift to service users. 2025-02-10 10:46:48 +04:00
23rd 97c4e79e96 Improved title for separated windows with shared media. 2025-01-30 13:59:53 +03:00
23rd 7442ea7a16 Added ability to open single typed shared media in window for topics. 2025-01-30 12:04:44 +03:00
23rd d6ba6ac41e Added initial ability to open single typed shared media in window. 2025-01-30 11:01:04 +03:00
Ilya Fedin 8534cf3756 Extract system dark mode from QPalette 2025-01-27 15:01:11 +01:00
Ilya Fedin 39b90092ff Revert "Fallback to portal on Linux if QStyleHints::colorScheme is unknown"
This reverts commit a88f48cd93.
2025-01-27 15:01:11 +01:00
John Preston 8287d717f8 Fix notifications without sounds on macOS. 2025-01-26 11:34:32 +04:00
Ilya Fedin e1f71baed6 Move native notifications option check logic to cross platform code 2025-01-25 18:33:13 +04:00
John Preston 22ec7a6d75 Fix notification sounds on macOS. 2025-01-24 21:08:54 +04:00
John Preston dfd07a4f4f Count all topics as one chat for outer badges. 2025-01-24 12:02:28 +04:00
John Preston aa0c56876c Use sound in native notifications on macOS. 2025-01-22 22:13:28 +04:00
John Preston d135151477 Use native sound support in macOS notifications. 2025-01-22 22:13:28 +04:00
John Preston a174119877 Update API scheme on layer 198. 2025-01-22 22:13:27 +04:00
John Preston 530e2a1feb Support background-run options on Linux. 2025-01-22 22:13:27 +04:00
John Preston 6d7abd1718 Don't use double-badge in profile, use two. 2025-01-22 22:13:27 +04:00
John Preston 2fd174ab9c Partially implement sending gifts to channels. 2025-01-22 22:13:26 +04:00
John Preston d0132c0f7b Update API scheme to layer 198. 2025-01-22 22:13:26 +04:00
23rd d72c15e9d3 Added ability to set wallpaper for bots. 2025-01-17 22:08:48 +03:00
23rd 7084cf9526 Removed ability to set wallpaper for deleted accounts. 2025-01-17 22:08:48 +03:00
23rd 4a22e76bdb Fixed opening of chat export progress from history peer menu. 2025-01-14 20:15:11 +03:00
John Preston dc9fa9ccf2 Add boost group item in topic groups. 2025-01-09 22:26:22 +04:00
John Preston 5f10c1875c Ask for boosts to unlock group restrictions. 2025-01-06 21:42:23 +04:00
Nikolai Nechaev 7fcd84d08e Fix handling of notification disappearing under cursor
Previously, notifications disappearing under cursor (e.g., because closed
manually or open from another device) did not notify the manager
properly, as the leaveEventHook was not triggered. This could lead to
notifications staying around when not supposed to (see #28813).

This commit fixes that by explicitly notifying manager when the
notification widget disappears under the cursor.

Fixes #28813.
2025-01-06 09:51:09 +04:00
John Preston 06341efe0d Allow disabling animations in folder emoji. 2024-12-31 15:41:13 +04:00
John Preston d874829b06 Start animating emoji in filter titles. 2024-12-31 13:12:15 +04:00
John Preston c1528f532e Update API scheme to layer 196. 2024-12-25 11:09:35 +04:00
23rd a74ee911b3 Removed chats filters strip from forward box while search. 2024-12-23 11:02:09 +04:00
23rd 183a9139f9 Moved out ability to mark as read all chats from hidden shortcut. 2024-12-20 19:33:06 +03:00
23rd 80a1e6ecf3 Fixed ability to mark as read all chats for wrong account. 2024-12-20 19:33:06 +03:00
John Preston f94fd3118b Add "My Profile" instead of "My Stories". 2024-12-17 21:13:29 +04:00
John Preston e92270a9ab Add "View Discussion" button to third column. 2024-12-17 21:13:29 +04:00
John Preston 3957fea5e4 Send start in bots auto in existing bot chats. 2024-12-17 21:13:29 +04:00
John Preston ad6272bfe5 Show correct error on stopped starref. 2024-12-04 13:51:19 +04:00
John Preston 89058c63c8 Check appconfig start ref prefixes. 2024-12-04 13:51:19 +04:00
John Preston 62d2346471 Initial starref programs list implementation. 2024-12-04 13:51:19 +04:00
John Preston 51ddfbc340 Update API scheme to layer 195. 2024-12-04 13:51:18 +04:00
23rd 721877e10a Removed redundant special tab mode from PeerListBox. 2024-12-04 11:48:07 +03:00
23rd a9e95a128f Fixed display of filters tabs on some cases of first activating. 2024-12-04 11:48:07 +03:00
23rd a405794a03 Allowed to display of hundreds digit in unread badge of filters. 2024-11-27 12:25:18 +03:00
23rd 5934614edb Fixed counting of unread topics from unread state in filters. 2024-11-27 11:27:59 +03:00
23rd 14cc7789d9 Allowed to choose filters from any profile of peers in chats list. 2024-11-27 11:27:59 +03:00
23rd f888008dc1 Removed counting of unread topics from unread state in filters. 2024-11-25 17:45:56 +03:00