Add colors to each event in hendelse

This commit is contained in:
2018-02-20 19:36:06 +01:00
parent f6174706f8
commit 550161bba2
6 changed files with 21 additions and 4 deletions

View File

@@ -49,4 +49,5 @@ abstract class Event {
public abstract function getDescription(); /* : string */
public abstract function getColor(); /* : string */
}

View File

@@ -56,4 +56,8 @@ class SimpleEvent extends Event {
return $this->isDBEvent;
}
public function getColor() {
return "#3b7";
}
}

View File

@@ -41,4 +41,8 @@ class AnimekveldEvent extends Event {
];
}
public function getColor() {
return "#35a";
}
}

View File

@@ -60,4 +60,8 @@ class BrettspillEvent extends Event {
];
}
public function getColor() {
return "#000";
}
}

View File

@@ -43,4 +43,8 @@ class NerdepitsaEvent extends Event {
];
}
public function getColor() {
return "#c35";
}
}