Toolbar and navbar color from api


#1

Hi,

this is settings from api, i call api in app.commponents and display title in sidebar.

How display color for toolbar or ion-navbar for all pages?

{
  "id": 9,
  "app_id": "app",
  "title": "app",
  "main_color": "rgb(96, 117, 191)",
  "menu_position": 0,
  "tool_bar": 1,
  "footer_logo": "2018-04-30-10-18-28_logo.png",
  "footer_title": "app footer",
  "icon": "2018-04-30-09-50-45-icon.png",
  "splash_schreen": "2018-04-30-09-50-45-splash.png",
  "created_at": "2018-04-30 09:48:38",
  "updated_at": "2018-04-30 14:30:13"
}

Thanks.