Commit graph

1142 commits

Author SHA1 Message Date
John Preston
eafd7dc818 Allow spoilers and custom emoji in toasts. 2022-10-04 09:13:57 +04:00
John Preston
89ae115a87 Add customized rounded ripple mask generators. 2022-10-03 15:10:49 +04:00
John Preston
2c2a7887e6 Add Images::EllipseMask method to the interface. 2022-10-03 11:34:26 +04:00
John Preston
cec09b0260 Support complex-rounded image spoilers. 2022-09-30 23:03:06 +04:00
John Preston
f49ec866c1 Allow rounding with different radius per corner. 2022-09-30 18:42:14 +04:00
John Preston
80445f2bd3 Move some message styles from basic.style. 2022-09-30 11:19:59 +04:00
John Preston
d5ec7cc296 Fix possible stack overflow crash on Windows. 2022-09-28 15:47:42 +04:00
John Preston
14cc3ff52b Set some layers crash annotations. 2022-09-25 16:14:13 +04:00
John Preston
1ceaa0bbcf Fix crash in empty text state resolving. 2022-09-23 20:45:39 +04:00
John Preston
0f77143905 Fix spoiler open link after String moving. 2022-09-23 11:59:25 +04:00
John Preston
d57bf79ce0 Fix extendd menu expanding on Retina screens. 2022-09-22 12:31:27 +04:00
John Preston
06f3c837f6 Add TextForMimeData::WithExpandedLinks method. 2022-09-21 18:54:37 +04:00
John Preston
1c5fd7e277 Add some more assertions to debug a crash. 2022-09-20 12:48:27 +04:00
John Preston
18580e46a1 Handle touch events in PopupMenu. 2022-09-19 17:28:40 +04:00
John Preston
e72b521618 An attempt to improve input fields touch-screen support. 2022-09-19 14:18:59 +04:00
Ilya Fedin
13e59e27eb Remove unnecessary Q_OS_UNIX && !Q_OS_MAC check
Thanks to cmake_dependent_option
2022-09-19 12:39:22 +04:00
Ilya Fedin
367859c684 Fix unused variable warning 2022-09-19 12:39:22 +04:00
Ilya Fedin
efdc82c823 Add Cascadia Code as preferred monospace font
And switch macOS to system monospace font as Cascadia Code is more likely to be installed by the user
2022-09-19 12:39:22 +04:00
John Preston
1b429325e4 Merge remote-tracking branch 'origin/master' into spoilers 2022-09-18 16:51:38 +04:00
John Preston
bc76e4f601 Optimize spoiler revealing. 2022-09-18 16:51:29 +04:00
John Preston
a60fe582ad Render correct spoiler selections. 2022-09-18 15:17:19 +04:00
Ilya Fedin
2dcad89d3c Call xcb_set_input_focus rather than setting X11BypassWindowManagerHint
Setting the hint has some side effects, unfortunately...
2022-09-17 18:40:42 +04:00
John Preston
4ff5bc5773 Provide correct colors for spoiler selection. 2022-09-17 01:59:01 +04:00
John Preston
bd7098ef42 Fix new spoilers with elided text. 2022-09-17 01:22:22 +04:00
John Preston
73b6bc5e13 Implement animated spoilers. 2022-09-17 00:22:08 +04:00
Ilya Fedin
f82162f05a Add missing external_xxhash dependency 2022-09-15 07:27:27 +04:00
John Preston
38875a85be Fix build with GCC. 2022-09-10 11:04:08 +04:00
John Preston
e16cff487d Pause spoilers when animations are disabled. 2022-09-09 21:03:33 +04:00
John Preston
a7d90843a3 Implement partially-rounded rect with a SpoilerMess frame. 2022-09-09 20:41:47 +04:00
John Preston
0edb817ccd Make moving particles in the SpoilerMess. 2022-09-09 15:42:38 +04:00
John Preston
ff85d2226c Provide simple spoiler animations manager. 2022-09-09 12:41:07 +04:00
John Preston
c732bd874f Cache default SpoilerMess on disk. 2022-09-09 11:51:08 +04:00
John Preston
00a668c3f3 Initial SpoilerMess implementation. 2022-09-08 13:14:19 +04:00
Ilya Fedin
4d2fc25d03 Fix handle capture in ActivateWindowDelayed 2022-09-07 16:13:59 +04:00
John Preston
12b8b3804c Add Ui::MapFrom for optimized mapFromGlobal(mapToGlobal(..)). 2022-09-07 12:51:18 +04:00
Ilya Fedin
d7c2185f5c Force ActivateWindowDelayed to use xcb_set_input_focus on X11 when activating a parent
There's logic in Qt that uses xcb_set_input_focus to focus parent windows as some X11 window managers ignore such focus requests leaving the parent activated, but without input focus. By the time delayed activation happens, current focus window may no more exist and the logic in Qt won't work. X11BypassWindowManagerHint says Qt it should use xcb_set_input_focus on X11 that asks X11 directly to set input focus to that window.
2022-09-07 07:51:38 +04:00
John Preston
4ec399f169 Simplify labels with custom click handlers. 2022-09-06 11:20:23 +04:00
John Preston
2e63c6103e Allow strictly blurring images with alpha. 2022-09-05 18:55:17 +04:00
Ilya Fedin
95dd2c8465 Fix various spaces on end of lines 2022-09-02 19:26:53 +04:00
Ilya Fedin
f6e875c748 Use new Qt 6.4 API for window extents on Wayland 2022-09-02 19:26:53 +04:00
Ilya Fedin
47268d21ce Get wayland serial with new Qt 6.4 API 2022-09-02 19:26:53 +04:00
John Preston
f420e302d7 Support external menu content without enabled compositing. 2022-09-02 16:55:12 +04:00
John Preston
746eb80300 Allow interface scale of 50%. 2022-09-01 11:23:16 +04:00
John Preston
a5766cb1f6 Allow inserting actions in the middle of Menu. 2022-08-31 17:50:54 +04:00
John Preston
4d45396174 Add custom-emoji wrapper with limited loops count. 2022-08-31 17:50:35 +04:00
John Preston
51657b3c8a Support colored custom emoji. 2022-08-31 12:27:50 +04:00
John Preston
6dc6309269 Allow querying in-default-state from custom emoji. 2022-08-29 17:27:32 +04:00
John Preston
3287bf45c6 Add FrameGenerator-based CustomEmoji and AnimatedIcon. 2022-08-29 16:33:12 +04:00
John Preston
f876d15eed Add some helper wrappers for custom emoji. 2022-08-26 23:51:58 +04:00
23rd
29ce965e61 Added ability to pass context with marked text to Ui::FlatLabel. 2022-08-25 20:39:15 +03:00