John Preston
ff1d5fce29
Allow tracking isLayerShown in LayerManager.
2023-05-30 17:36:11 +04:00
John Preston
a7b6b97bd7
Improve and unify Ui::Show interface.
2023-05-19 20:47:23 +04:00
John Preston
303a07f946
Remove unused copy-constructor from BoxShow.
2023-05-17 16:28:26 +04:00
John Preston
b850852221
Simplify working with Ui::Show and toasts.
2023-05-03 22:59:33 +04:00
John Preston
80505c1216
Expose some more box scroll interface parts.
2023-03-30 15:49:37 +04:00
John Preston
849a840503
Implement BoxShow as a wrapper around long-living *Show.
2023-03-10 18:40:49 +04:00
23rd
5535a3fe57
Removed unused keys from style files.
2023-01-31 19:04:28 +03:00
John Preston
3cb645f507
Allow fully custom QImage shadows.
2023-01-06 17:05:24 +04:00
John Preston
c5f09bbf69
Fix assertion violation in GenericBox.
2022-12-27 13:53:44 +04:00
23rd
9f5ddf3d8a
Added missed call of LayerWidget::showFinished to main menu.
2022-12-21 18:04:00 +03:00
John Preston
07d9420c19
Move LayerWidget::closeLayer to the public interface.
2022-12-21 14:48:44 +04:00
23rd
f339dd3771
Added support of min height to Ui::GenericBox.
2022-12-12 18:16:56 +03:00
John Preston
580e6a561f
Don't check box visibility in BoxShow.
2022-12-07 13:02:48 +04:00
23rd
e6064719df
Changed behavior to always center generic boxes.
2022-11-12 14:12:02 +03:00
John Preston
f450dcf2c5
Support GenericBox max height / scroll style.
2022-10-06 17:03:32 +04:00
John Preston
14cc3ff52b
Set some layers crash annotations.
2022-09-25 16:14:13 +04:00
John Preston
73b6bc5e13
Implement animated spoilers.
2022-09-17 00:22:08 +04:00
23rd
b75b69d59d
Reduced boxLabel::minWidth to be less than width of box with padding.
2022-08-08 09:34:14 +03:00
John Preston
dcb4a33eef
Allow changing SeparatePanel title height.
2022-08-04 18:25:45 +03:00
John Preston
a7074136b4
Add several phrases for webview popups.
2022-07-07 08:38:53 +04:00
John Preston
3aa78fb000
Fix box close button style.
2022-06-14 16:02:30 +04:00
John Preston
81b9028e1c
Fix BoxLayerWidget::addTopButton.
...
Regression was introduced in c468f8b3c6 .
2022-06-07 11:10:21 +04:00
John Preston
6ae122f1b2
Move Ui::Menu::MenuCallback and st::menuWithIcons here.
2022-06-03 18:05:09 +04:00
23rd
b9a702f6e0
Added masked shadow corners for special layers.
2022-06-02 14:59:32 +03:00
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
b97c0cadcb
Allow any RpWidget as a GenericBox::pinnedTopContent.
2022-05-06 17:40:33 +04: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
John Preston
b77fb45083
Add SeparatePanel and ShowMultilineToast.
2022-04-29 20:19:33 +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
23rd
2779a7d036
Replaced timer for dragging scroll in Ui::BoxContent with manager.
2022-03-14 18:23:08 +03:00
23rd
d2e482dac3
Added Ui::Show implementation for Ui::BoxContent.
2022-03-04 11:24:55 +03:00
23rd
f0b800cdfb
Introduced Ui::Show interface.
2022-03-03 16:45:51 +03:00
23rd
4ba28e2fec
Renamed BoxContent::onScrollToY to BoxContent::scrollToY.
2022-02-25 12:56:10 +03:00
23rd
c369eb13bf
Removed Q_OBJECT from BoxContent.
2022-02-25 12:56:10 +03:00
23rd
b69fcf6048
Added ability to hide layer from delegate of BoxContent.
2022-02-25 12:56:10 +03:00
John Preston
681da392eb
Improve box rounding and buttons.
2022-02-08 11:06:19 +03:00
John Preston
f4a32c34f8
Move box divider colors to the palette.
2021-11-24 12:28:36 +04:00
John Preston
f18fbbc2a1
Allow custom-styled left button in BoxContent.
2021-11-16 09:51:24 +04:00
John Preston
aa16cd0c16
Allow custom rounded corners in boxes.
2021-10-21 21:23:08 +04:00
23rd
7182fad08a
Removed Q_OBJECT from ScrollArea.
2021-09-29 19:40:47 +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
1b590f9e16
Expose topShownLayer from LayerStackWidget/LaayerManager.
2021-08-11 11:05:27 +03:00
Ilya Fedin
b8485c0d8a
Fix -Wunused-variable warnings
2021-07-13 21:24:22 +03:00
23rd
8c7ebd89f6
Added ability to pass custom layer widgets to stack.
2021-07-02 23:00:21 +03:00
John Preston
a51db55ef2
Allow changing GenericBox later.
2021-04-07 15:42:12 +04:00
Ilya Fedin
af41bff7e4
Build with QT_NO_KEYWORDS
2021-03-03 22:34:02 +04:00
John Preston
7fd90cb38b
Add onShowFinished callback to BoxContent.
2020-11-30 21:06:12 +03:00