💅 style(controlcenter): refine player mini placeholder appearance
This commit is contained in:
1 parent
ce99b7a73f
commit
fd4ee70f64
2 files changed
+10
-5
No files matched your search
@@ -512,7 +512,7 @@ class Player(Box):
|
|||||||
|
|
||||||
class PlacheholderMini(Box):
|
class PlacheholderMini(Box):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(style_classes="player-mini", **kwargs)
|
super().__init__(style_classes="player-box", **kwargs)
|
||||||
|
|
||||||
self.album_cover = Box(style_classes="album-image")
|
self.album_cover = Box(style_classes="album-image")
|
||||||
self.album_cover.set_style(
|
self.album_cover.set_style(
|
||||||
@@ -520,7 +520,7 @@ class PlacheholderMini(Box):
|
|||||||
)
|
)
|
||||||
self.player_name = Image(
|
self.player_name = Image(
|
||||||
name="player-icon",
|
name="player-icon",
|
||||||
icon_name="disc-symbolic",
|
icon_name="media-player-48",
|
||||||
size=20,
|
size=20,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+8
-3
@@ -1,8 +1,7 @@
|
|||||||
.player-box {
|
.player-box {
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
min-width: 313px;
|
min-width: 300px;
|
||||||
margin: 2px;
|
padding: 1px;
|
||||||
padding: 2px;
|
|
||||||
box-shadow:
|
box-shadow:
|
||||||
inset 0 0 100px rgba(148, 148, 148, 0.3),
|
inset 0 0 100px rgba(148, 148, 148, 0.3),
|
||||||
inset 70px 0 20px rgba(255, 255, 255, 0.3),
|
inset 70px 0 20px rgba(255, 255, 255, 0.3),
|
||||||
@@ -15,10 +14,16 @@
|
|||||||
#player-container {
|
#player-container {
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
padding: 4px;
|
||||||
|
margin-left: 2px;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#player-details {
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
.album-image {
|
.album-image {
|
||||||
min-width: 60px;
|
min-width: 60px;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
|||||||
Reference in new issue
Block a user