Commit graph

586 commits

Author SHA1 Message Date
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
23rd
cc79439fee Fixed RpWindow dragging on macOS with Qt 6.2. 2021-10-31 08:58:44 +03:00
John Preston
f51ff6b513 Use Qt resources from a file on macOS. 2021-10-27 20:39:21 +04:00
John Preston
efdb990d96 Fix emoji single pixmap size on Retina screens. 2021-10-27 10:39:05 +04:00
John Preston
7b4114d907 Fix RpWindow drag-by-title on macOS with Qt 6.2. 2021-10-26 19:32:24 +04:00
Ilya Fedin
9e4ffb81a5 Re-enable kwayland with Qt 6 2021-10-25 08:49:29 +04:00
Ilya Fedin
397be4f175 Call QInputMethod::show on TouchEnd
Qt calls QInputMethod::show on mouseReleaseEvent, but tdesktop sets Qt::WA_AcceptTouchEvents, so Qt's callback is never called and the keyboard is never shown. Adding the same to TouchEnd event should synchornize the behavior.

QInputMethod::hide is called in QWidget::focusOutEvent and shouldn't be affected.
2021-10-25 08:47:23 +04:00
John Preston
3177c78bda Disable OpenGL on NVIDIA driver on Linux. 2021-10-22 19:39:09 +04:00
John Preston
fb812fd748 Allow manual style::complex_color refresh. 2021-10-22 18:33:13 +04:00
John Preston
48ebd65323 Add Images::GenerateShadow. 2021-10-21 21:23:08 +04:00
John Preston
aa16cd0c16 Allow custom rounded corners in boxes. 2021-10-21 21:23:08 +04:00
John Preston
674391524b Fix build with Qt 6.2 on macOS. 2021-10-21 19:45:01 +04:00
Ilya Fedin
87b121069f Add checks for libraries not ported to Qt 6 yet 2021-10-21 08:42:53 +04:00
Ilya Fedin
004270ebd0 Try with QList 2021-10-20 10:27:52 +04:00
Ilya Fedin
93987b3703 Fix a type mismatch 2021-10-20 10:27:52 +04:00
Ilya Fedin
ee36b1f451 Use StringViewMid adapter 2021-10-20 10:27:52 +04:00
Ilya Fedin
64e40913df Use new Qt 6 adapters 2021-10-19 19:28:45 +04:00
Ilya Fedin
534541367c Make enterEventHook accept a QEnterEvent 2021-10-19 17:06:25 +04:00
Ilya Fedin
8e5d35229a Simple replacements for Qt 6
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +04:00
23rd
1651470638 Added ability to draw outlined Ui::RoundButton. 2021-10-07 03:01:43 +03:00
23rd
7182fad08a Removed Q_OBJECT from ScrollArea. 2021-09-29 19:40:47 +03:00
23rd
b64f68dca6 Removed Q_OBJECT from ScrollBar. 2021-09-29 18:18:25 +03:00
23rd
532affa1bf Removed Q_OBJECT from ScrollShadow. 2021-09-29 17:53:03 +03:00
John Preston
a827d9436e Use native rounded corners and title colors. 2021-09-28 21:06:29 +04:00
John Preston
40fc5b35f0 Use QImage span for corner masks. 2021-09-27 19:30:46 +04:00
John Preston
e62d92f655 Use base::SafeRound. 2021-09-27 12:12:54 +04:00
John Preston
d5fb147f2c Lock access to IconMasks. 2021-09-24 19:09:58 +04:00
John Preston
29cfdad44c Fix one more crash on context loss. 2021-09-23 17:37:03 +04:00
John Preston
d81997194e Allow forcing links to be always underlined. 2021-09-19 12:41:44 +03:00
John Preston
5a9878bea9 Preserve alpha value in colorizer. 2021-09-17 10:24:42 +03:00
John Preston
a8a4cc8c1a Allow submitting ChooseTimeBox with zeros by Enter. 2021-09-16 10:49:47 +03:00
John Preston
2d53ef070f Allow to query RpWindow-s frame margins. 2021-09-16 10:26:34 +03:00
John Preston
b35d2d257a Use base/random.h instead of openssl::RandomValue. 2021-09-15 13:16:44 +03:00
John Preston
d7bdfa2b5e Update emoji config version. 2021-09-14 15:12:40 +03:00
John Preston
317dc4fadf Add data file for new emoji. 2021-09-14 14:29:42 +03:00
John Preston
ef633ec503 Fix PathShiftGradient colors with custom palettes. 2021-09-13 20:04:48 +03:00
John Preston
8589a8d850 Try to fix a crash in label click handlers. 2021-09-13 17:38:53 +03:00
John Preston
8d634fc946 Update main built-in palette values. 2021-09-13 15:38:54 +03:00
Ilya Fedin
15d1560e41 Move glibmm_helper include to others glib-related 2021-09-12 00:04:49 +03:00
John Preston
246b947fa7 Always assign colors when assigning palettes. 2021-09-11 12:26:16 +03:00
John Preston
5b521d63a4 Allow QSurfaceFormat::NoProfile in OpenGL detection. 2021-09-09 16:31:32 +03:00
John Preston
52718aa5db Scroll to the item selected by keyboard. 2021-09-09 16:02:26 +03:00
John Preston
40c0a11705 Support scroll inside PopupMenu. Draw shadow over. 2021-09-09 15:36:20 +03:00
John Preston
02c1bd5674 Allow enabling + selecting menu item under cursor. 2021-09-08 14:37:19 +03:00
23rd
beb09445d1 Appended references to const auto type in loop to prevent copying. 2021-09-08 14:01:07 +03:00
John Preston
f4cf3094c2 Force PopupMenu item selection when submenu is shown. 2021-09-08 13:46:34 +03:00
John Preston
6651d9f9b6 Allow adding submenu to PopupMenu on the fly. 2021-09-07 21:18:43 +03:00
23rd
e0339b7da1 Added ability to set background color to BoxContentDivider. 2021-09-06 13:26:38 +03:00
23rd
01d10cbdbf Added workaround for submenu on macOS. 2021-09-06 13:19:32 +03:00
23rd
897bea2baf Removed Q_OBJECT from InnerDropdown. 2021-09-06 13:19:32 +03:00