Commit graph

1118 commits

Author SHA1 Message Date
Ilya Fedin
be0067a8c7 Switch Wayland integration to the new type safe Qt API
This also makes it possible to get a more right seat/serial pair
2023-05-15 12:29:01 +04:00
Ilya Fedin
e8857f5792 Get rid of DESKTOP_APP_DISABLE_DBUS_INTEGRATION 2023-05-14 12:12:19 +04:00
John Preston
b850852221 Simplify working with Ui::Show and toasts. 2023-05-03 22:59:33 +04:00
Ilya Fedin
7c9aa94533 Fix kUseNativeChild with Qt 6.4+ 2023-04-27 16:52:58 +04:00
John Preston
79b6cd347c Make a more robust check of OpenGL init. 2023-04-27 10:57:21 +04:00
John Preston
bfdd116000 Handle emoji myself in custom macOS title. 2023-04-26 22:50:22 +04:00
John Preston
37531086ec Drop all formatting by default in InputField. 2023-04-24 21:25:20 +04:00
John Preston
efb7dc927a Allow AnimatedIcon to be colorized to textColor. 2023-04-24 20:58:56 +04:00
John Preston
56945859e3 Try allowing correct   handling. 2023-04-20 13:36:37 +04:00
Ilya Fedin
9395714537 Avoid event loop being throttled by OpenGL
By default, Qt uses swap interval of 1 what causes the (egl|wgl|glx)SwapBuffers call to wait for vblank. Using swap interval of 0 makes the call to return immediately.
2023-04-08 18:20:07 +04:00
John Preston
aa5cc61b6b Allow DividerLabel to wrap any widget, not just FlatLabel. 2023-04-04 17:06:52 +04:00
Ilya Fedin
f5fb567052 Take advantage of RHI
Use Metal with Qt 6.4+ and macOS 10.14+, OpenGL for Wayland whenever enabled
2023-04-03 16:03:08 +04:00
John Preston
80505c1216 Expose some more box scroll interface parts. 2023-03-30 15:49:37 +04:00
Ilya Fedin
7e5ac77096 Fix devicePixelRatio when applying image rounding 2023-03-30 12:12:03 +04:00
Ilya Fedin
8b0e9ea7b8 Fix the detection of xdg-decoration removal 2023-03-23 12:50:35 +04:00
23rd
db4419eb30 Switched preferred width of multiline menu item to fit icon height. 2023-03-22 21:42:16 +03:00
John Preston
3185e6cd55 Fix possible stack overflow. 2023-03-17 20:46:09 +04:00
John Preston
328b75a311 Some indentation fixes. 2023-03-17 14:21:51 +04:00
John Preston
5173dfa1ca Workaround for emoji selector in popup menu on Windows. 2023-03-17 14:21:42 +04:00
John Preston
bcb56492c4 Allow larger scales on high-dpi screens. 2023-03-15 17:17:15 +04:00
John Preston
dec1cd8cea Make style align constants constexpr. 2023-03-15 13:35:59 +04:00
John Preston
62a62d1fb5 Move MediaPlayerButton style outside of lib_ui. 2023-03-14 17:30:27 +04:00
John Preston
c80df2cdd2 Ensure correct FBO size in QOpenGLWidget. 2023-03-13 15:56:17 +04:00
Ilya Fedin
503320296d Use NVIDIA blacklist on any system using desktop-app's Linux platform code 2023-03-12 23:53:16 +04:00
John Preston
849a840503 Implement BoxShow as a wrapper around long-living *Show. 2023-03-10 18:40:49 +04:00
Ilya Fedin
f3744c4ba3 Use paintGL instead of paintEvent
Hopefully making GL code less crashy by using the respective initialization code
2023-03-09 11:07:18 +04:00
John Preston
03f8127875 Fix huge memory allocation on unused emoji.
Before that change call to Instance::setColored started emoji loading
and allocating memory for all animation frames even if it wasn't used.
2023-03-09 09:43:22 +04:00
23rd
2996fb7030 Moved out menu item with multiline text to separated file. 2023-03-01 21:13:53 +03:00
Ilya Fedin
3043ec69ea Make maximized geometry handling less bugged on Windows 2023-03-01 10:45:11 +04:00
John Preston
0b87868b1d Respect real title height in WindowHelper on macOS. 2023-02-28 16:18:17 +04:00
Ilya Fedin
d2fddd8da6 Make the default rendering backend choosing logic public 2023-02-28 16:17:40 +04:00
John Preston
85b73e98ec Fix build on macOS. 2023-02-25 17:12:46 +04:00
John Preston
c3b5f2e62d Update title bar icons. 2023-02-24 19:11:45 +04:00
John Preston
2aa929dc91 Support custom semi-native title buttons on Windows. 2023-02-23 17:06:12 +04:00
John Preston
a110c6ea53 Allow pausing emoji and spoilers separately. 2023-02-21 16:30:59 +04:00
John Preston
74ab66cfa9 Ignore native state updates for fullscreen. 2023-02-17 20:12:09 +04:00
John Preston
3b69ec499c Allow querying manual rounding radius of RpWindow. 2023-02-17 12:10:00 +04:00
John Preston
eb4d44ecd3 Fix window shadow on Linux for translucent windows. 2023-02-17 10:35:02 +04:00
John Preston
c4838f5899 Fix native pointers staleness in macOS RpWindow. 2023-02-14 19:39:24 +04:00
Ilya Fedin
a56831e8d0 Fix deprecated declarations warnings on macOS 2023-02-13 16:57:35 +04:00
John Preston
a3bcd2fac4 Fix rounding for maximized translucent windows. 2023-02-10 20:32:06 +04:00
John Preston
8e6811aef0 Allow custom ChooseBackend hook in RpWindow. 2023-02-10 20:10:42 +04:00
John Preston
30dba7a215 Fix system buttons padding on Windows. 2023-02-10 16:42:55 +04:00
John Preston
66e47a0240 Re-enable global /LTCG on Windows.
With /LTCGOUT: empty path it should not try generating .iobj file,
and work on both 32 bit and 64 bit build with all static libs.
2023-02-08 13:18:20 +04:00
John Preston
1b9b173964 Support spoilers in FlatLabel. 2023-02-07 20:05:34 +04:00
John Preston
e053e04607 Always round down point coords inside the window.
Or 3839 rounds to 1920 and the point falls outside of Qt window.
2023-02-06 12:42:57 +04:00
Joe Kappus
6e81116513 Add missing include to fix GCC12 build
Signed-off-by: Joe Kappus <joe@wt.gd>
2023-02-04 14:02:44 +04:00
John Preston
98fa93787a Use new dropdown arrow everywhere. 2023-02-03 20:46:55 +04:00
John Preston
6c01a81900 Allow opening popup menu shifted to the cursor. 2023-02-03 19:31:57 +04:00
John Preston
30e7657859 Set system window title text on macOS. 2023-02-03 11:27:19 +04:00