additional colors under admin control
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -65,6 +65,10 @@ def _migrate_add_missing_columns(sync_conn):
|
||||
("station_config", "color_success", sa.String(7), "#4a9e4f"),
|
||||
("station_config", "color_danger", sa.String(7), "#c83030"),
|
||||
("station_config", "color_info", sa.String(7), "#3a8abf"),
|
||||
("station_config", "color_white", sa.String(7), "#ffffff"),
|
||||
("station_config", "color_light", sa.String(7), "#f0ebe3"),
|
||||
("station_config", "color_medium", sa.String(7), "#8a8580"),
|
||||
("station_config", "color_black", sa.String(7), "#1a1816"),
|
||||
]
|
||||
|
||||
# Determine dialect
|
||||
|
||||
@@ -120,6 +120,12 @@ class StationConfig(Base):
|
||||
color_danger = Column(String(7), nullable=False, default="#c83030")
|
||||
color_info = Column(String(7), nullable=False, default="#3a8abf")
|
||||
|
||||
# Neutral colors
|
||||
color_white = Column(String(7), nullable=False, default="#ffffff")
|
||||
color_light = Column(String(7), nullable=False, default="#f0ebe3")
|
||||
color_medium = Column(String(7), nullable=False, default="#8a8580")
|
||||
color_black = Column(String(7), nullable=False, default="#1a1816")
|
||||
|
||||
|
||||
class HistoryEntry(Base):
|
||||
__tablename__ = "history_entries"
|
||||
|
||||
@@ -231,6 +231,10 @@ STATION_CONFIG: dict = {
|
||||
"color_success": "#4a9e4f",
|
||||
"color_danger": "#c83030",
|
||||
"color_info": "#3a8abf",
|
||||
"color_white": "#ffffff",
|
||||
"color_light": "#f0ebe3",
|
||||
"color_medium": "#8a8580",
|
||||
"color_black": "#1a1816",
|
||||
}
|
||||
|
||||
HISTORY_ENTRIES: list[dict] = [
|
||||
|
||||
Reference in New Issue
Block a user