Over the last few days I’ve changed the internal data structures and the corresponding code quite a bit to shift more of the logic from the QML/JS part to the individual, API specific, Python modules.
This was meant to untangle the mess MultiModal has evolved into over the years, starting with only one data provider and adding layers of exceptions upon exceptions to adapt to now 3 completely different APIs in the UK and 2 in Germany all using completely different technologies (Json, SOAP, XML, …).
The real challenge turned out to be finding a default colour for bus services (UK + Germany) and trams (Germany).
Traditionally MultiModal used Theme.secondaryHighlightColor as the background colour of the bus rectangle but I would like to get rid of yet another exception (as the value is not available in Python) and determine colours solely inside the Python modules.
Any ideas for a colour value that would be used for bus services and (different one?) for tram services if there are no line specific colours defined?