Ilya Fedin
48a34dc746
Get rid of QSurface::supportsOpenGL check
...
It checks for surface type to be compatible with OpenGL, but there's no guarantee raster surface would return true here and once it's converted to an OpenGL surface, there's no need to check as it's known to support OpenGL.
This is the case with all QWidgets in Qt 6.4.
2022-07-19 19:44:06 +04:00
Ilya Fedin
ba7e3667d6
Adapt for Qt 6.4 device pixel ratio changes
...
QWidget::devicePixelRatioF represents backing store ratio and it's no more equal to native surface ratio
2022-07-19 19:44:06 +04:00
Ilya Fedin
e91cfd55c2
Fix missing include for Qt 6.4
2022-07-19 19:44:06 +04:00
Ilya Fedin
db2638cf60
Fix painting of bottom left shadow corner
2022-06-25 07:12:42 +04:00
Ilya Fedin
c499a437f8
Fix a crash while updating window extents
2022-06-24 20:59:03 +04:00
Ilya Fedin
3dbf58c45f
Make window resize less lagged on Windows
2022-06-24 20:40:52 +04:00
John Preston
f40dc661b3
Revert "Simplify Windows native event filter."
...
With that commit the window frame on Windows 7 is still bugged :(
2022-06-24 20:40:23 +04:00
John Preston
b90d7ee27a
Merge remote-tracking branch 'origin/master' into HEAD
2022-06-23 09:43:23 +04:00
Ilya Fedin
8e5c8c96bd
Fix a crash while setting FramelessWindowHint
2022-06-23 03:46:20 +04:00
John Preston
7aedf7703f
Revert "Make window resize less lagged on Windows"
...
This reverts commit b5da6e709d .
2022-06-22 20:23:24 +04:00
John Preston
1254ee00db
Revert "Remove WS_CAPTION manually on Windows 7"
...
This reverts commit adf267a3a2 .
2022-06-22 20:19:16 +04:00
Ilya Fedin
941dc48366
Change FramelessWindowHint not only when the window is shown
2022-06-22 10:48:59 +04:00
Ilya Fedin
adf267a3a2
Remove WS_CAPTION manually on Windows 7
2022-06-21 20:38:09 +04:00
John Preston
8e0f928205
Fix build.
2022-06-21 00:57:35 +04:00
Ilya Fedin
8de2eee8cc
Use QWindow::setScreen instead of QWidget::setScreen
2022-06-21 00:05:29 +04:00
John Preston
9ebfd80b29
Fix possible stack overflow crash.
2022-06-20 23:44:44 +04:00
John Preston
dbc0e87c80
Fix possible crash in native event filter.
2022-06-20 18:08:42 +04:00
John Preston
b305df8cc5
Allow getting Ui::Show of a SeparatePanel.
2022-06-20 17:12:45 +04:00
John Preston
7a4ea49959
Allow custom actions on Checkbox click-handlers.
2022-06-20 17:12:26 +04:00
Ilya Fedin
6f856ce495
Use ScreenToClient for point convertion in WM_NCHITTEST
2022-06-18 11:01:00 +04:00
Ilya Fedin
30810032dc
Revert "Make maximized geometry handling less bugged on Windows"
...
This reverts commit b05b7bd502 .
2022-06-18 11:01:00 +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
2246d16daf
Revert "Use native window titlebar on Windows 11"
...
This reverts commit de5aa43f15 .
2022-06-18 11:01:00 +04:00
John Preston
3aa78fb000
Fix box close button style.
2022-06-14 16:02:30 +04:00
Ilya Fedin
1679da738b
ui_window_win: use value_or for _frameMargins
2022-06-14 07:00:45 +04:00
Ilya Fedin
ce35425670
Simplify Windows native event filter
...
There's no need for a global event filter as it checks for the window hwnd anyway. And, moreover, that creates problems as Qt filters some events to global event filters.
2022-06-13 14:04:17 +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
de5aa43f15
Use native window titlebar on Windows 11
2022-06-13 14:04:17 +04:00
Ilya Fedin
3255de2e5a
Use native system window menu with custom titlebar on Windows
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
b05b7bd502
Make maximized geometry handling less bugged on Windows
2022-06-13 14:04:17 +04:00
Ilya Fedin
b5da6e709d
Make window resize less lagged on Windows
2022-06-13 14:04:17 +04:00
Ilya Fedin
cdfa6ea2bf
Handle DPI change on Windows to avoid the window be resized by Qt
2022-06-13 14:04:17 +04:00
Ilya Fedin
e72706f249
Make FindTaskbarWindow/IsTaskbarAutoHidden nodiscard
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
74224fe06e
Add gradient_color_at(QGradientStops, ratio).
2022-06-10 16:06:17 +04:00
Ilya Fedin
851444a172
Use brackets include zlib
2022-06-07 18:45:25 +04:00
Ilya Fedin
8e35ae4407
Implement round window with Qt-based custom decorations
2022-06-07 18:45:25 +04:00
John Preston
81b9028e1c
Fix BoxLayerWidget::addTopButton.
...
Regression was introduced in c468f8b3c6 .
2022-06-07 11:10:21 +04:00
John Preston
72940a25e3
Fix possible crash in checkbox.
2022-06-06 12:20:22 +04:00
23rd
0a713c1c7b
Skipped grabbing of widget with invalid rect.
2022-06-05 14:55:59 +03:00
Ilya Fedin
797c731d27
Migrate from kwayland to QtWaylandScanner
2022-06-03 20:10:48 +04:00
John Preston
6ae122f1b2
Move Ui::Menu::MenuCallback and st::menuWithIcons here.
2022-06-03 18:05:09 +04:00
John Preston
b802516ca7
Allow DividerLabel with only top / bottom part.
2022-06-02 17:26:29 +04:00
23rd
b9a702f6e0
Added masked shadow corners for special layers.
2022-06-02 14:59:32 +03:00
Ilya Fedin
549edbe5c7
Make DisableSystemWindowResize consistent with getting winId on macOS
2022-06-02 14:30:18 +04:00
Ilya Fedin
a812ae65a4
Get rid of private QHighDpi usage
2022-06-02 14:30:18 +04:00
John Preston
e1ec6a38be
Allow clickable links in Ui::Checkbox texts.
2022-05-31 12:05:00 +04:00
23rd
676d8697c6
Added support of locked state to side bar button.
2022-05-30 14:57:21 +03:00
23rd
e2304a3c76
Added ability to set pinned items for vertical layout reorder.
2022-05-30 14:08:22 +03:00