Mercurial > system76-keyboard-colors
annotate 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 |
rev | line source |
---|---|
3
eb2aa09653bd
beginnings of CPU colors, daemon
Brad Greco <brad@bgreco.net>
parents:
1
diff
changeset
|
1 from keyboard_colors.color_profile import ColorProfileBase, Color |
0 | 2 |
1 | 3 |
0 | 4 class ColorProfile(ColorProfileBase): |
5 | |
1 | 6 type_name = 'Custom colors' |
0 | 7 |
1 | 8 def __init__(self): |
9 super().__init__() | |
3
eb2aa09653bd
beginnings of CPU colors, daemon
Brad Greco <brad@bgreco.net>
parents:
1
diff
changeset
|
10 self.color = Color.from_hex('#FF3300') |
eb2aa09653bd
beginnings of CPU colors, daemon
Brad Greco <brad@bgreco.net>
parents:
1
diff
changeset
|
11 |
eb2aa09653bd
beginnings of CPU colors, daemon
Brad Greco <brad@bgreco.net>
parents:
1
diff
changeset
|
12 def next_color(self): |
eb2aa09653bd
beginnings of CPU colors, daemon
Brad Greco <brad@bgreco.net>
parents:
1
diff
changeset
|
13 return Color.from_hex('#FF0033') |