Commit graph

346 commits

Author SHA1 Message Date
John Preston
3b69ec499c Allow querying manual rounding radius of RpWindow. 2023-02-17 12:10:00 +04:00
John Preston
1b9b173964 Support spoilers in FlatLabel. 2023-02-07 20:05:34 +04:00
John Preston
98fa93787a Use new dropdown arrow everywhere. 2023-02-03 20:46:55 +04:00
John Preston
6c01a81900 Allow opening popup menu shifted to the cursor. 2023-02-03 19:31:57 +04:00
23rd
5535a3fe57 Removed unused keys from style files. 2023-01-31 19:04:28 +03:00
23rd
35cc61cb48 Added ability to finish animation of toggle in SettingsButton. 2023-01-31 18:32:02 +03:00
John Preston
43e9128014 Report animate phases from PopupMenu. 2023-01-25 11:22:56 +04:00
John Preston
41ee2fb0f0 Use QFontMetricsF and ceil() the width() results. 2023-01-24 12:10:48 +04:00
23rd
c006f8c304 Moved out styles of ripples with shadowFg color to single place. 2023-01-23 09:28:16 +03:00
John Preston
77cd7f642c Add QtMath #include for M_SQRT2. 2023-01-21 21:12:31 +04:00
23rd
28d01d023b Replaced multiple static constants for square root of 2 with Qt define. 2023-01-21 19:34:26 +03:00
John Preston
6e3cc8c769 Fix child geometry for mega-rich popup menus. 2023-01-19 12:32:24 +04:00
John Preston
a113e50050 Separate ClickHandler::url from dragText. 2023-01-12 11:23:02 +04:00
John Preston
3cb645f507 Allow fully custom QImage shadows. 2023-01-06 17:05:24 +04:00
John Preston
7882604a29 Fix checkbox text width counting. 2023-01-03 11:06:05 +04:00
23rd
b178a5d15f Fixed color of text when IconButtonWithText is over. 2022-12-16 00:45:26 +03:00
John Preston
4befce5a29 Fix colored custom emoji in field. 2022-12-15 19:10:35 +04:00
John Preston
4ec3aced2e Support colored emoji more widely. 2022-12-15 17:24:36 +04:00
23rd
49d9a020a3 Added access to toggle rect for inheritors of Ui::SettingsButton. 2022-12-12 18:16:06 +03:00
23rd
ff821bc3d7 Changed default behavior to trim last separator in popup menu. 2022-12-03 17:14:30 +03:00
23rd
6c345d2076 Added ability to fill default context menu for FlatLabel from external. 2022-11-29 15:09:50 +03:00
23rd
6d7cb504ee Fixed ability of manual resizing of popup menu on macOS. 2022-11-29 14:10:50 +03:00
John Preston
0937ac0ad0 Allow custom context menus on labels. 2022-11-29 13:41:12 +04:00
John Preston
c3616927eb Add CreateAddActionCallback for non-owned menu. 2022-11-01 19:28:06 +04:00
John Preston
865056eec8 Allow locked toggles in SettingsButton. 2022-10-25 17:50:18 +04:00
John Preston
4ba3000a28 Get rid of FlatInput class. 2022-10-20 17:41:57 +04:00
John Preston
9ab11ccb36 Add full-text-width accessor for SettingsButton. 2022-10-14 11:59:17 +04:00
John Preston
89ae115a87 Add customized rounded ripple mask generators. 2022-10-03 15:10:49 +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
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
John Preston
4ff5bc5773 Provide correct colors for spoiler selection. 2022-09-17 01:59:01 +04:00
John Preston
73b6bc5e13 Implement animated spoilers. 2022-09-17 00:22:08 +04:00
John Preston
4ec399f169 Simplify labels with custom click handlers. 2022-09-06 11:20:23 +04:00
John Preston
f420e302d7 Support external menu content without enabled compositing. 2022-09-02 16:55:12 +04:00
John Preston
a5766cb1f6 Allow inserting actions in the middle of Menu. 2022-08-31 17:50:54 +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
John Preston
01c4ba869a Allow requesting low-quality scaling of custom emoji. 2022-08-23 17:46:56 +03:00
John Preston
eed9293c80 Add general RoundAreaWithShadow helper. 2022-08-18 17:30:59 +03:00
John Preston
a096628b4c Report PopupMenu appearing state. 2022-08-18 10:22:55 +03:00
John Preston
a76cdf7edf Allow arbitrary paddings around PopupMenu. 2022-08-17 21:03:06 +03:00
John Preston
2f5d5e0e79 Don't allow custom emoji pseudo-links in EditLink. 2022-08-15 18:40:24 +03:00
John Preston
fbd82ff92b Simplify CustomEmojiId. 2022-08-15 13:12:41 +03:00
Ilya Fedin
6732aa70e9 Fix endless hiding state without compositing 2022-08-09 09:39:18 +04:00
Ilya Fedin
f5cdf4bdb8 Provide menu shadow size to the system 2022-08-08 09:14:04 +04:00
John Preston
9b5c58f92f Allow SeparatePanel not to join all spaces. 2022-08-04 19:33:04 +03:00
John Preston
dcb4a33eef Allow changing SeparatePanel title height. 2022-08-04 18:25:45 +03:00
John Preston
9b0f4df007 Allow different style for child PopupMenu. 2022-07-27 13:48:32 +03:00