Commit graph

1160 commits

Author SHA1 Message Date
23rd
dfbf009904 Replaced QTimer with base::Timer in InputField. 2023-08-31 17:09:59 +03:00
23rd
6a7718ae96 Replaced Qt signals in InputField with rpl. 2023-08-31 17:09:59 +03:00
23rd
7a245fee51 Moved out InputField files to subfolder. 2023-08-31 17:09:59 +03:00
23rd
faa67d73c5 Moved out MaskedInputField to separate module. 2023-08-31 17:09:59 +03:00
23rd
2c5923dc79 Removed unused HexInput class. 2023-08-31 17:09:59 +03:00
23rd
26b72fedc7 Moved out NumberInput to separate module. 2023-08-31 17:09:59 +03:00
23rd
225380044e Moved out PasswordInput to separate module. 2023-08-31 17:09:59 +03:00
23rd
4389f17120 Removed unused InputField::commitMarkdownReplacement method. 2023-08-31 17:09:59 +03:00
John Preston
89b60c01a6 Add some phrases to UI integration. 2023-08-29 21:35:11 +04:00
Ilya Fedin
bcf88b9065 Fix window extents terminology
Extents is a synonym of size but we're setting not window size.
2023-08-29 07:47:50 +02:00
Ilya Fedin
2dd3add5b3 Move code not really depending on Wayland-specific dependencies out of WaylandIntegration 2023-08-29 07:47:50 +02:00
John Preston
bcfce982c8 Move inline image/path expanding here. 2023-08-24 18:01:55 +02:00
John Preston
552db4b24f Allow setting heightMin in ResizeFitChild. 2023-08-23 11:22:34 +02:00
John Preston
a3c52c2cfe Make box content divider smaller. 2023-08-22 11:32:52 +02:00
John Preston
a6d7e3f545 Fix possible render glitch.
In some rare cases opening main menu was leading to some
widgets showing "over" the background darkening filling.
The glitch disappeared on the next repaint, so we trigger
this repaint explicitly.

The case it was reproducing with 100% rate: in TDesktop with
disabled interface animations after showing and hiding of bot
keyboard the message input field (widget with OpaquePaintEvent)
was painted on top of the backround dark filling below main menu.
2023-08-18 18:03:35 +02:00
John Preston
b3580f7987 Use FlatLabel::textMaxWidth. 2023-08-17 13:54:01 +02:00
Ilya Fedin
632626b192 Use QEvent::registerEventType for custom event types 2023-08-16 16:27:06 +02:00
23rd
0ea27ae051 Ignored arrow keys with Ctrl modifier by scroll area. 2023-08-15 00:02:09 +03:00
23rd
70867536a4 Added util to generate path of complex rounded rect. 2023-08-14 21:15:36 +03:00
Ilya Fedin
fd55e9b71b Adapt WindowHelper::updateMargins for Windows 11 native resize 2023-08-14 12:20:27 +04:00
Ilya Fedin
cbb9e0bbde Make WindowHelper::updateMargins multi-screen DPI aware 2023-08-14 12:20:27 +04:00
Ilya Fedin
e66ad9c80c Avoid additional calculations in WindowHelper::updateMargins 2023-08-14 12:20:27 +04:00
Ilya Fedin
92cb6f6809 Remove unused variables from WindowHelper::fixMaximizedWindow 2023-08-14 12:20:27 +04:00
John Preston
18ac9868bb Use https:// scheme by default. 2023-08-11 10:22:06 +02:00
Ilya Fedin
eeb2cbc69c Use QWindow's devicePixelRatio for top resize area 2023-08-11 11:49:00 +04:00
John Preston
2631d64a5f Use smaller top resize area. 2023-08-10 22:14:48 +02:00
Ilya Fedin
4a41346a64 Use native window resize on Windows 11 2023-08-10 20:01:11 +04:00
Ilya Fedin
8e31adc0af Remove unused variable 2023-08-10 20:01:11 +04:00
John Preston
b49ee81df9 Disable OpenGL ANGLE backend.
Currently ANGLE can work through desktop OpenGL only with enabled
attribute EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE.

Qt can't work with it enabled and shows vertically flipped content.
2023-08-10 14:34:33 +02:00
John Preston
5f2e0a32b1 Improve default tabs slider design. 2023-08-09 11:47:15 +02:00
Ilya Fedin
0f25a94510 Port AppLaunchContext to cppgir 2023-08-02 17:35:15 +04:00
John Preston
7c60b03c9b Resize centered labels wide by default. 2023-08-01 19:05:34 +02:00
John Preston
ad356135e4 Improve toasts: adaptive, with a title. 2023-08-01 19:05:07 +02:00
John Preston
91d43ea4b5 Provide (almost) correct modifiers in DirectManipulation. 2023-07-26 12:00:10 +04:00
John Preston
2f0ac38228 Lock tab-focus inside a layer widget. 2023-07-25 10:44:02 +04:00
John Preston
8314fc9b3f Improve default style of important tooltip. 2023-07-24 21:40:53 +04:00
John Preston
bd1e8f7c47 Update default tooltip colors. 2023-07-24 16:59:55 +04:00
John Preston
ad852f0f4a Fix incorrect state of ElasticScroll. 2023-07-24 10:43:45 +04:00
John Preston
079d966e45 Provide menu shown signal from InputField. 2023-07-21 17:10:30 +04:00
John Preston
39d440f774 Don't check requested emoji size. 2023-07-21 14:42:01 +04:00
John Preston
288bec7157 Fix overscroll modification. 2023-07-20 21:41:48 +04:00
Ilya Fedin
0f20eb152a Use string literal instead of const_string for QString constants 2023-07-20 21:33:16 +04:00
John Preston
8f03125ec1 Fix build with Xcode. 2023-07-20 10:19:51 +04:00
John Preston
ae46510920 Cancel system move if didn't start (macOS). 2023-07-20 09:59:54 +04:00
Ilya Fedin
da7f4fe425 Use new glibmm 2.78 API 2023-07-19 22:53:51 +04:00
Ilya Fedin
3e7f1250c5 Mark TitleControlsOnLeft inline 2023-07-19 22:50:07 +04:00
Ilya Fedin
19d044a212 Move TitleControlsLayout from ui_platform_utility to ui_platform_window_title 2023-07-19 14:42:06 +04:00
Ilya Fedin
6419b54383 Extract controls side deduction code 2023-07-19 14:42:06 +04:00
Ilya Fedin
b9aa8a17d4 Allow to pass new title controls layout value to notifier
In case the getter is trivial (has only one implementation)
2023-07-19 14:42:06 +04:00
John Preston
048156ecda Support fractional border in rounded input field. 2023-07-18 20:44:53 +04:00