Commit graph

379 commits

Author SHA1 Message Date
John Preston
fd1752a5c2 Improve overscroll handling. 2023-07-14 16:08:47 +04:00
John Preston
b6cb6cb770 Ignore wrong wheel direction in ElasticScroll. 2023-07-12 23:01:19 +04:00
John Preston
8db6dcf125 Workaround Wayland popup menu bug.
When hiding a child popup first the app receives ApplicationDeactivate
event and in a short time (a couple of ms) ApplicationActivate.

But the first event hides all popups, so the parent popup gets closed too.

Delay handling of ApplicationDeactivate event in this specific case.
2023-07-12 22:05:12 +04:00
John Preston
d04a38e15d Try different overscroll function. 2023-07-12 12:20:54 +04:00
John Preston
6af98c0802 Process touch through wheel events. 2023-07-11 21:40:50 +04:00
John Preston
427fc4c8f7 Fix painting glitch in elastic scroll. 2023-07-11 19:18:20 +04:00
John Preston
763b3a37c3 Allow to change overscroll from outside. 2023-07-11 12:21:33 +04:00
John Preston
80308cea4f Support non-zero default overscroll amounts. 2023-07-11 11:13:17 +04:00
John Preston
081d1725af Fix scrolling by scrollbar drag. 2023-07-10 11:06:56 +04:00
John Preston
7135f3ed87 First attempt to implement Ui::ElasticScroll. 2023-07-07 22:49:11 +04:00
John Preston
d431d803c8 Allow a more customized round checkbox. 2023-07-05 12:55:05 +04:00
John Preston
c3aab1bd14 Allow disabling spoilers / emoji in FlatLabel. 2023-06-30 21:12:21 +04:00
John Preston
67dc933d72 Move InfoTopBar to the child project styles. 2023-06-30 15:24:37 +04:00
John Preston
a6d472ee68 Ignore touchpad touch events, on macOS unreliable. 2023-06-28 15:04:56 +04:00
John Preston
6fe9e08386 Allow custom touch event processing in scroll area. 2023-06-27 21:25:16 +04:00
John Preston
8908c9b5c0 Allow custom wheel event processing in ScrollArea. 2023-06-27 19:40:11 +04:00
John Preston
83cab52cd6 Add access to scrollTop[Value] of PopupMenu. 2023-06-01 19:51:28 +04:00
John Preston
57143bfae1 Allow custom rounding radius for PopupMenu. 2023-06-01 19:51:09 +04:00
Ilya Fedin
784dedac4d Send mouse release event after startSystemMove/startSystemResize 2023-06-01 19:49:19 +04:00
John Preston
a7d5031889 I hope this fixes some focus problems. 2023-05-24 21:01:23 +04:00
John Preston
facdf5a2d8 Fix build with Xcode. 2023-05-19 22:01:59 +04:00
John Preston
a7b6b97bd7 Improve and unify Ui::Show interface. 2023-05-19 20:47:23 +04:00
Ilya Fedin
be0067a8c7 Switch Wayland integration to the new type safe Qt API
This also makes it possible to get a more right seat/serial pair
2023-05-15 12:29:01 +04:00
John Preston
b850852221 Simplify working with Ui::Show and toasts. 2023-05-03 22:59:33 +04:00
John Preston
bfdd116000 Handle emoji myself in custom macOS title. 2023-04-26 22:50:22 +04:00
John Preston
37531086ec Drop all formatting by default in InputField. 2023-04-24 21:25:20 +04:00
John Preston
56945859e3 Try allowing correct   handling. 2023-04-20 13:36:37 +04:00
John Preston
aa5cc61b6b Allow DividerLabel to wrap any widget, not just FlatLabel. 2023-04-04 17:06:52 +04:00
23rd
db4419eb30 Switched preferred width of multiline menu item to fit icon height. 2023-03-22 21:42:16 +03:00
John Preston
3185e6cd55 Fix possible stack overflow. 2023-03-17 20:46:09 +04:00
John Preston
62a62d1fb5 Move MediaPlayerButton style outside of lib_ui. 2023-03-14 17:30:27 +04:00
John Preston
849a840503 Implement BoxShow as a wrapper around long-living *Show. 2023-03-10 18:40:49 +04:00
23rd
2996fb7030 Moved out menu item with multiline text to separated file. 2023-03-01 21:13:53 +03:00
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