Change theme to fit dark theme better
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
e6026cfd27
commit
df437a6cec
@ -0,0 +1,27 @@
|
|||||||
|
@use 'sass:map';
|
||||||
|
@use '~@angular/material' as mat;
|
||||||
|
|
||||||
|
@mixin color($theme) {
|
||||||
|
$color-config: mat.get-color-config($theme);
|
||||||
|
$primary-palette: map.get($color-config, 'primary');
|
||||||
|
|
||||||
|
div.image-wrapper.selected {
|
||||||
|
background-color: mat.get-color-from-palette($primary-palette, 'darker');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin typography($theme) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin theme($theme) {
|
||||||
|
$color-config: mat.get-color-config($theme);
|
||||||
|
@if $color-config != null {
|
||||||
|
@include color($theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
$typography-config: mat.get-typography-config($theme);
|
||||||
|
@if $typography-config != null {
|
||||||
|
@include typography($theme);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue