bad fix for bad album art scaling
This commit is contained in:
1 parent
da82bfa3b9
commit
fd622d8a65
2 files changed
+9
-6
No files matched your search
+4
-5
@@ -370,8 +370,8 @@ class CoverArtPixels(Container):
|
|||||||
def render(self) -> RenderResult:
|
def render(self) -> RenderResult:
|
||||||
if self.cover:
|
if self.cover:
|
||||||
width, height = self.size
|
width, height = self.size
|
||||||
width -= 4
|
|
||||||
height -= 4
|
height += 100
|
||||||
|
|
||||||
if width > height:
|
if width > height:
|
||||||
width = height
|
width = height
|
||||||
@@ -389,8 +389,7 @@ class CoverArtPixels(Container):
|
|||||||
|
|
||||||
if CACHE and os.path.exists(cache_path):
|
if CACHE and os.path.exists(cache_path):
|
||||||
try:
|
try:
|
||||||
image = Image.open(cache_path)
|
self.cover = Image.open(cache_path)
|
||||||
self.cover = image
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Failed to load cached cover art {cache_path}: {e}")
|
logging.error(f"Failed to load cached cover art {cache_path}: {e}")
|
||||||
|
|
||||||
@@ -529,7 +528,7 @@ class MainView(Screen):
|
|||||||
with Horizontal():
|
with Horizontal():
|
||||||
with Vertical(classes="info", id='info'):
|
with Vertical(classes="info", id='info'):
|
||||||
yield NowPlaying(id="now-playing")
|
yield NowPlaying(id="now-playing")
|
||||||
yield ProgressBar()
|
# yield ProgressBar()
|
||||||
with Vertical(classes="column"):
|
with Vertical(classes="column"):
|
||||||
yield Label("Queue")
|
yield Label("Queue")
|
||||||
yield QueueTable(id="queue")
|
yield QueueTable(id="queue")
|
||||||
|
|||||||
+5
-1
@@ -1,6 +1,10 @@
|
|||||||
.info {
|
.info {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
padding-right: 2;
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nowplaying {
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#textinfo {
|
#textinfo {
|
||||||
|
|||||||
Reference in new issue
Block a user