Skip to content

Commit 462b473

Browse files
committed
fix: Fix colours being overriden in light mode
1 parent e0d462a commit 462b473

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/tauon/t_modules/t_main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,6 +1586,7 @@ def light_mode(self) -> None:
15861586
self.gallery_background = self.grey(230)
15871587
self.gallery_artist_line = self.grey(40)
15881588
self.pluse_colour = ColourRGBA(212, 66, 244, 255)
1589+
self.active_lyric = ColourRGBA(180, 130, 210, 255)
15891590

15901591
# tauon.view_box.off_colour = self.grey(200)
15911592

@@ -20574,8 +20575,6 @@ def render(self, index: int, x: int, y: int, side_panel: bool = False, w: int =
2057420575

2057520576
if i == line_active and highlight:
2057620577
colour = self.colours.active_lyric
20577-
if self.colours.lm:
20578-
colour = ColourRGBA(180, 130, 210, 255)
2057920578

2058020579
location = [ round(x), round(possible_y), 4, allowed_width - 12 ]
2058120580
# see t_draw.py -> __draw_text_cairo -> line that says #Hack
@@ -39185,8 +39184,6 @@ def synced_render(self, index: int, x: int, y: int, hide_art: bool = False, w: i
3918539184

3918639185
if i == self.line_active and highlight and test_time >= line[1]:
3918739186
colour = self.colours.active_lyric
39188-
if self.colours.lm:
39189-
colour = ColourRGBA(180, 130, 210, 255)
3919039187

3919139188
location[1] = round(possible_y)
3919239189
text = line[2]

src/tauon/t_modules/t_themeload.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ def load_theme(colours: ColoursClass, path: Path) -> None:
351351
# if "panel button on" in p:
352352
# colours.corner_button_active = get_colour_from_line(p)
353353
colours.post_config()
354-
if colours.lm:
355-
colours.light_mode()
356354

357355

358356
class Drawable:

0 commit comments

Comments
 (0)