Commit graph

262 commits

Author SHA1 Message Date
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
John Preston
c1f44ca8c7 Round SettingsSlider by 1px. 2022-02-09 13:40:31 +03:00
John Preston
93ba307071 Track icon offset inside SettingsButton style. 2022-02-09 13:40:17 +03:00
John Preston
6685a1565e Allow rounding radius in InfoTopBar style. 2022-02-08 20:17:56 +03:00
John Preston
681da392eb Improve box rounding and buttons. 2022-02-08 11:06:19 +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
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