tdesktop/Telegram/SourceFiles/media/player/media_player.style

145 lines
3.8 KiB
Plaintext
Raw Normal View History

2016-09-15 16:32:49 +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";
2016-09-15 16:32:49 +00:00
mediaPlayerTitleButtonSize: size(titleHeight, titleHeight);
mediaPlayerTitleButtonInner: size(25px, 25px);
mediaPlayerTitleButtonInnerBg: #49708f;
mediaPlayerTitleButtonTransformDuration: 200;
mediaPlayerTitleButtonPauseLeft: 8px;
mediaPlayerTitleButtonPauseTop: 8px;
mediaPlayerTitleButtonPauseStroke: 3px;
mediaPlayerTitleButtonPlayLeft: 10px;
mediaPlayerTitleButtonPlayTop: 7px;
2016-09-17 19:28:33 +00:00
mediaPlayerMarginLeft: 10px;
mediaPlayerMarginBottom: 10px;
mediaPlayerWidth: 344px;
mediaPlayerCoverHeight: 102px;
mediaPlayerActiveFg: #54b5ed;
mediaPlayerInactiveFg: #dfebf2;
2016-09-17 19:28:33 +00:00
mediaPlayerPlayButton: IconButton {
width: 32px;
height: 32px;
opacity: 1.;
overOpacity: 1.;
icon: icon {
{ "player_play", mediaPlayerActiveFg, point(6px, 7px) },
2016-09-17 19:28:33 +00:00
};
iconPosition: point(0px, 0px);
downIconPosition: point(0px, 0px);
duration: 0;
}
mediaPlayerPauseIcon: icon {
{ "player_pause", mediaPlayerActiveFg, point(9px, 8px) }
2016-09-17 19:28:33 +00:00
};
mediaPlayerRepeatButton: IconButton(mediaPlayerPlayButton) {
width: 31px;
icon: icon {
{ "player_repeat", mediaPlayerActiveFg, point(9px, 9px)}
};
}
mediaPlayerRepeatDisabledIcon: icon {
{ "player_repeat", mediaPlayerInactiveFg, point(9px, 9px)}
};
mediaPlayerPreviousButton: IconButton(mediaPlayerPlayButton) {
width: 37px;
2016-09-17 19:28:33 +00:00
icon: icon {
{ "player_previous", mediaPlayerActiveFg, point(10px, 10px) },
2016-09-17 19:28:33 +00:00
};
}
mediaPlayerPreviousDisabledIcon: icon {
{ "player_previous", mediaPlayerInactiveFg, point(10px, 10px) },
};
mediaPlayerNextButton: IconButton(mediaPlayerPreviousButton) {
icon: icon {
{ "player_next", mediaPlayerActiveFg, point(10px, 10px) },
};
}
mediaPlayerNextDisabledIcon: icon {
{ "player_next", mediaPlayerInactiveFg, point(10px, 10px) },
};
2016-09-17 19:28:33 +00:00
mediaPlayerPadding: 18px;
mediaPlayerNameTop: 24px;
mediaPlayerPlayLeft: 9px;
mediaPlayerPlaySkip: 7px;
2016-09-17 19:28:33 +00:00
mediaPlayerPlayTop: 58px;
mediaPlayerPlaybackTop: 32px;
mediaPlayerPlaybackPadding: 8px;
mediaPlayerPlayback: MediaSlider {
width: 3px;
activeFg: mediaPlayerActiveFg;
inactiveFg: mediaPlayerInactiveFg;
activeOpacity: 1.;
inactiveOpacity: 1.;
seekSize: size(9px, 9px);
duration: 150;
}
2016-09-17 19:28:33 +00:00
mediaPlayerName: flatLabel(labelDefFlat) {
maxHeight: 20px;
textFg: windowTextFg;
}
mediaPlayerTime: LabelSimple(defaultLabelSimple) {
textFg: windowSubTextFg;
}
mediaPlayerVolumeTop: 65px;
mediaPlayerVolumeRight: 51px;
2016-09-17 19:28:33 +00:00
mediaPlayerVolumeWidth: 86px;
mediaPlayerVolumeLength: 64px;
mediaPlayerVolumeIcon0: icon {
{ "player_volume0", mediaPlayerActiveFg },
2016-09-17 19:28:33 +00:00
};
mediaPlayerVolumeIcon1: icon {
{ "player_volume1", mediaPlayerActiveFg },
2016-09-17 19:28:33 +00:00
};
mediaPlayerVolumeIcon2: icon {
{ "player_volume2", mediaPlayerActiveFg },
2016-09-17 19:28:33 +00:00
};
mediaPlayerVolumeIcon3: icon {
{ "player_volume3", mediaPlayerActiveFg },
2016-09-17 19:28:33 +00:00
};
mediaPlayerVolumeToggle: IconButton {
width: 18px;
height: 17px;
opacity: 1.;
overOpacity: 1.;
icon: mediaPlayerVolumeIcon0;
iconPosition: point(0px, 2px);
downIconPosition: point(0px, 2px);
duration: 0;
}