* Add MPRIS player background blur * Added edge fade * Only blur cover if the size or source changes
47 lines
1.1 KiB
SCSS
47 lines
1.1 KiB
SCSS
@define-color mpris-album-art-overlay rgba(0, 0, 0, 0.55);
|
|
@define-color mpris-button-hover rgba(0, 0, 0, 0.50);
|
|
|
|
$mpris-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
|
|
|
|
.widget-mpris {
|
|
/* The parent to all players */
|
|
.widget-mpris-player {
|
|
padding: 8px;
|
|
padding: 16px;
|
|
margin: 16px 20px;
|
|
background-color: #{"@mpris-album-art-overlay"};
|
|
border-radius: $border-radius;
|
|
box-shadow: $mpris-shadow;
|
|
|
|
button:hover {
|
|
/* The media player buttons (play, pause, next, etc...) */
|
|
background: #{"@noti-bg-hover"};
|
|
}
|
|
|
|
.widget-mpris-album-art {
|
|
border-radius: $border-radius;
|
|
box-shadow: $mpris-shadow;
|
|
}
|
|
.widget-mpris-title {
|
|
font-weight: bold;
|
|
font-size: 1.25rem;
|
|
}
|
|
.widget-mpris-subtitle {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
& > box > button {
|
|
/* Change player control buttons */
|
|
&:hover {
|
|
background-color: #{"@mpris-button-hover"};
|
|
}
|
|
}
|
|
}
|
|
|
|
& > box > button {
|
|
/* Change player side buttons */
|
|
}
|
|
& > box > button:disabled {
|
|
/* Change player side buttons insensitive */
|
|
}
|
|
}
|