#ifndef TF_INDICATORS_THEME_MQH
#define TF_INDICATORS_THEME_MQH

#define TF_SUITE_VERSION "1.0.0"

color TF_ColorBackground(const bool dark=true)
  {
   return(dark ? C'15,28,46' : C'244,247,250');
  }

color TF_ColorText(const bool dark=true)
  {
   return(dark ? C'226,232,240' : C'30,41,59');
  }

color TF_ColorMuted(const bool dark=true)
  {
   return(dark ? C'148,163,184' : C'71,85,105');
  }

color TF_ColorTrend()      { return(C'34,197,94');  }
color TF_ColorRange()      { return(C'56,189,248'); }
color TF_ColorTransition() { return(C'250,204,21'); }
color TF_ColorShock()      { return(C'248,113,113');}
color TF_ColorAccent()     { return(C'45,212,191'); }

bool TF_IsDarkChart(const long chart_id=0)
  {
   color bg=(color)ChartGetInteger(chart_id,CHART_COLOR_BACKGROUND);
   uint argb=ColorToARGB(bg,255);
   int red=(int)((argb>>16)&255);
   int green=(int)((argb>>8)&255);
   int blue=(int)(argb&255);
   int brightness=(int)(0.299*red+0.587*green+0.114*blue);
   return(brightness<128);
  }

#endif
