getColorDesignSystem_text static method
Implementation
static Color getColorDesignSystem_text(LevelDS levelDS, Color? colorCustom ) {
//mobile enter custom
if ( colorCustom != null ) return colorCustom;
//default
var color = DSColor.text_h1;
//choose
if( levelDS == LevelDS.parent ) {
color = DSColor.text_parent;
}
if( levelDS == LevelDS.l1 ) {
color = DSColor.text_h1;
}
if( levelDS == LevelDS.l1_dark ) {
color = DSColor.ds_text_h1_for_background_dark;
}
if( levelDS == LevelDS.l2 ) {
color = DSColor.text_h2;
}
if( levelDS == LevelDS.l2_dark ) {
color = DSColor.ds_text_h2_for_background_dark;
}
if( levelDS == LevelDS.l3 ) {
color = DSColor.text_h3;
}
if( levelDS == LevelDS.l3_dark ) {
color = DSColor.ds_text_h3_for_background_dark;
// Log.i( "l3_dark");
}
if( levelDS == LevelDS.l4 ) {
color = DSColor.text_h4;
}
if( levelDS == LevelDS.l4_dark ) {
color = DSColor.ds_text_h4_for_background_dark;
}
// Log.i( "color " + color.toString());
return color;
}