Commit graph

432 commits

Author SHA1 Message Date
John Preston
9ebfd80b29 Fix possible stack overflow crash. 2022-06-20 23:44:44 +04:00
John Preston
b305df8cc5 Allow getting Ui::Show of a SeparatePanel. 2022-06-20 17:12:45 +04:00
John Preston
7a4ea49959 Allow custom actions on Checkbox click-handlers. 2022-06-20 17:12:26 +04:00
Ilya Fedin
ce35425670 Simplify Windows native event filter
There's no need for a global event filter as it checks for the window hwnd anyway. And, moreover, that creates problems as Qt filters some events to global event filters.
2022-06-13 14:04:17 +04:00
John Preston
72940a25e3 Fix possible crash in checkbox. 2022-06-06 12:20:22 +04:00
John Preston
6ae122f1b2 Move Ui::Menu::MenuCallback and st::menuWithIcons here. 2022-06-03 18:05:09 +04:00
John Preston
b802516ca7 Allow DividerLabel with only top / bottom part. 2022-06-02 17:26:29 +04:00
23rd
b9a702f6e0 Added masked shadow corners for special layers. 2022-06-02 14:59:32 +03:00
John Preston
e1ec6a38be Allow clickable links in Ui::Checkbox texts. 2022-05-31 12:05:00 +04:00
23rd
676d8697c6 Added support of locked state to side bar button. 2022-05-30 14:57:21 +03:00
John Preston
3668ee1085 Remove Pre tag when removing Code tag. 2022-05-23 12:39:04 +04:00
Ilya Fedin
a32f3a94b9 Use modifier workaround only on X11
It's a bug in Qt's xcb backend after all
2022-05-19 11:50:39 +04:00
23rd
83553d0826 Decomposed painting of box content divider. 2022-05-05 12:55:14 +03:00
Ilya Fedin
eb82d31c55 Set additional margin to the input field without style sheet 2022-05-02 14:06:03 +04:00
John Preston
283cb25dfd Allow creating SeparatePanel with a parent. 2022-05-02 07:57:52 +04:00
John Preston
b77fb45083 Add SeparatePanel and ShowMultilineToast. 2022-04-29 20:19:33 +04:00
John Preston
2d7532bddd Revert "Don't attach menu callback to QAction lifetime."
This reverts commit 4093d6605a.
2022-04-25 15:46:52 +04:00
John Preston
f128bd6d50 Revert "Fix repeated menu callback invocation."
This reverts commit 3a6708cdc5.
2022-04-25 15:46:42 +04:00
John Preston
6abcbf773f Don't destroy PopupMenu non-queued if !_useTransparency. 2022-04-25 15:41:07 +04:00
23rd
16f4aec946 Added horizontal padding to round buttons with full radius and width. 2022-04-23 14:23:20 +03:00
John Preston
3a6708cdc5 Fix repeated menu callback invocation. 2022-04-21 15:18:18 +04:00
John Preston
4093d6605a Don't attach menu callback to QAction lifetime. 2022-04-20 11:41:10 +04:00
23rd
50ef072af7 Added ability to provide align of text to IconButtonWithText. 2022-04-19 17:12:15 +03:00
23rd
289bcf50e9 Fixed IconButtonWithText update when text changes. 2022-04-19 17:02:55 +03:00
23rd
e94d77847c Added ability to override painting of action menu items. 2022-04-17 02:11:24 +03:00
Nicholas Guriev
258cacf7c5 Avoid conditional branching on uninitialized values
C++ initializes members in the order in which they are defined in class. So the
order is important if the members are accessed by other initializers or methods
called from them.

Class BoxLayerWidget:
  _roundRect is initialized based on _layerType through the st() method.

Class Checkbox:
  Arguments of _text constructor depend on _checkAlignment through the
  countTextMinWidth and the checkRect methods.
2022-04-14 15:35:38 +04:00
Ilya Fedin
183576ae65 Make a comment about the Qt's Caps Lock bug
In order to remember remove it once the bug is fixed
2022-04-14 09:07:40 +04:00
23rd
1c14306aba Revert "Added ability to set text color of menu item via QAction."
This reverts commit 8d181e53c5.
2022-04-04 17:15:36 +03:00
23rd
8d181e53c5 Added ability to set text color of action menu item via QAction. 2022-03-31 00:43:29 +03:00
23rd
c035b78f87 Added IconButtonWithText control. 2022-03-30 18:38:49 +03:00
23rd
9f28a0b106 Added MaskedInputField::changed signal on wheel event in Ui::TimePart. 2022-03-28 14:01:24 +03:00
23rd
c026c1125e Moved Ui::TimePart to separated file. 2022-03-28 14:01:24 +03:00
23rd
2256b4b8ea Moved number parsing to Ui::TimePart class. 2022-03-28 12:26:46 +03:00
23rd
c676256872 Fixed text validation when char is put on next part of time input. 2022-03-28 12:15:42 +03:00
23rd
62002f034b Added ability to ignore clicks for toggle in Ui::SettingsButton. 2022-03-27 16:25:30 +03:00
23rd
bc85f7baf3 Decomposed painting of text in Ui::Menu::Action. 2022-03-27 15:22:28 +03:00
Ilya Fedin
89be8d23fc Set screen for tooltip 2022-03-21 10:16:44 +04:00
Ilya Fedin
39176f619e Set screen for popup menu 2022-03-21 10:16:44 +04:00
Ilya Fedin
af680714ff Don't involve screen geometry for tooltip on Wayland 2022-03-18 20:04:27 +04:00
Ilya Fedin
87c95b8fa7 Don't involve screen geometry for popup menus on Wayland 2022-03-18 20:04:27 +04:00
23rd
bf65a06735 Added ability to set vertical origin to Ui::PopupMenu. 2022-03-16 09:25:20 +03:00
23rd
ba40979470 Moved out kMaxScrollSpeed from scroll area. 2022-03-14 18:24:52 +03:00
Ilya Fedin
f2c77daccc Use setContentMargins in QLineEdit-based input fields 2022-03-05 16:55:33 +04:00
Ilya Fedin
1f89e8bd53 Remove unneeded Q_OBJECT from DropdownMenu 2022-03-05 16:55:33 +04:00
John Preston
8415f7058c Support emoji in Ui::SettingsButton. 2022-03-01 12:47:53 +03:00
23rd
1ba9270234 Added ability to provide custom style of context menu to flat labels. 2022-03-01 08:35:05 +03:00
23rd
73ec29fa06 Added clearing of selection on changing of FlatLabel selectability. 2022-02-28 12:33:31 +03:00
John Preston
5214f96bba Parse markup in Ui::Text::String::setMarkedText by default. 2022-02-27 17:48:43 +03:00
John Preston
bd7c4ee06d Allow fractional stroke values in CrossAnimation. 2022-02-25 19:23:05 +03:00
John Preston
43c61172d8 Allow overriding Ui::SettingsButton padding. 2022-02-10 12:22:35 +03:00