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
fc563c0d7c
Remove unneeded constexprs in ui_utility_linux
2021-03-09 09:01:12 +04:00
Ilya Fedin
b82cdd7e58
Connect to title layout changes right in TitleControlsLayout on Linux
2021-03-09 08:56:34 +04:00
Ilya Fedin
4d865f8313
Fix spaces on ends of lines
2021-03-05 13:31:38 +04:00
Ilya Fedin
af41bff7e4
Build with QT_NO_KEYWORDS
2021-03-03 22:34:02 +04:00
John Preston
794ea13f7e
Fix build on Linux.
2021-03-02 17:27:58 +04:00
John Preston
84e0979f47
Fix window title update on macOS.
2021-02-26 21:16:48 +04:00
John Preston
b65ff79393
Fix window title update on theme change.
2021-02-26 18:34:44 +04:00
Ilya Fedin
ae2c25f6a2
Add Platform::IsX11 in forgotten place
2021-02-25 11:05:00 +04:00
Ilya Fedin
db65fca0aa
Use new Platform::IsX11
2021-02-24 21:37:31 +04:00
Ilya Fedin
7d18c8687b
Add Haiku title layout
2021-02-22 23:36:45 +04:00
Ilya Fedin
ed1bc07cc3
Add DESKTOP_APP_DISABLE_X11_INTEGRATION
2021-02-22 23:36:45 +04:00
John Preston
cf39753666
Revert "Take in account device pixel ratio when setting window extents"
...
This reverts commit e14bc4681d .
2021-02-21 08:03:00 +04:00
Ilya Fedin
492121950d
Check if resize area is null
2021-02-19 12:37:42 +04:00
Ilya Fedin
0b74c396cb
Use gtk integration from lib_base
2021-02-19 12:30:58 +04:00
Ilya Fedin
e14bc4681d
Take in account device pixel ratio when setting window extents
2021-02-17 18:04:06 +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
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
5e3897fcff
Improve macOS custom window title.
2020-12-17 15:54:04 +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
John Preston
ae340a0b76
Fix build with Qt 5.6.2.
2020-10-07 18:17:37 +03:00
Ilya Fedin
6a87d47697
Find taskbar window on the same monitor
2020-10-05 18:55:40 +03:00
John Preston
fe09c42f0c
Force separate window for Ui::Window.
2020-10-05 16:48:39 +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
b5d6851c97
Fix build with Qt 5.6.2.
2020-08-20 17:57:51 +04:00
John Preston
a1dbca8578
Fix closing Ui::Window from FullScreen on macOS.
2020-08-14 19:58:55 +04: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
6735ee93dc
Support custom drag area for Ui::Window on macOS.
2020-08-13 13:00:42 +04:00
John Preston
c45b62084c
Support hidden custom title on macOS.
2020-08-12 21:00:03 +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
f749fc7349
Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku
2020-06-13 16:08:39 +04:00
Ilya Fedin
6451ae5074
Use Platform::IsWayland from lib_base
2020-06-03 11:34:08 +04:00
John Preston
4d2f17d9fc
Fix build on Linux.
2020-05-12 16:34:42 +04:00
Ilya Fedin
e5a527b5ef
Adapt for building with MinGW and 64-bit
2020-05-12 15:07:37 +04:00
Ilya Fedin
ef31d05da5
Wayland always support compositing
2020-05-12 09:40:25 +04:00
John Preston
83fada4675
Fix separate panels transparent background.
...
Regression was introduced with migration to Qt 5.12.8.
2020-05-05 13:51:40 +04:00
John Preston
730816ef52
Move on-top panel one level below on macOS.
2020-03-25 13:23:31 +04:00
John Preston
33ea14969e
Use StartTranslucentPaint only on OpenGL widgets on macOS.
2020-01-29 18:54:25 +03:00
John Preston
bbd35238da
Don't force floating panel.
...
In case of StaysOnTop windows it looks like it is floating already.
But in case of manually setting floating here it has a strange bug
with non-activatable always on top tool window (picture-in-picture).
When first time shown it doesn't act as a stays-on-top window, if you
click on another app it is shown above the PiP. Only if you activate
the main window once more the PiP will become stays-on-top window.
This way it works from the first show.
2020-01-29 18:02:17 +03:00