selected track and clip gets displayed at the bottom of the UI

This commit is contained in:
2025-08-03 20:09:55 +02:00
parent 46c08009de
commit 1d247fc0ed
3 changed files with 29 additions and 7 deletions

View File

@ -11,6 +11,7 @@ class ItemSelection:
self.surface = pygame.Surface((0,0), pygame.SRCALPHA)
self.max_item_width = max_item_width
self.max_display_count = max_display_count
self.selected_item_srf = None
def set_items(self, items):
self.items = items
@ -34,6 +35,7 @@ class ItemSelection:
if i == math.floor(self.get_display_count()/2):
#if i == self.index:
text_surface = font_helvetica16.render(text, False, color_primary_light)
self.selected_item_srf = text_surface
else:
text_surface = font_helvetica16.render(text, False, color_primary)
opacity = -15 + math.floor((i+1) * 2 * 255 / self.max_display_count