getColorDesignSystem_buttonBackground static method

Color getColorDesignSystem_buttonBackground(
  1. LevelDS levelDS,
  2. Color? colorCustom
)

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;
}