Default status screen colours

Discussions about the Ryde "Set-top Box" Style Digital ATV Receiver. See https://wiki.batc.org.uk/Ryde_Receiver
Post Reply
User avatar
G3GJA
Posts: 374
Joined: Sun Nov 20, 2011 3:44 pm

Default status screen colours

Post by G3GJA » Sat Dec 28, 2024 12:19 pm

Tim

Is it possible to globally change the colours of the status screens?

The black on red has a low contrast range because the luminance component varies between 0% and 30%.

On GB3EY I'd like to be able to change them to yellow text on a blue background. That would give luminance values of 89% and 11%, a range of 78% which is more than double the contrast.

I have tried myself, but only succeeded in making a mess of it!

73

Clive G3GJA

g8lce
Posts: 405
Joined: Sun Dec 06, 2015 10:26 am

Re: Default status screen colours

Post by g8lce » Sun Dec 29, 2024 10:31 am

See

viewtopic.php?t=7024

and a PDF of the info:
Editing Ryde Screen.pdf
(145.72 KiB) Downloaded 26 times
Martin G8LCE

User avatar
G3GJA
Posts: 374
Joined: Sun Nov 20, 2011 3:44 pm

Re: Default status screen colours

Post by G3GJA » Sun Dec 29, 2024 11:16 am

Thanks for the reference Martin.

I've got as far as changing the background successfully, but it's the text colour I was having difficulty with.

Did you ever manage to change it from black? I changed the status screen text but it messed up the station ID that pops up briefly (with the blue borders and white background).

Clive

MW0RUD
Posts: 99
Joined: Fri Apr 24, 2020 3:09 pm

Re: Default status screen colours

Post by MW0RUD » Sun Dec 29, 2024 3:22 pm

Hi Clive

Have a look in rydeplayer/states/playback.py

The line below is the one where the text is rendered and pulls the colour out of the theme.

Code: Select all

lineSurface=self.theme.fonts.playStateTitle.render(line, True, self.theme.colours.black)
Tim

User avatar
G3GJA
Posts: 374
Joined: Sun Nov 20, 2011 3:44 pm

Re: Default status screen colours

Post by G3GJA » Sun Dec 29, 2024 4:33 pm

Hi Tim

Do I need to define the colour yellow first? Perhaps in the player.py section:

Code: Select all

# container for the theme
class Theme(object):
    def __init__(self, displaySize, ftfont=False):
        self.colours = type('colours', (object,), {
            'transparent': (0,0,0,0),
            'transpBack': (0,0,0,51),
            'black': (0,0,0,255),
            'white': (255,255,255,255),
            'red': (255,0,0,255),
            'textError': (255,0,0,255),
            'menuBlackInactive': (0,0,0,127),
            'backgroundMenu': (57,169,251,255),
            'backgroundSubMenu': (57,169,251,255),
            'backgroundPlayState': (0,0,255,255),
Thanks

Clive

User avatar
G3GJA
Posts: 374
Joined: Sun Nov 20, 2011 3:44 pm

Re: Default status screen colours

Post by G3GJA » Sun Dec 29, 2024 4:56 pm

Thanks for putting me on the right track, Tim.

I've answered my query about defining the colour in player.py by modifying it and now I've yellow text on a blue background.

73

Clive G3GJA

Post Reply

Return to “The Ryde Digital ATV Receiver”