2016-09-15 16:32:49 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2016-09-15 16:32:49 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-09-15 16:32:49 +00:00
|
|
|
*/
|
|
|
|
|
2019-09-17 16:13:12 +00:00
|
|
|
using "ui/basic.style";
|
2016-09-23 16:04:26 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-10-13 15:04:40 +00:00
|
|
|
using "overview/overview.style";
|
2016-09-15 16:32:49 +00:00
|
|
|
|
2016-10-08 18:28:43 +00:00
|
|
|
mediaPlayerButton: MediaPlayerButton {
|
2016-10-12 19:34:25 +00:00
|
|
|
playPosition: point(2px, 0px);
|
|
|
|
playOuter: size(17px, 15px);
|
2016-10-08 18:28:43 +00:00
|
|
|
pausePosition: point(1px, 1px);
|
2016-10-12 19:34:25 +00:00
|
|
|
pauseOuter: size(15px, 15px);
|
2016-10-08 18:28:43 +00:00
|
|
|
pauseStroke: 5px;
|
2016-10-12 19:34:25 +00:00
|
|
|
cancelPosition: point(1px, 1px);
|
|
|
|
cancelOuter: size(15px, 15px);
|
2016-10-08 18:28:43 +00:00
|
|
|
cancelStroke: 3px;
|
2016-12-05 11:01:08 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(0px, 5px);
|
|
|
|
rippleAreaSize: 25px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgOver;
|
|
|
|
}
|
2016-10-08 18:28:43 +00:00
|
|
|
}
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerButtonSize: size(25px, 30px);
|
2016-09-17 19:28:33 +00:00
|
|
|
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerButtonPosition: point(5px, 10px);
|
|
|
|
mediaPlayerSkipIconPosition: point(5px, 12px);
|
2016-09-17 19:28:33 +00:00
|
|
|
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerHeight: 35px;
|
|
|
|
mediaPlayerPadding: 8px;
|
|
|
|
mediaPlayerNameTop: 22px;
|
|
|
|
mediaPlayerPlayLeft: 7px;
|
|
|
|
mediaPlayerPlaySkip: 1px;
|
|
|
|
mediaPlayerPlayTop: 0px;
|
|
|
|
mediaPlayerCloseRight: 0px;
|
2016-09-23 16:04:26 +00:00
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
mediaPlayerName: FlatLabel(defaultFlatLabel) {
|
2016-10-12 19:34:25 +00:00
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
|
|
|
mediaPlayerTime: LabelSimple(defaultLabelSimple) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2016-10-08 18:28:43 +00:00
|
|
|
|
|
|
|
mediaPlayerRepeatButton: IconButton {
|
|
|
|
width: 31px;
|
2016-10-12 19:34:25 +00:00
|
|
|
height: 30px;
|
2016-09-17 19:28:33 +00:00
|
|
|
|
|
|
|
icon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_repeat", mediaPlayerActiveFg, point(9px, 11px) }
|
2016-09-17 19:28:33 +00:00
|
|
|
};
|
|
|
|
iconPosition: point(0px, 0px);
|
2016-12-05 11:01:08 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(3px, 5px);
|
|
|
|
rippleAreaSize: 25px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgOver;
|
|
|
|
}
|
2016-09-17 19:28:33 +00:00
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
mediaPlayerRepeatDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_repeat", menuIconFg, point(9px, 11px)}
|
2016-09-23 16:04:26 +00:00
|
|
|
};
|
2016-12-05 11:01:08 +00:00
|
|
|
mediaPlayerRepeatDisabledIconOver: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_repeat", menuIconFgOver, point(9px, 11px)}
|
2016-12-05 11:01:08 +00:00
|
|
|
};
|
|
|
|
mediaPlayerRepeatDisabledRippleBg: windowBgOver;
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerRepeatInactiveIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_repeat", mediaPlayerInactiveFg, point(9px, 11px)}
|
2016-09-23 16:04:26 +00:00
|
|
|
};
|
2016-09-17 19:28:33 +00:00
|
|
|
|
2018-10-26 15:43:24 +00:00
|
|
|
mediaPlayerSpeedButton: IconButton {
|
|
|
|
width: 31px;
|
|
|
|
height: 30px;
|
|
|
|
|
|
|
|
icon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed2", mediaPlayerActiveFg }
|
2018-10-26 15:43:24 +00:00
|
|
|
};
|
2021-08-30 23:31:34 +00:00
|
|
|
iconPosition: point(3px, 10px);
|
2018-10-26 15:43:24 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(3px, 5px);
|
|
|
|
rippleAreaSize: 25px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mediaPlayerSpeedDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed2", menuIconFg }
|
2018-10-26 15:43:24 +00:00
|
|
|
};
|
|
|
|
mediaPlayerSpeedDisabledIconOver: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed2", menuIconFgOver }
|
2018-10-26 15:43:24 +00:00
|
|
|
};
|
2021-08-30 23:31:34 +00:00
|
|
|
mediaPlayerSpeedSlowIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed0.5", mediaPlayerActiveFg }
|
2021-08-30 23:31:34 +00:00
|
|
|
};
|
|
|
|
mediaPlayerSpeedSlowDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed0.5", menuIconFg }
|
2021-08-30 23:31:34 +00:00
|
|
|
};
|
|
|
|
mediaPlayerSpeedSlowDisabledIconOver: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed0.5", menuIconFgOver }
|
2021-08-30 23:31:34 +00:00
|
|
|
};
|
|
|
|
mediaPlayerSpeedFastIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed1.5", mediaPlayerActiveFg }
|
2021-08-30 23:31:34 +00:00
|
|
|
};
|
|
|
|
mediaPlayerSpeedFastDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed1.5", menuIconFg }
|
2018-10-26 15:43:24 +00:00
|
|
|
};
|
2021-08-30 23:31:34 +00:00
|
|
|
mediaPlayerSpeedFastDisabledIconOver: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/voice_speed/voice_speed1.5", menuIconFgOver }
|
2021-08-30 23:31:34 +00:00
|
|
|
};
|
|
|
|
mediaPlayerSpeedDisabledRippleBg: windowBgOver;
|
|
|
|
|
|
|
|
mediaPlayerPopupMenu: PopupMenu(defaultPopupMenu) {
|
|
|
|
menu: Menu(defaultMenu) {
|
|
|
|
itemIconPosition: point(6px, 5px);
|
|
|
|
itemPadding: margins(34px, 8px, 17px, 7px);
|
|
|
|
}
|
|
|
|
}
|
2021-11-18 13:13:44 +00:00
|
|
|
mediaPlayerMenuCheck: icon {{ "player/player_check", mediaPlayerActiveFg }};
|
2018-10-26 15:43:24 +00:00
|
|
|
|
2016-09-17 19:28:33 +00:00
|
|
|
mediaPlayerVolumeIcon0: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_volume0", mediaPlayerActiveFg },
|
2016-09-17 19:28:33 +00:00
|
|
|
};
|
|
|
|
mediaPlayerVolumeIcon1: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_volume1", mediaPlayerActiveFg },
|
2016-09-17 19:28:33 +00:00
|
|
|
};
|
|
|
|
mediaPlayerVolumeIcon2: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_volume2", mediaPlayerActiveFg },
|
2016-09-17 19:28:33 +00:00
|
|
|
};
|
|
|
|
mediaPlayerVolumeIcon3: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_volume3", mediaPlayerActiveFg },
|
2016-09-17 19:28:33 +00:00
|
|
|
};
|
2016-09-23 16:04:26 +00:00
|
|
|
mediaPlayerVolumeToggle: IconButton {
|
2016-10-12 19:34:25 +00:00
|
|
|
width: 31px;
|
|
|
|
height: 30px;
|
2016-09-23 16:04:26 +00:00
|
|
|
|
|
|
|
icon: mediaPlayerVolumeIcon0;
|
2016-10-12 19:34:25 +00:00
|
|
|
iconPosition: point(8px, 11px);
|
2016-12-05 11:01:08 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(3px, 5px);
|
|
|
|
rippleAreaSize: 25px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgOver;
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerVolumeMargin: 10px;
|
|
|
|
mediaPlayerVolumeSize: size(27px, 100px);
|
|
|
|
|
|
|
|
mediaPlayerNextButton: IconButton(mediaPlayerRepeatButton) {
|
|
|
|
width: 25px;
|
|
|
|
icon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_next", mediaPlayerActiveFg, mediaPlayerSkipIconPosition },
|
2016-10-12 19:34:25 +00:00
|
|
|
};
|
2016-12-05 11:01:08 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(0px, 5px);
|
2016-10-12 19:34:25 +00:00
|
|
|
}
|
|
|
|
mediaPlayerNextDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_next", mediaPlayerInactiveFg, mediaPlayerSkipIconPosition },
|
2016-10-12 19:34:25 +00:00
|
|
|
};
|
|
|
|
mediaPlayerPreviousButton: IconButton(mediaPlayerNextButton) {
|
|
|
|
icon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_next-flip_horizontal", mediaPlayerActiveFg, mediaPlayerSkipIconPosition },
|
2016-10-12 19:34:25 +00:00
|
|
|
};
|
2016-12-05 11:01:08 +00:00
|
|
|
rippleAreaPosition: point(1px, 5px);
|
2016-10-12 19:34:25 +00:00
|
|
|
}
|
|
|
|
mediaPlayerPreviousDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_next-flip_horizontal", mediaPlayerInactiveFg, mediaPlayerSkipIconPosition },
|
2016-10-12 19:34:25 +00:00
|
|
|
};
|
2019-05-04 08:54:38 +00:00
|
|
|
|
2021-11-18 13:13:44 +00:00
|
|
|
touchBarIconPlayerClose: icon {{ "player/player_close", windowFg }};
|
2019-05-04 10:24:56 +00:00
|
|
|
touchBarIconPlayerPlay: icon {{ "media_play", windowFg }};
|
|
|
|
touchBarIconPlayerPause: icon {{ "media_pause", windowFg }};
|
2021-11-18 13:13:44 +00:00
|
|
|
touchBarIconPlayerNext: icon {{ "player/player_next", windowFg }};
|
|
|
|
touchBarIconPlayerPrevious: icon {{ "player/player_next-flip_horizontal", windowFg }};
|
2019-05-04 08:54:38 +00:00
|
|
|
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerClose: IconButton(mediaPlayerRepeatButton) {
|
|
|
|
width: 37px;
|
2021-11-18 13:13:44 +00:00
|
|
|
icon: icon {{ "player/player_close", menuIconFg, point(10px, 12px) }};
|
|
|
|
iconOver: icon {{ "player/player_close", menuIconFgOver, point(10px, 12px) }};
|
2016-12-05 11:01:08 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(3px, 5px);
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2016-10-12 19:34:25 +00:00
|
|
|
}
|
|
|
|
mediaPlayerPlayback: FilledSlider {
|
|
|
|
fullWidth: 6px;
|
|
|
|
lineWidth: 2px;
|
|
|
|
activeFg: mediaPlayerActiveFg;
|
|
|
|
inactiveFg: mediaPlayerInactiveFg;
|
2016-12-21 15:05:58 +00:00
|
|
|
disabledFg: mediaPlayerDisabledFg;
|
2016-10-12 19:34:25 +00:00
|
|
|
duration: 150;
|
|
|
|
}
|
|
|
|
|
|
|
|
mediaPlayerButtonTransformDuration: 200;
|
|
|
|
|
|
|
|
mediaPlayerPanelButton: MediaPlayerButton {
|
|
|
|
playPosition: point(3px, 0px);
|
|
|
|
playOuter: size(22px, 18px);
|
|
|
|
pausePosition: point(1px, 1px);
|
|
|
|
pauseOuter: size(16px, 18px);
|
|
|
|
pauseStroke: 5px;
|
|
|
|
cancelPosition: point(0px, 1px);
|
|
|
|
cancelOuter: size(16px, 18px);
|
|
|
|
cancelStroke: 3px;
|
|
|
|
}
|
|
|
|
mediaPlayerPanelButtonSize: size(32px, 32px);
|
|
|
|
mediaPlayerPanelButtonPosition: point(8px, 7px);
|
|
|
|
|
|
|
|
mediaPlayerPanelMarginLeft: 10px;
|
|
|
|
mediaPlayerPanelMarginBottom: 10px;
|
|
|
|
mediaPlayerPanelWidth: 344px;
|
|
|
|
mediaPlayerCoverHeight: 102px;
|
|
|
|
|
2016-10-18 15:19:13 +00:00
|
|
|
mediaPlayerPanelClose: IconButton(mediaPlayerClose) {
|
|
|
|
width: 43px;
|
|
|
|
height: 28px;
|
2021-11-18 13:13:44 +00:00
|
|
|
icon: icon {{ "player/player_close", menuIconFg, point(16px, 14px) }};
|
|
|
|
iconOver: icon {{ "player/player_close", menuIconFgOver, point(16px, 14px) }};
|
2016-10-18 15:19:13 +00:00
|
|
|
}
|
|
|
|
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerPanelNextButton: IconButton(mediaPlayerRepeatButton) {
|
|
|
|
width: 37px;
|
2021-11-18 13:13:44 +00:00
|
|
|
icon: icon {{ "player/player_panel_next", mediaPlayerActiveFg, point(10px, 10px) }};
|
2016-10-12 19:34:25 +00:00
|
|
|
}
|
|
|
|
mediaPlayerPanelNextDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_panel_next", mediaPlayerInactiveFg, point(10px, 10px) },
|
2016-10-12 19:34:25 +00:00
|
|
|
};
|
|
|
|
mediaPlayerPanelPreviousButton: IconButton(mediaPlayerPanelNextButton) {
|
2021-11-18 13:13:44 +00:00
|
|
|
icon: icon {{ "player/player_panel_next-flip_horizontal", mediaPlayerActiveFg, point(10px, 10px) }};
|
2016-10-12 19:34:25 +00:00
|
|
|
}
|
|
|
|
mediaPlayerPanelPreviousDisabledIcon: icon {
|
2021-11-18 13:13:44 +00:00
|
|
|
{ "player/player_panel_next-flip_horizontal", mediaPlayerInactiveFg, point(10px, 10px) },
|
2016-10-12 19:34:25 +00:00
|
|
|
};
|
|
|
|
|
2016-10-18 15:19:13 +00:00
|
|
|
mediaPlayerPanelPadding: 16px;
|
2016-10-12 19:34:25 +00:00
|
|
|
mediaPlayerPanelNameTop: 24px;
|
|
|
|
mediaPlayerPanelPlayLeft: 9px;
|
|
|
|
mediaPlayerPanelPlaySkip: 7px;
|
|
|
|
mediaPlayerPanelPlayTop: 58px;
|
|
|
|
mediaPlayerPanelPlaybackTop: 32px;
|
|
|
|
mediaPlayerPanelPlaybackPadding: 8px;
|
2018-08-31 13:01:42 +00:00
|
|
|
mediaPlayerPanelPlayback: defaultContinuousSlider;
|
2016-10-12 19:34:25 +00:00
|
|
|
|
|
|
|
mediaPlayerPanelVolumeTop: 65px;
|
|
|
|
mediaPlayerPanelVolumeSkip: 3px;
|
|
|
|
mediaPlayerPanelVolumeWidth: 64px;
|
|
|
|
mediaPlayerPanelVolumeToggleSkip: 0px;
|
|
|
|
mediaPlayerPanelVolumeToggleTop: 57px;
|
2016-10-13 15:04:40 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
mediaPlayerScroll: ScrollArea(defaultSolidScroll) {
|
2016-10-13 15:04:40 +00:00
|
|
|
deltat: 10px;
|
2017-12-09 15:13:06 +00:00
|
|
|
deltab: 10px;
|
2016-10-13 15:04:40 +00:00
|
|
|
}
|
|
|
|
mediaPlayerListHeightMax: 280px;
|
|
|
|
mediaPlayerListMarginBottom: 10px;
|
2016-12-13 17:07:56 +00:00
|
|
|
mediaPlayerScrollShadow: Shadow {
|
2021-11-18 13:13:44 +00:00
|
|
|
bottom: icon {{ "player/playlist_shadow", windowShadowFg }};
|
2016-12-13 17:07:56 +00:00
|
|
|
extend: margins(2px, 2px, 2px, 2px);
|
|
|
|
}
|
2016-10-13 15:04:40 +00:00
|
|
|
|
|
|
|
mediaPlayerListMarginTop: 8px;
|
|
|
|
mediaPlayerFileLayout: OverviewFileLayout(overviewFileLayout) {
|
|
|
|
maxWidth: 344px;
|
2016-10-14 17:10:15 +00:00
|
|
|
songIconBg: mediaPlayerActiveFg;
|
|
|
|
songOverBg: mediaPlayerActiveFg;
|
2016-10-13 15:04:40 +00:00
|
|
|
}
|
2017-05-22 15:25:49 +00:00
|
|
|
|
|
|
|
mediaPlayerFloatSize: 128px;
|
|
|
|
mediaPlayerFloatMargin: 12px;
|