You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: js/utils/README.md
+13-17Lines changed: 13 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,34 +29,30 @@ This guide explains how you can add your own custom theme or customize an existi
29
29
30
30
Note: If you want to customise an existing theme, just put your changes in the dark mode and choose dark mode from the theme dropdown. You can skip to step no. 6 if that is your goal.
31
31
32
-
1.**Adding your theme's name to the list in index.html**
32
+
1.**Adding your theme's icon to the list in index.html**
33
33
34
-
Go to index.html from root, and add your theme to the list (please follow the conventions used by other themes for proper implementation)
34
+
Go to index.html from root, and add your theme's icon to the list (please follow the conventions used by other themes for proper implementation)
35
+
Add your theme's icon to the bottom of the list, you can find icons in [Material Icons](https://materializecss.com/icons.html).
2.**Now go to js/toolbar.js, find init(activity){...}**
51
46
52
47
There will be 4 arrays named string (two in an if statement, rest two in the else statement).
53
-
Add your theme's name to the bottom of the array
48
+
Add your theme's name to the bottom of the pre-existing themes.
49
+
54
50
55
51
```javascript
56
52
string = [[...],
57
-
["light", _("Light Mode"), "innerHTML"],
58
-
["dark", _("Dark Mode"), "innerHTML"],
59
-
["custom", _("Custom Theme"), "innerHTML"]];
53
+
["light", _("Light Mode")],
54
+
["dark", _("Dark Mode")],
55
+
["custom", _("Custom Theme")]];
60
56
```
61
57
62
58
```javascript
@@ -177,7 +173,7 @@ Note: If you want to customise an existing theme, just put your changes in the d
177
173
178
174
6. **Now to add styling for your theme**
179
175
180
-
(If you skipped to here, these are the files responsible for styling, the CSS is easy to understand and modify, but to change the color of elements in javascript files, look at the entire code base and search for "platformColor". You will find all the places where JS is used to style. You don't have to add your own theme, you can just change styling in dark mode CSS and JS, and then choose dark mode n the toolbar.)
176
+
(If you skipped to here, these are the files responsible for styling, the CSS is easy to understand and modify, but to change the color of elements in javascript files, look at the entire code base and search for "platformColor". You will find all the places where JS is used to style. You don't have to add your own theme, you can just change styling in dark mode CSS and JS, and then choose dark mode in the toolbar.)
0 commit comments