view keyboard_colors/custom/custom.py @ 3:eb2aa09653bd default tip

beginnings of CPU colors, daemon
author Brad Greco <brad@bgreco.net>
date Mon, 29 Mar 2021 20:27:09 -0400
parents b6d0a1e6ba3a
children
line wrap: on
line source

from keyboard_colors.color_profile import ColorProfileBase, Color


class ColorProfile(ColorProfileBase):

    type_name = 'Custom colors'

    def __init__(self):
        super().__init__()
        self.color = Color.from_hex('#FF3300')

    def next_color(self):
        return Color.from_hex('#FF0033')