Commit graph

770 commits

Author SHA1 Message Date
John Preston
c468f8b3c6 Allow adding any buttons to BoxContent. 2022-05-18 14:17:10 +04:00
John Preston
96279cc04d Fix generic box size with pinned top content. 2022-05-11 12:41:08 +04:00
John Preston
3cce0655d1 Allow links in default multiline toasts. 2022-05-09 17:09:36 +04:00
John Preston
b97c0cadcb Allow any RpWidget as a GenericBox::pinnedTopContent. 2022-05-06 17:40:33 +04:00
23rd
83553d0826 Decomposed painting of box content divider. 2022-05-05 12:55:14 +03:00
John Preston
9b6e11db62 Add anim::repeat enumeration (loop / once). 2022-05-04 11:22:46 +04:00
23rd
9d07d6a476 Added ability to append pinned to top content to generic box. 2022-05-03 14:57:57 +04:00
23rd
35c84d7d54 Removed unused includes from BoxLayerWidget. 2022-05-03 14:57:51 +04: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
Sergey A. Osokin
49b4b35efa Fix -Wunused-const-variable warnings by removing unused variables 2022-04-26 08:15:13 +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
John Preston
aa155db0bd Fix possible use-after-free in VerticalLayout.
If some row widgets of VerticalLayout are living
in its own lifetime() we have a use-after-free.

Because this lifetime() destroys this child row
already after ~VerticalLayout which can call back
into VerticalLayout::childHeightUpdated (the subscription
lives inside the same lifetime() as well) which
will access _rows member that was already destroyed.

Now all subscriptions die before _rows are destroyed.
2022-04-14 16:54:51 +04: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
John Preston
e5d8e54035 Don't build OBJC precompiled header. 2022-04-14 10:35:00 +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
Ilya Fedin
d1bf069916 Wait for interface announce before xdg-decoration check 2022-04-14 07:57:07 +04:00
23rd
01f07480b0 Fixed build with Xcode. 2022-04-12 17:18:15 +03:00
Ilya Fedin
d5d8244abb Convert window extents to native pixels 2022-04-11 13:17:22 +04:00
Ilya Fedin
e09d5714e4 Use QPA API to set Wayland margins property 2022-04-11 13:17:22 +04:00
Ilya Fedin
d5a37c74b1 Try to use as less private APIs as possible to show window menu on Wayland 2022-04-11 09:43:09 +04:00
Ilya Fedin
362fbb6331 Fix build without Wayland integration 2022-04-11 09:43:09 +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
23rd
a0b04da1d9 Added utils for fade animated showing/hiding of widgets. 2022-03-22 22:36:58 +03:00
John Preston
8700c2223a Add NV12 -> RGB shader. 2022-03-22 19:46:19 +04:00
Ilya Fedin
5fa3d7a9da Remove unused variable 2022-03-21 10:16:44 +04: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
John Preston
1027fb5dff Fix colorizing sparse images. 2022-03-18 20:40:27 +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
John Preston
d98c3d539b Allow moving window controls vertically. 2022-03-15 19:40:38 +04:00