MCPcopy Create free account
hub / github.com/comaps/comaps / GetDarkMapStyleVariant

Function GetDarkMapStyleVariant

libs/indexer/map_style.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57MapStyle GetDarkMapStyleVariant(MapStyle mapStyle)
58{
59 if (MapStyleIsDark(mapStyle) || mapStyle == MapStyleMerged)
60 return mapStyle;
61
62 switch (mapStyle)
63 {
64 case MapStyleDefaultLight: return MapStyleDefaultDark;
65 case MapStyleVehicleLight: return MapStyleVehicleDark;
66 case MapStyleOutdoorsLight: return MapStyleOutdoorsDark;
67 default: CHECK(false, ()); return MapStyleDefaultDark;
68 }
69}
70
71MapStyle GetLightMapStyleVariant(MapStyle mapStyle)
72{

Callers 1

PreferencesDialogMethod · 0.85

Calls 1

MapStyleIsDarkFunction · 0.85

Tested by

no test coverage detected