Commit graph

263 commits

Author SHA1 Message Date
bbd3af01c9 Updated lib_ui sources to TDesktop version 3.5.2+95e806c 2022-02-15 10:28:04 +03:00
23rd
8618812fd6 Added ability to disable menu hiding from items in easy way. 2022-02-03 01:01:31 +03:00
23rd
7d9c442ca9 Added access to AbstractCheckView from Checkbox. 2022-02-03 00:59:55 +03:00
23rd
2d54e9fd35 Fixed background display after untoggling spoilers in input fields. 2022-01-24 20:44:32 +03:00
23rd
7bd7ada3ff Split qt_adapters to separated files. 2022-01-24 19:29:36 +03:00
John Preston
47aed59fe9 Add Windows 11 snap layouts to custom TitleControls. 2022-01-18 18:37:35 +03:00
John Preston
e5c8a6ebc4 Force correct separate title bar controls geometry. 2022-01-18 15:33:28 +03:00
John Preston
e8f4f02131 Make title bar buttons a bit wider. 2022-01-17 19:01:02 +03:00
John Preston
9b5c939fd0 Update window title controls. 2022-01-17 11:17:36 +03:00
John Preston
ba27a017f8 Increase menu minimum width. 2022-01-13 13:11:16 +03:00
23rd
7d3f27b7ca Decomposed painting of SettingsButton. 2022-01-13 13:05:28 +03:00
039cbd656d Updated lib_ui sources to TDesktop version 3.4.3 2022-01-09 03:04:05 +03:00
23rd
b81b9371e6 Removed TextParseRichText. 2022-01-08 08:24:06 +03:00
John Preston
ee2a1b47d9 Fallthrough wheel events from ScrollBar to ScrollArea. 2022-01-07 13:55:01 +03:00
John Preston
633648074a Allow smaller popup menus. 2021-12-31 17:52:06 +03:00
John Preston
a3b3745d7c Allow click on a submenu-creating item. 2021-12-29 17:53:27 +03:00
23rd
0a0e5e1258 Added ability to pass TextWithEntities to Checkbox. 2021-12-28 03:27:25 +03:00
23rd
ee4a94c122 Added spoiler support to input field. 2021-12-24 15:49:02 +03:00
23rd
c06f0435c4 Moved splitting of tags to separated method. 2021-12-22 17:03:52 +03:00
blank X
d9274f06bd
Add InstantReplaces::Custom and setInstantReplaces overload (#11) 2021-12-17 16:52:15 +03:00
John Preston
6ac846adbb Allow adding submenu actions with icons. 2021-12-09 21:55:35 +04:00
John Preston
7efa1f9b2b Use base::unique_qptr for PopupMenu-s. 2021-12-09 21:55:19 +04:00
c6b55d9c37 Updated lib_ui sources to TDesktop version 3.3 2021-12-07 17:52:09 +03:00
9b56cbd4ab Updated lib_ui sources to TDesktop version 3.2.5 2021-12-07 07:21:25 +03:00
John Preston
725654654d Allow changing menu action icons in realtime. 2021-11-25 17:22:46 +04:00
John Preston
f4a32c34f8 Move box divider colors to the palette. 2021-11-24 12:28:36 +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
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
eb86d2dc51 Updated lib_ui sources to TDesktop version 3.1 2021-09-19 22:47:53 +03:00
29fdd935ad Updated lib_ui sources to TDesktop version 3.0.1 2021-09-17 09:21:32 +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
3bc35a74ec Updated lib_ui sources to TDesktop version 2.9.3 2021-09-16 09:58:42 +03:00
John Preston
b35d2d257a Use base/random.h instead of openssl::RandomValue. 2021-09-15 13:16:44 +03:00
John Preston
8589a8d850 Try to fix a crash in label click handlers. 2021-09-13 17:38:53 +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