2016-07-11 18:05:46 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop version of Telegram messaging app, see https://telegram.org
|
|
|
|
|
|
|
|
Telegram Desktop is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
It is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
In addition, as a special exception, the copyright holders give permission
|
|
|
|
to link the code of portions of this program with the OpenSSL library.
|
|
|
|
|
|
|
|
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
|
|
|
Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
|
|
|
*/
|
|
|
|
|
|
|
|
using "basic.style";
|
|
|
|
using "ui/widgets/widgets.style";
|
|
|
|
|
|
|
|
mediaviewActiveOpacity: 1.;
|
|
|
|
mediaviewInactiveOpacity: 0.78;
|
|
|
|
mediaviewOverDuration: 150;
|
|
|
|
|
|
|
|
mediaviewControllerSize: size(600px, 50px);
|
|
|
|
mediaviewPlayProgressLabel: LabelSimple(defaultLabelSimple) {
|
2016-07-12 11:38:16 +00:00
|
|
|
font: semiboldFont;
|
2016-07-11 18:05:46 +00:00
|
|
|
textFg: #ffffffc7;
|
|
|
|
}
|
2016-08-03 11:02:53 +00:00
|
|
|
mediaviewPlayProgressTop: 11px;
|
2016-07-11 18:05:46 +00:00
|
|
|
mediaviewPlayButton: IconButton {
|
|
|
|
width: 25px;
|
|
|
|
height: 24px;
|
|
|
|
|
|
|
|
opacity: mediaviewInactiveOpacity;
|
|
|
|
overOpacity: mediaviewActiveOpacity;
|
|
|
|
|
|
|
|
icon: icon {
|
2016-08-03 12:32:44 +00:00
|
|
|
{ "media_play", #ffffff, point(3px, 0px) },
|
2016-07-11 18:05:46 +00:00
|
|
|
};
|
|
|
|
iconPosition: point(3px, 1px);
|
|
|
|
downIconPosition: point(3px, 1px);
|
|
|
|
|
|
|
|
duration: mediaviewOverDuration;
|
|
|
|
}
|
|
|
|
mediaviewPauseIcon: icon {
|
|
|
|
{ "media_pause", #ffffff, point(1px, 1px) }
|
|
|
|
};
|
2016-08-03 11:02:53 +00:00
|
|
|
mediaviewPlayPauseLeft: 17px;
|
2016-08-03 12:32:44 +00:00
|
|
|
mediaviewFullScreenLeft: 17px;
|
2016-08-03 11:02:53 +00:00
|
|
|
mediaviewVolumeLeft: 15px;
|
2016-07-11 18:05:46 +00:00
|
|
|
|
|
|
|
mediaviewFullScreenButton: IconButton(mediaviewPlayButton) {
|
|
|
|
icon: icon {
|
|
|
|
{ "media_fullscreen_to", #ffffff, point(0px, 0px) },
|
|
|
|
};
|
2016-08-03 12:32:44 +00:00
|
|
|
iconPosition: point(0px, 1px);
|
|
|
|
downIconPosition: point(0px, 1px);
|
2016-07-11 18:05:46 +00:00
|
|
|
}
|
|
|
|
mediaviewFullScreenOutIcon: icon {
|
|
|
|
{ "media_fullscreen_from", #ffffff, point(0px, 0px) },
|
|
|
|
};
|
|
|
|
|
|
|
|
mediaviewPlaybackActive: #ffffff;
|
|
|
|
mediaviewPlaybackInactive: #474747;
|
|
|
|
mediaviewPlaybackWidth: 3px;
|
2016-08-03 11:02:53 +00:00
|
|
|
mediaviewPlaybackTop: 28px;
|
|
|
|
mediaviewSeekSize: size(11px, 11px);
|
2016-07-11 18:05:46 +00:00
|
|
|
|
2016-08-03 12:32:44 +00:00
|
|
|
mediaviewVolumeSize: size(44px, 20px);
|
2016-07-11 18:05:46 +00:00
|
|
|
mediaviewVolumeIcon: icon {
|
|
|
|
{ "media_volume", mediaviewPlaybackInactive, point(0px, 0px) },
|
|
|
|
};
|
|
|
|
mediaviewVolumeOnIcon: icon {
|
|
|
|
{ "media_volume", mediaviewPlaybackActive, point(0px, 0px) },
|
|
|
|
};
|
2016-08-03 12:32:44 +00:00
|
|
|
mediaviewVolumeIconTop: 8px;
|
2016-08-03 11:02:53 +00:00
|
|
|
mediaviewControllerRadius: 25px;
|