From c3fab28e1ce539824991d6d37d24d3796901c0fd Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 13 May 2024 10:55:52 +0400 Subject: [PATCH] Improve scroll style for limited reaction selector. --- Telegram/SourceFiles/chat_helpers/chat_helpers.style | 6 ++++++ .../view/reactions/history_view_reactions_selector.cpp | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/chat_helpers/chat_helpers.style b/Telegram/SourceFiles/chat_helpers/chat_helpers.style index f8c8ad61b4..73dc78f239 100644 --- a/Telegram/SourceFiles/chat_helpers/chat_helpers.style +++ b/Telegram/SourceFiles/chat_helpers/chat_helpers.style @@ -785,6 +785,12 @@ emojiScroll: ScrollArea(defaultSolidScroll) { reactPanelScroll: ScrollArea(emojiScroll) { deltab: 7px; } +reactPanelScrollRounded: ScrollArea(emojiScroll) { + width: 8px; + deltax: 3px; + deltat: 14px; + deltab: 14px; +} choosePeerGroupIcon: icon {{ "info/edit/create_group", lightButtonFg }}; choosePeerChannelIcon: icon {{ "info/edit/create_channel", lightButtonFg }}; diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp index da65f09027..cce557ffcb 100644 --- a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp +++ b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp @@ -924,7 +924,9 @@ void Selector::createList() { &_show->session(), _strip ? _reactions.recent : std::vector(), _strip.get()); - _scroll = Ui::CreateChild(this, st::reactPanelScroll); + _scroll = Ui::CreateChild(this, _reactions.customAllowed + ? st::reactPanelScroll + : st::reactPanelScrollRounded); _scroll->hide(); const auto st = lifetime().make_state(_st);