2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Extract Media::Player::Dropdown widget.

This commit is contained in:
John Preston
2021-11-18 21:02:12 +04:00
parent a2bf1544df
commit 8a1140c09f
9 changed files with 274 additions and 224 deletions

View File

@@ -80,6 +80,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "media/audio/media_audio.h"
#include "media/player/media_player_panel.h"
#include "media/player/media_player_widget.h"
#include "media/player/media_player_dropdown.h"
#include "media/player/media_player_volume_controller.h"
#include "media/player/media_player_instance.h"
#include "media/player/media_player_float.h"
@@ -843,7 +844,10 @@ void MainWidget::createPlayer() {
not_null<const HistoryItem*> item) {
_controller->showPeerHistoryAtItem(item);
});
_playerVolume.create(this, _controller);
_playerVolume.create(this);
Media::Player::PrepareVolumeDropdown(
_playerVolume.data(),
_controller);
_player->entity()->volumeWidgetCreated(_playerVolume);
orderWidgets();
if (_a_show.animating()) {