2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 14:08:41 +00:00

Fixed ripple color for top buttons in section of affiliate programs.

This commit is contained in:
23rd
2025-01-17 15:45:59 +03:00
parent 1c28495162
commit d690af99fc

View File

@@ -1045,6 +1045,8 @@ std::unique_ptr<Ui::Premium::TopBarAbstract> Widget::setupTop() {
_back->entity()->addClickHandler([=] { _back->entity()->addClickHandler([=] {
controller->showBackFromStack(); controller->showBackFromStack();
}); });
_back->entity()->setRippleColorOverride(
&st::universalRippleAnimation.color);
_back->toggledValue( _back->toggledValue(
) | rpl::start_with_next([=](bool toggled) { ) | rpl::start_with_next([=](bool toggled) {
const auto &st = isLayer ? st::infoLayerTopBar : st::infoTopBar; const auto &st = isLayer ? st::infoLayerTopBar : st::infoTopBar;
@@ -1063,6 +1065,8 @@ std::unique_ptr<Ui::Premium::TopBarAbstract> Widget::setupTop() {
controller->parentController()->hideLayer(); controller->parentController()->hideLayer();
controller->parentController()->hideSpecialLayer(); controller->parentController()->hideSpecialLayer();
}); });
_close->setRippleColorOverride(
&st::universalRippleAnimation.color);
raw->widthValue( raw->widthValue(
) | rpl::start_with_next([=] { ) | rpl::start_with_next([=] {
_close->moveToRight(0, 0); _close->moveToRight(0, 0);