mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Transparent progressbar
This commit is contained in:
@@ -244,7 +244,7 @@ class Progressbar(TouchObject):
|
|||||||
self.value = 0
|
self.value = 0
|
||||||
self.max = max_value
|
self.max = max_value
|
||||||
self.back_color = (0, 0, 0, 128)
|
self.back_color = (0, 0, 0, 128)
|
||||||
self.main_color = (0, 150, 255)
|
self.main_color = (0, 150, 255, 150)
|
||||||
self.surface = pygame.Surface(self.size, pygame.SRCALPHA)\
|
self.surface = pygame.Surface(self.size, pygame.SRCALPHA)\
|
||||||
.convert_alpha()
|
.convert_alpha()
|
||||||
self.surface.fill(self.back_color)
|
self.surface.fill(self.back_color)
|
||||||
|
|||||||
@@ -287,6 +287,7 @@ class MainScreen(BaseScreen):
|
|||||||
current)
|
current)
|
||||||
|
|
||||||
def load_image(self):
|
def load_image(self):
|
||||||
|
#logger.error(self.core.library.get_images({self.track.artists.uri}).get()[self.track.album.uri])
|
||||||
size = self.base_size * 4
|
size = self.base_size * 4
|
||||||
image_original = pygame.image.load(
|
image_original = pygame.image.load(
|
||||||
self.get_cover_folder() +
|
self.get_cover_folder() +
|
||||||
|
|||||||
Reference in New Issue
Block a user