tdesktop/Telegram/SourceFiles/media/view/mediaview.style

83 lines
2.4 KiB
Plaintext
Raw Normal View History

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) {
font: semiboldFont;
2016-07-11 18:05:46 +00:00
textFg: #ffffffc7;
}
mediaviewPlayProgressTop: 11px;
2016-07-11 18:05:46 +00:00
mediaviewPlayButton: IconButton {
width: 25px;
height: 24px;
opacity: mediaviewInactiveOpacity;
overOpacity: mediaviewActiveOpacity;
icon: icon {
{ "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) }
};
mediaviewPlayPauseLeft: 17px;
mediaviewFullScreenLeft: 17px;
mediaviewVolumeLeft: 15px;
2016-07-11 18:05:46 +00:00
mediaviewFullScreenButton: IconButton(mediaviewPlayButton) {
icon: icon {
{ "media_fullscreen_to", #ffffff, point(0px, 0px) },
};
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;
mediaviewPlaybackTop: 28px;
mediaviewSeekSize: size(11px, 11px);
2016-07-11 18:05:46 +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) },
};
mediaviewVolumeIconTop: 8px;
mediaviewControllerRadius: 25px;