getColorDesignSystem_buttonBackground static method
Implementation
static Color getColorDesignSystem_buttonBackground(LevelDS levelDS, Color? colorCustom ) {
//mobile enter custom
if ( colorCustom != null ) return colorCustom;
//default
var color = DSColor.ds_button_large_background;
//choose
if( levelDS == LevelDS.parent ) {
color = DSColor.ds_button_large_background;
}
if( levelDS == LevelDS.l1 ) {
color = DSColor.ds_button_large_background;
}
if( levelDS == LevelDS.l2 ) {
color = DSColor.ds_button_small_background;
}
if( levelDS == LevelDS.l3 ) {
color = DSColor.ds_button_small_background;
}
if( levelDS == LevelDS.l4 ) {
color = DSColor.ds_button_small_background;
}
return color;
}