Commit graph

1307 commits

Author SHA1 Message Date
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
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
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
23rd
51fd4a0509 Removed some unused keys from colors palette. 2023-02-01 07:46:03 +03:00
23rd
5535a3fe57 Removed unused keys from style files. 2023-01-31 19:04:28 +03:00
23rd
35cc61cb48 Added ability to finish animation of toggle in SettingsButton. 2023-01-31 18:32:02 +03:00
John Preston
a5020ac5bc Fix a diacritic after a char after an emoji. 2023-01-31 14:46:19 +04:00
John Preston
7bcca23bfe Fix Text::String::isOnlyEmojiAndSpaces for empty string. 2023-01-30 14:10:11 +04:00
John Preston
f2e698f220 Track isOnlyEmojiAndSpaces in Ui::Text::String. 2023-01-27 19:00:30 +04:00
John Preston
7ec9e05510 Allow appending TextWithEntnties by const-ref. 2023-01-27 14:37:01 +04:00
John Preston
43e9128014 Report animate phases from PopupMenu. 2023-01-25 11:22:56 +04:00
John Preston
41ee2fb0f0 Use QFontMetricsF and ceil() the width() results. 2023-01-24 12:10:48 +04:00
John Preston
9cb928b7c4 Add some helpers for exact dpi painting. 2023-01-23 22:04:51 +04:00
23rd
133acab68f Fixed updating of CenterWrap after postponed resize of wrapped widget. 2023-01-23 12:29:49 +03:00
John Preston
395795e37a Fix stopping LimitedLoopsEmoji on last frame. 2023-01-23 12:22:04 +04:00
23rd
c006f8c304 Moved out styles of ripples with shadowFg color to single place. 2023-01-23 09:28:16 +03:00
John Preston
77cd7f642c Add QtMath #include for M_SQRT2. 2023-01-21 21:12:31 +04:00
23rd
28d01d023b Replaced multiple static constants for square root of 2 with Qt define. 2023-01-21 19:34:26 +03:00
John Preston
335f8050d9 Allow stopping LimitedLoopsEmoji on last frame. 2023-01-20 20:43:30 +04:00
John Preston
6e3cc8c769 Fix child geometry for mega-rich popup menus. 2023-01-19 12:32:24 +04:00
23rd
e00ae912ad Fixed missed inline of functions for geometry calculations. 2023-01-19 10:41:56 +03:00
23rd
3bfd1797e4 Added initial list of functions for geometry calculations. 2023-01-15 06:54:07 +03:00
23rd
0662809cd2 Added some convenient overload methods to RpWidget. 2023-01-15 06:34:23 +03:00
John Preston
2404225e09 Allow window to receive WM_DPICHANGED in Qt. 2023-01-13 12:43:50 +04:00
John Preston
a113e50050 Separate ClickHandler::url from dragText. 2023-01-12 11:23:02 +04:00
John Preston
c72beeeb7c Fix escaping QByteArray construction. 2023-01-12 10:10:21 +04:00
Ilya Fedin
6cd13e1057 Handle jpeg errors with exceptions 2023-01-09 14:49:00 +04:00