Skip to content

Commit 48b21e8

Browse files
committed
featr(styles): update theming for hierarchical and tree grids
1 parent 084a673 commit 48b21e8

3 files changed

Lines changed: 35 additions & 80 deletions

File tree

Lines changed: 16 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,27 @@
11
@use "layout.scss";
22
@use "igniteui-angular/theming" as *;
33

4-
$my-primary: #130425;
5-
$my-secondary: #d0ab23;
6-
$dark-gray: #333;
7-
$light-gray: #999;
8-
$inactive-color: #826217;
9-
10-
$dark-paginator: paginator-theme(
11-
$foreground: $my-secondary,
12-
$background: $my-primary,
13-
$border-color: $my-secondary,
14-
);
15-
16-
$dark-button: flat-icon-button-theme(
17-
$foreground: $my-secondary,
18-
$hover-foreground: $dark-gray,
19-
$hover-background: $my-secondary,
20-
$focus-foreground: $dark-gray,
21-
$focus-background: $my-secondary,
22-
$border-color: $my-secondary,
23-
$focus-border-color: $my-secondary,
24-
$disabled-foreground: $inactive-color,
25-
);
26-
27-
$dark-select: select-theme(
28-
$toggle-button-background: $my-primary,
29-
$toggle-button-foreground: $inactive-color,
30-
$toggle-button-foreground-filled: $inactive-color,
31-
$toggle-button-foreground-focus: $inactive-color,
32-
$toggle-button-background-focus--border: $my-primary,
33-
);
34-
35-
$dark-input-group: input-group-theme(
36-
$filled-text-color: $my-secondary,
37-
$idle-text-color: $my-secondary,
38-
$filled-text-hover-color: $my-secondary,
39-
$focused-text-color: $my-secondary,
40-
$border-color: darken($inactive-color, 10%),
41-
$focused-border-color: $my-secondary,
42-
$input-suffix-color: $my-secondary,
4+
$background: #19171b;
5+
$foreground: #eeece1;
6+
$accent: #ffcd0f;
7+
8+
$grid-theme: grid-theme(
9+
$background: $background,
10+
$foreground: $foreground,
11+
$accent-color: $accent,
4312
);
4413

45-
$dark-drop-down-theme: drop-down-theme(
46-
$background-color: $my-primary,
47-
$item-text-color: $my-secondary,
48-
$selected-item-background: $my-secondary,
49-
$selected-item-text-color: $dark-gray,
50-
$focused-item-background: $my-secondary,
51-
$focused-item-text-color: $dark-gray,
52-
$selected-focus-item-background: $my-secondary,
53-
$selected-focus-item-text-color: $dark-gray,
54-
$selected-hover-item-background: $my-secondary,
55-
$selected-hover-item-text-color: $dark-gray,
14+
$paginator-theme: paginator-theme(
15+
$foreground: #ff570f,
16+
$background: #130425FF,
17+
$border-color: #ff570f,
18+
$accent-color: #ff570f,
5619
);
5720

58-
igx-hierarchical-grid {
59-
@include tokens($dark-paginator);
60-
@include tokens($dark-drop-down-theme);
21+
igx-tree-grid {
22+
@include tokens($grid-theme);
6123
}
6224

6325
igx-paginator {
64-
@include tokens($dark-button);
65-
@include tokens($dark-input-group);
66-
@include tokens($dark-select);
26+
@include tokens($paginator-theme);
6727
}
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
@use "layout.scss";
22
@use "igniteui-angular/theming" as *;
33

4-
$background: #292826;
4+
$background: #19171b;
5+
$foreground: #eeece1;
56
$accent: #ffcd0f;
67

7-
$dark-button-theme: outlined-button-theme(
8-
$foreground: $accent,
9-
$hover-background: $accent,
8+
$grid-theme: grid-theme(
9+
$background: $background,
10+
$foreground: $foreground,
11+
$accent-color: $accent,
1012
);
1113

12-
$dark-grid-toolbar-theme: grid-toolbar-theme(
13-
$background: $background,
14-
$title-text-color: $accent,
14+
$grid-toolbar-theme: grid-toolbar-theme(
15+
$background: #170237,
16+
$border-color: $accent,
17+
$title-text-color: #f6d8d8,
18+
$item-hover-background: rgb(246 216 216 / 0.3),
1519
);
1620

1721
:host ::ng-deep {
18-
igx-grid-toolbar {
19-
@include tokens($dark-grid-toolbar-theme);
20-
21-
[igxButton="outlined"] {
22-
@include tokens($dark-button-theme);
23-
}
24-
}
22+
igx-hierarchical-grid {
23+
@include tokens($grid-theme);
24+
}
25+
26+
igx-grid-toolbar {
27+
@include tokens($grid-toolbar-theme);
28+
}
2529
}

src/app/tree-grid/tree-grid-toolbar-style/tree-grid-toolbar-style.component.scss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ $grid-theme: grid-theme(
1111
$accent-color: $accent,
1212
);
1313

14-
$button-theme: outlined-button-theme(
15-
$foreground: $accent,
16-
$hover-background: $accent,
17-
);
18-
1914
$grid-toolbar-theme: grid-toolbar-theme(
20-
$background: #25025a,
15+
$background: #170237,
2116
$border-color: $accent,
2217
$title-text-color: #f6d8d8,
2318
$item-hover-background: rgb(246 216 216 / 0.3),
@@ -30,9 +25,5 @@ $grid-toolbar-theme: grid-toolbar-theme(
3025

3126
igx-grid-toolbar {
3227
@include tokens($grid-toolbar-theme);
33-
34-
[igxButton='outlined'] {
35-
@include tokens($button-theme);
36-
}
3728
}
3829
}

0 commit comments

Comments
 (0)