@@ -17,9 +17,40 @@ export class InMemoryDataService implements InMemoryDbService {
17
17
] ;
18
18
19
19
// AP2 custom themes
20
+ //
21
+ // At the moment I am structuring the custom color elements as such:
22
+ // {name: 'val', value: '#FFF', tag: 'tagName', style: 'background'}
23
+ // By default the defined style.color is applied to elements with the class of <name>
24
+
25
+ // If you wish to instead override a style other than color (for instance background) add optional element:
26
+ // {name: 'val', value: '#FFF', style: 'background'}
27
+
28
+ // If you wish to apply customization to ALL elements of a given tab, in this example a head 1 tag:
29
+ // {name: 'val', value: '#FFF', tag: 'h1'}
30
+ //
31
+ //
20
32
const themes = [
21
- { id : 1 , name : 'Theme-Forward One' , custom_color_background : 'lightblue' , custom_color_header : 'darkblue' , custom_color_sidebar : 'blue' } ,
22
- { id : 2 , name : 'Theme-Founders' , custom_color_background : 'lightgreen' , custom_color_header : 'darkgreen' , custom_color_sidebar : 'green' } ,
33
+ { id : 1 ,
34
+ name : 'Theme-Forward One' ,
35
+ customs :[
36
+ { name : 'custom_color_background' , value : 'lightblue' , tag : 'body' , style :'background' } ,
37
+ { name : 'customColorHeader' , value : 'darkblue' , style :'background' } ,
38
+ { name : 'customColorFooter' , value : 'darkblue' , style :'background' } ,
39
+ { name : 'customColorSidebar' , value : 'blue' , style :'background' } ,
40
+ { name : 'logo' , value : '/assets/logo-1.jpg' , image : 'logo' } ,
41
+ ]
42
+ } ,
43
+ { id : 2 ,
44
+ name : 'Theme-Founders' ,
45
+ customs :[
46
+ { name : 'custom_color_background' , value : 'lightgreen' , tag : 'body' , style :'background' } ,
47
+ { name : 'customColorHeader' , value : 'darkgreen' , style :'background' } ,
48
+ { name : 'customColorFooter' , value : 'darkgreen' , style :'background' } ,
49
+ { name : 'customColorSidebar' , value : 'green' , style :'background' } ,
50
+ { name : 'customColorSidebar' , value : 'lightgreen' } ,
51
+ { name : 'logo' , value : '/assets/logo-2113.png' , image : 'logo' } ,
52
+ ]
53
+ } ,
23
54
]
24
55
25
56
const navlinks = [
0 commit comments