@use "sass:color";
@use "../sizes" as *;
@use "../colors" as *;
@use "../button/colors" as *;
// adduse


$list-group-color: null !default;
$list-border-color: null !default;
$list-group-header-bg: null !default;
$list-normal-color: null !default;
$list-expanded-group-color: null !default;
$list-item-hover-bg: null !default;
$list-item-selected-bg: null !default;
$list-item-selected-hover-bg: null !default;
$list-item-focused-selected-bg: null !default;
$list-item-hover-color: null !default;
$list-item-selected-color: null !default;
$list-header-indicator-color: null !default;
$list-item-active-bg: null !default;
$list-holdmenu-bg: null !default;
$list-holdmenu-border-color: null !default;
$list-holdmenu-shadow-color: null !default;
$list-menu-button-default-color: null !default;
$list-menu-button-default-bg: null !default;
$list-menu-button-delete-bg: null !default;
$list-button-delete-shadow-color: null !default;
$list-item-ghost-bg: null !default;
$list-item-ghost-color: null !default;
$list-item-ghost-border-color: null !default;
$list-item-ghost-shadow-color: null !default;
$list-icon-color: null !default;
$list-item-chevron-icon-color: null !default;
$list-item-icon-toggle-delete-bg: null !default;


@if $mode == "light" {
  /**
    * $name 10. Group header text color
    * $type color
    */
  $list-group-color: $base-text-color !default;
  $list-border-color: $base-border-color !default;

  /**
    * $name 20. Group header background color
    * $type color
    */
  $list-group-header-bg: color.change($base-bg, $alpha: 0) !default;
  $list-normal-color: $base-text-color !default;
  $list-expanded-group-color: $base-accent !default;
  $list-item-hover-bg: $base-hover-bg !default;

  /**
    * $name 30. Selected item state background color
    * $type color
    */
  $list-item-selected-bg: color.change(#000, $alpha: 0.12) !default;
  $list-item-selected-hover-bg: color.change(#000, $alpha: 0.14) !default;
  $list-item-focused-selected-bg: color.change(#000, $alpha: 0.18) !default;

  $list-item-hover-color: $base-hover-color !default;
  $list-item-selected-color: color.change($base-text-color, $alpha: 1) !default;
  $list-header-indicator-color: $base-icon-color !default;

  /**
    * $name 40. Active state item background color
    * $type color
    */
  $list-item-active-bg: darken($base-bg, 20%) !default;
  $list-holdmenu-bg: $base-bg !default;
  $list-holdmenu-border-color: $list-border-color !default;
  $list-holdmenu-shadow-color: color.change($base-shadow-color, $alpha: 0.1) !default;

  $list-menu-button-default-color: $button-default-color !default;
  $list-menu-button-default-bg: $button-default-bg !default;

  $list-menu-button-delete-bg: $base-danger !default;
  $list-button-delete-shadow-color: color.change($base-shadow-color, $alpha: 0.24) !default;

  $list-item-ghost-bg: $base-bg !default;
  $list-item-ghost-color: lighten($base-text-color, 38.5%) !default;
  $list-item-ghost-border-color: $base-accent !default;
  $list-item-ghost-shadow-color: $base-shadow-color !default;

  $list-icon-color: $base-icon-color !default;
  $list-item-chevron-icon-color: $base-spin-icon-color !default;
  $list-item-icon-toggle-delete-bg: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AAAA0ElEQVRYw+2Y0QrDMAhFEwYj7/mM+1V+sx/UvWywQexiNbdQqq/FQ8y1akq5bY2hokOgUAg6anZ4xWa4ZoRvZvhvb5H0bA6vuSnKSp0b8HYCwoGJICYxUcQE5sB1eyXgFO0xQach7JRNVvest+XnMM9CgCTpal9j6YjRWQiQxAqxqwV9CaT/QmTwySPcHuSvtkq8B+kJkFG6nuGJQE64eIaEr1PxpB/kdfoJqf1SBgnSSEQZ7khjKmngJq0OpCWItM6RFlPSik17LCA+e9z2sRfnMjs2IEgNwQAAAABJRU5ErkJggg==") !default;
}

@if $mode == "dark" {
  /**
    * $name 20. Group border color
    * $type color
    */
  $list-border-color: $base-border-color !default;

  /**
    * $name 30. Group header background color
    * $type color
    */
  $list-group-header-bg: color.change($base-bg, $alpha: 0) !default;

  /**
    * $name 10. Item text color
    * $type color
    */
  $list-normal-color: $base-text-color !default;

  /**
    * $name 20. Group header text color
    * $type color
    */
  $list-group-color: color.change($base-text-color, $alpha: 0.6) !default;

  /**
    * $name 25. Expanded group header text color
    * $type color
    */
  $list-expanded-group-color: $base-accent !default;

  /**
    * $name 30. Hovered item background color
    * $type color
    */
  $list-item-hover-bg: $base-hover-bg !default;

  /**
    * $name 50. Selected item state background color
    * $type color
    */
  $list-item-selected-bg: color.change(#6e6e80, $alpha: 0.5) !default;
  $list-item-selected-hover-bg: color.change(#6e6e80, $alpha: 0.35) !default;
  $list-item-focused-selected-bg: color.change(#6e6e80, $alpha: 0.4) !default;

  $list-item-hover-color:  $base-hover-color !default;
  $list-item-selected-color: color.change($base-text-color, $alpha: 1) !default;
  $list-header-indicator-color: $base-icon-color !default;

  /**
    * $name 40. Active state item background color
    * $type color
    */
  $list-item-active-bg: lighten($base-bg, 20%) !default;
  $list-holdmenu-bg: $base-bg !default;
  $list-holdmenu-border-color: $list-border-color !default;
  $list-holdmenu-shadow-color: color.change($base-shadow-color, $alpha: 0.1) !default;

  $list-menu-button-default-color: $button-default-color !default;
  $list-menu-button-default-bg: $button-default-bg !default;

  $list-menu-button-delete-bg: $base-danger !default;
  $list-button-delete-shadow-color: color.change($base-shadow-color, $alpha: 0.24) !default;

  $list-item-ghost-bg: $base-bg !default;
  $list-item-ghost-color: lighten($base-text-color, 38.5%) !default;
  $list-item-ghost-border-color: $base-accent !default;
  $list-item-ghost-shadow-color: $base-shadow-color !default;

  $list-icon-color: $base-icon-color !default;
  $list-item-chevron-icon-color: $base-spin-icon-color !default;
  $list-item-icon-toggle-delete-bg: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAQAAAACj/OVAAABi0lEQVRYw93YLa6DQBSGYXAkLALBEmrRBI3EkJoqNtKAZR1NRQV7qKoo8u0GENWIc8UNodPbH35nkptPTjIPmTBnZo4llt5YRkCGxCEgo6SipqGlpaGmoiQjwBkyx1DQJqLgjHzImYIIez7oknL8SD3mSIo7B4w5DMa6HIingT4599GcINzJ8ceCIadJWJcT4Rgw4TKLE4QLyVBwy202Jwg3tkPAZCHul0y+geECi6kubPgJ9Gf+Kq9/H/89mC/OCUL+Down7rvv+zJ+BboTqsrw6uP+BdPVOEFIn0F7RImekiO2CkarcoIQqWCxOlg8gs6X43WJnHF6MFidE4SgBzMtYNaDpRaw7MHqaahhj4c1Ix57mqdZqx6slYErm1lYlw1XZd66B9Vv2S3CWVjs1HXrwVYZ8BYDPWXe1iCofUm1/zTat4X2ja+9tGkv3tqPJ+0HsIErhvZLlPZrooGLsParvoHHjIHnmvYHqYEnt4GmgoG2iYHGkIHWl4HmnpH2pYEG7Tot6H/d1f8Bh8gHKxGErEsAAAAASUVORK5CYII=") !default;
}

