Fixed Expanded No Playing(rare-case)
This commit is contained in:
1 parent
aec638ef6a
commit
82a0886c74
4 files changed
+18
-4
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ class About(Gtk.Window):
|
||||
self.set_default_size(300, 550)
|
||||
self.set_size_request(300, 500)
|
||||
self.set_resizable(False)
|
||||
self.set_wmclass("modus-about-menu", "modus-about-menu")
|
||||
self.set_title("About PC")
|
||||
self.set_name("about-menu")
|
||||
self.set_visible(False)
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ class PlayerBoxStack(Box):
|
||||
# Album cover with fallback image using Image widget
|
||||
|
||||
album_cover = Box(
|
||||
name="macos-album-image",
|
||||
name="macos-album-image-no",
|
||||
)
|
||||
album_cover.set_style(f"background-image:url('{fallback_cover_path}')")
|
||||
|
||||
@@ -223,9 +223,9 @@ class PlayerBoxStack(Box):
|
||||
# Track info showing "No media playing"
|
||||
track_title = Label(
|
||||
label="No media playing",
|
||||
name="player-title",
|
||||
name="player-title-no",
|
||||
justification="left",
|
||||
max_chars_width=12,
|
||||
max_chars_width=30,
|
||||
ellipsization="end",
|
||||
h_align="start",
|
||||
)
|
||||
|
||||
@@ -587,6 +587,15 @@
|
||||
box-shadow: 0 2px 8px alpha(#000, 0.3);
|
||||
}
|
||||
|
||||
#macos-album-image-no {
|
||||
min-width: 90px;
|
||||
min-height: 90px;
|
||||
border-radius: 9px;
|
||||
margin-left: 12px;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
box-shadow: 0 2px 8px alpha(#000, 0.3);
|
||||
}
|
||||
#macos-album-image image {
|
||||
min-width: 70px;
|
||||
min-height: 70px;
|
||||
|
||||
@@ -78,6 +78,11 @@
|
||||
font-weight: 700;
|
||||
font-size: 16px;
|
||||
}
|
||||
#player-title-no {
|
||||
font-weight: 700;
|
||||
margin-left: 120px;
|
||||
font-size: 16px;
|
||||
}
|
||||
#player-app-icon {
|
||||
/* margin-bottom: 2px; */
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user