Commit graph

52 commits

Author SHA1 Message Date
Ilya Fedin
a812ae65a4 Get rid of private QHighDpi usage 2022-06-02 14:30:18 +04:00
John Preston
f17320171a Allow disabling system resize for a window on macOS. 2022-03-08 18:17:39 +04:00
John Preston
5d475f54f0 Enlarge padded title controls hit area. 2022-02-28 19:12:26 +03:00
John Preston
f0efb19713 Fix a crash on Windows < 11. 2022-01-19 09:30:40 +03:00
John Preston
47aed59fe9 Add Windows 11 snap layouts to custom TitleControls. 2022-01-18 18:37:35 +03:00
John Preston
d5d2ccb467 Disable Windows 11 rounded corners in FullScreen RpWindow. 2022-01-18 15:52:27 +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
220d683528 Fix Windows 11 title controls by additional padding. 2022-01-17 13:37:14 +03:00
John Preston
eaea768ca0 Fix HWND retrieval on Windows. 2021-12-22 10:23:07 +00:00
Ilya Fedin
9c7fe32830 Use winId to get window handle on Windows
There's no need to call QPlatformNativeInterface for that
2021-12-14 09:52:19 +04:00
John Preston
d9953c29b8 Don't set window border color on Windows 11.
When set it can only be opaque which doesn't look great.
When left default it is made of a semi-transparent shadow color.
2021-11-01 15:02:21 +04:00
John Preston
a827d9436e Use native rounded corners and title colors. 2021-09-28 21:06:29 +04:00
John Preston
2d53ef070f Allow to query RpWindow-s frame margins. 2021-09-16 10:26:34 +03:00
John Preston
ea570c07b6 Attempt to fix a crash in event loop nesting tracking. 2021-09-01 19:08:07 +03:00
John Preston
024f6fc1a9 Fix window frame glitches on Windows 7. 2021-08-10 15:04:30 +03:00
John Preston
5c0066958b Fix window shadow after native frame switch. 2021-08-10 13:12:21 +03:00
Ilya Fedin
98c7979e67 Get rid of _nativeFrame variable, _title->isHidden is enough 2021-08-08 09:18:15 +03:00
John Preston
868f2671fa Fix Ui::RpWidget geometry constraints. 2021-07-29 18:12:44 +03:00
Ilya Fedin
7a71876124 Add possibility to enable native window frame to Ui::Window 2021-07-28 16:06:17 +03:00
John Preston
3a51a253cd Use updated SafeLoadLibrary from lib_base. 2021-07-01 00:12:52 +03:00
John Preston
a009efc50d Fix expose bug for frameless OpenGL window. 2021-06-23 15:42:38 +04:00
John Preston
f646439624 Fix full screen OpenGL native child window. 2021-06-21 11:28:53 +04:00
Ilya Fedin
43efd9e307 Use custom xdg-shell for shadows on Wayland 2021-06-10 23:39:38 +04:00
John Preston
e9fcbfcbac Remove 'StartTranslucentPaint'. 2021-05-18 17:04:45 +04:00
John Preston
d07bee87cd Use LOG/DEBUG_LOG from lib_base. 2021-04-20 16:39:27 +04:00
Ilya Fedin
50a0e7da64 Add IsOverlapped method 2021-04-20 15:35:31 +03:00
Ilya Fedin
99089134e3 Add a method to clear transient parent 2021-04-05 10:16:46 +03:00
Ilya Fedin
af41bff7e4 Build with QT_NO_KEYWORDS 2021-03-03 22:34:02 +04:00
John Preston
b65ff79393 Fix window title update on theme change. 2021-02-26 18:34:44 +04:00
John Preston
77856c3a21 Fix build on Windows. 2021-02-04 18:45:35 +04:00
Ilya Fedin
6500dc9610 Qt-based title widget ported from tdesktop 2021-02-04 18:12:14 +04:00
John Preston
d4c99701b5 Fix deprecation warnings on Qt 5.15.1. 2020-11-04 18:44:45 +03:00
Ilya Fedin
0c28556f46 Synchronize SetWindowLongPtr calls 2020-10-26 16:55:19 +03:00
Ilya Fedin
6a87d47697 Find taskbar window on the same monitor 2020-10-05 18:55:40 +03:00
John Preston
430d96dcd5 Remove assertion about taskbar position. 2020-10-01 17:33:30 +03:00
Ilya Fedin
86e141272a Fix showing autohidden taskbar with maximized window 2020-09-30 19:14:22 +03:00
John Preston
921686055c Pass title controls style in constructor. 2020-08-13 17:58:03 +04:00
John Preston
b534567e11 Extract TitleControls from TitleWidget. 2020-08-13 14:31:41 +04:00
John Preston
3d5108a878 Allow Ui::Window to become fullscreen. 2020-08-12 20:45:57 +04:00
John Preston
608b25bd32 Allow custom drag area for Ui::Window. 2020-08-12 17:34:40 +04:00
John Preston
aed9fe649b Allow creating many window shadows. 2020-07-07 17:53:44 +04:00
John Preston
09918f0133 Load uxtheme.dll dynamically. 2020-07-02 20:55:38 +04:00
Ilya Fedin
e5a527b5ef Adapt for building with MinGW and 64-bit 2020-05-12 15:07:37 +04:00
John Preston
33ea14969e Use StartTranslucentPaint only on OpenGL widgets on macOS. 2020-01-29 18:54:25 +03:00
John Preston
26e6a3050c Allow non-activatable window on Windows. 2020-01-07 15:16:00 +03:00
John Preston
0aadf4ca7d Correctly minimize window. 2020-01-02 14:57:22 +03:00
John Preston
40d7581c36 Allow different custom window title styles. 2019-10-14 14:42:21 +04:00
John Preston
c0ce14bb68 Allow fixed windows with custom title bar. 2019-10-14 13:57:03 +04:00
John Preston
11aa7bcd4e Support title-aware Window::setGeometry. 2019-09-30 11:58:45 +03:00