mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Implement full theming of attachments in stories.
This commit is contained in:
@@ -113,6 +113,8 @@ class MainWindowShow final : public ChatHelpers::Show {
|
||||
public:
|
||||
explicit MainWindowShow(not_null<SessionController*> controller);
|
||||
|
||||
void activate() override;
|
||||
|
||||
void showOrHideBoxOrLayer(
|
||||
std::variant<
|
||||
v::null_t,
|
||||
@@ -151,6 +153,12 @@ MainWindowShow::MainWindowShow(not_null<SessionController*> controller)
|
||||
: _window(base::make_weak(controller)) {
|
||||
}
|
||||
|
||||
void MainWindowShow::activate() {
|
||||
if (const auto window = _window.get()) {
|
||||
Window::ActivateWindow(window);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindowShow::showOrHideBoxOrLayer(
|
||||
std::variant<
|
||||
v::null_t,
|
||||
@@ -244,10 +252,7 @@ void MainWindowShow::processChosenSticker(
|
||||
} // namespace
|
||||
|
||||
void ActivateWindow(not_null<SessionController*> controller) {
|
||||
const auto window = controller->widget();
|
||||
window->raise();
|
||||
window->activateWindow();
|
||||
Ui::ActivateWindowDelayed(window);
|
||||
Ui::ActivateWindow(controller->widget());
|
||||
}
|
||||
|
||||
bool IsPaused(
|
||||
|
Reference in New Issue
Block a user