Inital commit for v1.13.0
This commit is contained in:
25
FileChanges_LOG.md
Normal file
25
FileChanges_LOG.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Changes made to gitea source (as of `v1.13.0`) to make arc-blu theme
|
||||
|
||||
## Theme Files
|
||||
* Copy `web_src/less/themes/theme-arc-green.less` to `web_src/less/themes/theme-arc-blue.less`
|
||||
* Relplace `#a0cc75` to `#1e70bf` in `web_src/less/themes/theme-arc-blue.less`
|
||||
* Relplace `#87ab63` to `#86acd1` in `web_src/less/themes/theme-arc-blue.less`
|
||||
* Relplace `#7c9b5e` to `#1e70bf` in `web_src/less/themes/theme-arc-blue.less`
|
||||
|
||||
|
||||
## Dark Theme detection
|
||||
Replace in `web_src/js/utils.js`
|
||||
|
||||
```
|
||||
// returns whether a dark theme is enabled
|
||||
export function isDarkTheme() {
|
||||
return document.documentElement.classList.contains('theme-arc-green');
|
||||
}
|
||||
```
|
||||
With
|
||||
```
|
||||
// returns whether a dark theme is enabled
|
||||
export function isDarkTheme() {
|
||||
return (document.documentElement.classList.contains('theme-arc-green') == true || document.documentElement.classList.contains('theme-arc-blue') == true || document.documentElement.classList.contains('theme-testblu') == true);
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user