File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -55,3 +55,33 @@ Both of these values may be combined for plugins supporting both Moodle 4.5 and
55
55
```
56
56
57
57
:::
58
+
59
+ ## Themes
60
+
61
+ <Since version =" 5.0 " issueNumber =" MDL-83725 " />
62
+
63
+ Themes can now customize activity icon colors using simple CSS variables. The new variables introduced are:
64
+
65
+ - ` $activity-icon-administration-bg `
66
+ - ` $activity-icon-assessment-bg `
67
+ - ` $activity-icon-collaboration-bg `
68
+ - ` $activity-icon-communication-bg `
69
+ - ` $activity-icon-content-bg `
70
+ - ` $activity-icon-interactivecontent-bg `
71
+
72
+ All previous ` $activity-icon-*-filter ` elements can be removed, as they are no longer in use.
73
+
74
+ :::tip Example of customizing activity icon colors
75
+
76
+ Themes can customize the activity icon colors by overriding the following variables before loading the Boost scss:
77
+
78
+ ``` scss
79
+ $activity-icon-administration-bg : #5915b1 ;
80
+ $activity-icon-assessment-bg : #17857f ;
81
+ $activity-icon-collaboration-bg : #cf7a34 ;
82
+ $activity-icon-communication-bg : #c70827 ;
83
+ $activity-icon-content-bg : #5915b1 ;
84
+ $activity-icon-interactivecontent-bg : #c70827 ;
85
+ ```
86
+
87
+ :::
You can’t perform that action at this time.
0 commit comments