You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
@use 'sass:map';
|
|
@use '../core/theming/theming';
|
|
|
|
@mixin color($config-or-theme) {
|
|
$config: theming.get-color-config($config-or-theme);
|
|
$primary: map.get($config, primary);
|
|
$accent: map.get($config, accent);
|
|
$warn: map.get($config, warn);
|
|
|
|
.mat-progress-spinner, .mat-spinner {
|
|
circle {
|
|
stroke: theming.get-color-from-palette($primary);
|
|
}
|
|
|
|
&.mat-accent circle {
|
|
stroke: theming.get-color-from-palette($accent);
|
|
}
|
|
|
|
&.mat-warn circle {
|
|
stroke: theming.get-color-from-palette($warn);
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin typography($config-or-theme) {}
|
|
|
|
@mixin _density($config-or-theme) {}
|
|
|
|
@mixin theme($theme-or-color-config) {
|
|
$theme: theming.private-legacy-get-theme($theme-or-color-config);
|
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-progress-spinner') {
|
|
$color: theming.get-color-config($theme);
|
|
$density: theming.get-density-config($theme);
|
|
$typography: theming.get-typography-config($theme);
|
|
|
|
@if $color != null {
|
|
@include color($color);
|
|
}
|
|
@if $density != null {
|
|
@include _density($density);
|
|
}
|
|
@if $typography != null {
|
|
@include typography($typography);
|
|
}
|
|
}
|
|
}
|