mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed style of media player controls.
This commit is contained in:
parent
a08e42fb97
commit
7149119098
2 changed files with 9 additions and 5 deletions
|
@ -106,7 +106,7 @@ mediaPlayerRepeatButton: IconButton {
|
||||||
icon: icon {
|
icon: icon {
|
||||||
{ "player/player_repeat", mediaPlayerActiveFg }
|
{ "player/player_repeat", mediaPlayerActiveFg }
|
||||||
};
|
};
|
||||||
iconPosition: point(3px, 6px);
|
iconPosition: point(2px, 5px);
|
||||||
|
|
||||||
rippleAreaPosition: point(2px, 6px);
|
rippleAreaPosition: point(2px, 6px);
|
||||||
rippleAreaSize: 24px;
|
rippleAreaSize: 24px;
|
||||||
|
@ -135,6 +135,10 @@ mediaPlayerReverseDisabledIconOver: icon {
|
||||||
mediaPlayerShuffleIcon: icon {
|
mediaPlayerShuffleIcon: icon {
|
||||||
{ "player/player_shuffle", mediaPlayerActiveFg }
|
{ "player/player_shuffle", mediaPlayerActiveFg }
|
||||||
};
|
};
|
||||||
|
mediaPlayerOrderButton: IconButton(mediaPlayerRepeatButton) {
|
||||||
|
iconPosition: point(2px, 6px);
|
||||||
|
rippleAreaPosition: point(2px, 6px);
|
||||||
|
}
|
||||||
mediaPlayerRepeatDisabledRippleBg: windowBgOver;
|
mediaPlayerRepeatDisabledRippleBg: windowBgOver;
|
||||||
|
|
||||||
mediaPlayerPlayButton: IconButton(mediaPlayerRepeatButton) {
|
mediaPlayerPlayButton: IconButton(mediaPlayerRepeatButton) {
|
||||||
|
@ -233,7 +237,7 @@ mediaPlayerVolumeToggle: IconButton(mediaPlayerRepeatButton) {
|
||||||
{ "player/player_mini_full", mediaPlayerActiveFg },
|
{ "player/player_mini_full", mediaPlayerActiveFg },
|
||||||
};
|
};
|
||||||
iconPosition: point(5px, 6px);
|
iconPosition: point(5px, 6px);
|
||||||
rippleAreaPosition: point(4px, 5px);
|
rippleAreaPosition: point(5px, 6px);
|
||||||
}
|
}
|
||||||
mediaPlayerVolumeMargin: 10px;
|
mediaPlayerVolumeMargin: 10px;
|
||||||
mediaPlayerVolumeSize: size(27px, 100px);
|
mediaPlayerVolumeSize: size(27px, 100px);
|
||||||
|
@ -267,9 +271,9 @@ mediaPlayerClose: IconButton(mediaPlayerRepeatButton) {
|
||||||
width: 39px;
|
width: 39px;
|
||||||
icon: icon {{ "player/panel_close", menuIconFg }};
|
icon: icon {{ "player/panel_close", menuIconFg }};
|
||||||
iconOver: icon {{ "player/panel_close", menuIconFgOver }};
|
iconOver: icon {{ "player/panel_close", menuIconFgOver }};
|
||||||
iconPosition: point(5px, 6px);
|
iconPosition: point(4px, 6px);
|
||||||
|
|
||||||
rippleAreaPosition: point(4px, 5px);
|
rippleAreaPosition: point(4px, 6px);
|
||||||
ripple: RippleAnimation(defaultRippleAnimation) {
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
||||||
color: windowBgOver;
|
color: windowBgOver;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ Widget::Widget(
|
||||||
, _playPause(this, st::mediaPlayerPlayButton)
|
, _playPause(this, st::mediaPlayerPlayButton)
|
||||||
, _volumeToggle(rightControls(), st::mediaPlayerVolumeToggle)
|
, _volumeToggle(rightControls(), st::mediaPlayerVolumeToggle)
|
||||||
, _repeatToggle(rightControls(), st::mediaPlayerRepeatButton)
|
, _repeatToggle(rightControls(), st::mediaPlayerRepeatButton)
|
||||||
, _orderToggle(rightControls(), st::mediaPlayerRepeatButton)
|
, _orderToggle(rightControls(), st::mediaPlayerOrderButton)
|
||||||
, _speedToggle(rightControls(), st::mediaPlayerSpeedButton)
|
, _speedToggle(rightControls(), st::mediaPlayerSpeedButton)
|
||||||
, _close(this, st::mediaPlayerClose)
|
, _close(this, st::mediaPlayerClose)
|
||||||
, _shadow(this)
|
, _shadow(this)
|
||||||
|
|
Loading…
Add table
Reference in a new issue