Skip to content

Commit e2a24b1

Browse files
committed
review changes
1 parent fa48ac8 commit e2a24b1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

packages/angular-sdk-components/src/lib/_services/theme.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import { Theme } from '../_types/Theme.interface';
77
export class ThemeService {
88
private readonly themes: Theme[] = [
99
{
10-
id: 'default-theme',
10+
id: 'default',
1111
primary: '#8F00FF',
1212
displayName: 'Default Theme'
1313
},
14-
{ id: 'dark-theme', primary: '#FF00FF', displayName: 'Dark Theme' },
15-
{ id: 'red-theme', primary: '#FF0000', displayName: 'Red Theme' },
16-
{ id: 'azure-theme', primary: '#007FFF', displayName: 'Azure Theme' },
17-
{ id: 'green-theme', primary: '#008000', displayName: 'Green Theme' }
14+
{ id: 'dark', primary: '#FF00FF', displayName: 'Dark Theme' },
15+
{ id: 'red', primary: '#FF0000', displayName: 'Red Theme' },
16+
{ id: 'azure', primary: '#007FFF', displayName: 'Azure Theme' },
17+
{ id: 'green', primary: '#008000', displayName: 'Green Theme' }
1818
];
1919

2020
getDefaultTheme(): string {

projects/angular-test-app/src/themes.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use '@angular/material' as mat;
22

33
// Theme classes
4-
.dark-theme {
4+
.dark {
55
/* Primary palette variables */
66
--mat-sys-primary: #ff00ff;
77
--mat-sys-on-primary: #ffffff;
@@ -257,7 +257,7 @@
257257
--mat-sys-pressed-state-layer-opacity: 0.12;
258258
}
259259

260-
.azure-theme {
260+
.azure {
261261
@include mat.theme(
262262
(
263263
color: mat.$azure-palette,
@@ -267,7 +267,7 @@
267267
);
268268
}
269269

270-
.default-theme {
270+
.default {
271271
@include mat.theme(
272272
(
273273
color: mat.$violet-palette,
@@ -277,7 +277,7 @@
277277
);
278278
}
279279

280-
.green-theme {
280+
.green {
281281
@include mat.theme(
282282
(
283283
color: mat.$green-palette,
@@ -287,7 +287,7 @@
287287
);
288288
}
289289

290-
.red-theme {
290+
.red {
291291
@include mat.theme(
292292
(
293293
color: mat.$red-palette,

sdk-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"comment_sdk_config": "This is the configuration file for the Angular-SDK",
33
"sdk_optional_configs_doc_comment": "See the document(link below) for more details on all the available config settings",
44
"sdk_optional_configs_doc": "https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/configuring-sdk-config-json.html",
5-
"theme": "dark-theme",
5+
"theme": "dark",
66
"authConfig": {
77
"authService": "pega",
88

0 commit comments

Comments
 (0)