Commit graph

19 commits

Author SHA1 Message Date
John Preston
2aa929dc91 Support custom semi-native title buttons on Windows. 2023-02-23 17:06:12 +04:00
Ilya Fedin
74cd53e1d1 Revert "Use native window resize on Windows 11"
This reverts commit 2e9aec239d.
2022-06-18 11:01:00 +04:00
Ilya Fedin
a714fb0070 Refactor all ui_platform_utility functions to accept QWidget
Also let ShowWindowMenu accept the point and remove unused return data
2022-06-13 14:04:17 +04:00
Ilya Fedin
2e9aec239d Use native window resize on Windows 11 2022-06-13 14:04:17 +04:00
Ilya Fedin
94c5754b42 Hide titlebar & border when there are no controls
If the user doesn't want to control the window with buttons, then he moves/resizes the window in other way as well
2022-06-13 13:47:26 +04:00
John Preston
d98c3d539b Allow moving window controls vertically. 2022-03-15 19:40:38 +04:00
John Preston
5f3e04a319 Fix build with GCC. 2022-02-28 23:25:03 +03:00
John Preston
5d475f54f0 Enlarge padded title controls hit area. 2022-02-28 19:12:26 +03:00
John Preston
47aed59fe9 Add Windows 11 snap layouts to custom TitleControls. 2022-01-18 18:37:35 +03:00
John Preston
e5c8a6ebc4 Force correct separate title bar controls geometry. 2022-01-18 15:33:28 +03:00
John Preston
d7e47aa8a6 Support Windows 11 snap layouts in RpWindow title controls. 2022-01-18 12:59:37 +03:00
John Preston
52ac632bc4 Allow destroying Ui::Window on close. 2021-03-23 16:32:21 +04:00
John Preston
f6a1a44efe Fix maximize/restore button state in TitleWidget. 2021-03-20 15:16:50 +04:00
Ilya Fedin
c74cf04cc6 Get rid of deprecated ranges::view usage 2021-03-13 19:06:44 +03:00
John Preston
ad334fe450 Force all title controls on one side. 2021-03-11 19:17:01 +04:00
Ilya Fedin
0b74c396cb Use gtk integration from lib_base 2021-02-19 12:30:58 +04:00
Ilya Fedin
34fc25a56c Ensure controls aren't duplicated 2021-02-17 18:04:06 +04:00
Ilya Fedin
3bc42db7bc Add a private method to get control widget by enum to TitleControls 2021-02-17 18:04:06 +04:00
Ilya Fedin
6500dc9610 Qt-based title widget ported from tdesktop 2021-02-04 18:12:14 +04:00