-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmira_config.py
62 lines (46 loc) · 1.45 KB
/
mira_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""
Minimalist Internet Radio - config settings
"""
class MiraConfig:
""" config settings """
class General:
MPC_PATH = "/usr/bin/mpc"
SAVED_STATE_FILE = "~/.mira/mira_state.json"
LOGFILE = "~/.mira/mira.log"
LOGLEVEL_DEBUG = False
class Display:
""" display properties """
WIDTH = 800
HEIGHT = 480
class Title:
HEIGHT = 40
USE_24h_TIME_FORMAT = True
BACKGROUND_COLOR = "green yellow"
UPDATE_INTERVAL = 5000
class Status:
""" status pane """
FONT_LINE1 = ("Helvetica", 26)
FONT_LINE2 = ("Helvetica", 22)
# Specify a color name, for a complete list, check out https://wiki.tcl.tk/37701
BACKGROUND_COLOR = "yellow2"
# Alternatively, specify (R, G, B) values, 0..255.
#BACKGROUND_COLOR = (255, 0, 0)
# Specify text color in a similar way.
TEXT_COLOR = "black"
# Status update in milliseconds
INITAL_UPDATE_INTERVAL = 4000
UPDATE_INTERVAL = 2000
class Spacing:
""" spacing area """
HEIGHT = 20
BACKGROUND_COLOR = "LightYellow3"
class Buttons:
""" preset buttons """
# layout
NUM_BUTTONS_PER_ROW = 2
BUTTON_HEIGHT = 80
FONT = ("Helvetica", 24)
#BACKGROUND_COLOR = "PaleGreen2"
BACKGROUND_COLOR = "#8ce68c"
TEXT_COLOR = "black"
PRESSED_BUTTON_COLOR = "#6db36d"