fix
All checks were successful
Lila-Kuh/gitea-github-theme/pipeline/head This commit looks good

This commit is contained in:
PurpleCow 2022-12-08 22:53:35 +01:00
parent 3802ffdc04
commit 6f4827a7a2

View File

@ -2,29 +2,30 @@
**Opinionated** GitHub-based light and dark themes for Gitea including an automatic theme switch option. **Opinionated** GitHub-based light and dark themes for Gitea including an automatic theme switch option.
Created and tested with Gitea v1.15 - 1.17. Created and tested with Gitea v1.15 - 1.17. (v1.19+dev)
The theme might work with future versions though Gitea devs might change some CSS classes in the meantime and things might potentially look odd - just try yourself :) The theme might work with future versions though Gitea devs might change some CSS classes in the meantime and things might potentially look odd - just try yourself :)
I might update the theme over time to fix oversights and other issues - no guarantee though. I might update the theme over time to fix oversights and other issues - no guarantee though.
---
| **[Website](https://codeberg.org/pat-s/gitea-github-theme)** | ### [Website](https://codeberg.org/pat-s/gitea-github-theme)
---
###### Index
* [Installation](#installation) * [Installation](#installation)
* [Using automatic theme switching](#using-automatic-theme-switching-based-on-system-preference) * [Using automatic theme switching](#using-automatic-theme-switching-based-on-system-preference)
* [Changes to default Gitea theme](#changes-to-default-gitea-theme) * [Changes to default Gitea theme](#changes-to-default-gitea-theme)
* [Helm chart instructions](#helm-chart-instructions) * [Helm chart instructions](#helm-chart-instructions)
* [Screenshots](#screenshots) * [Screenshots](#screenshots)
---
## Installation ## Installation
1. If you do not have admin access to a Gitea instance, you can use the [Stylus](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne/related) browser extension and use the CSS provided in this repo for the Gitea URL 1. If you do not have admin access to a Gitea instance, you can use the [Stylus](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne/related) browser extension and use the CSS provided in this repo for the Gitea URL.
2. If you are an admin and want to make this theme available to all users: 2. If you are an admin and want to make this theme available to all users:
1. Put `theme-github.css` into `$GITEA_PUBLIC/public/css/theme-github.css` where `$GITEA_PUBLIC` is the "CustomPath" of your instance reported by `gitea help`. 1. Put `theme-github.css` into `$GITEA_PUBLIC/public/css/theme-github.css` where `$GITEA_PUBLIC` is the "CustomPath" of your instance reported by `gitea help`.
2. Add `github` to the comma-separated list in the setting `THEMES` in `app.ini` 2. Add `github` to the comma-separated list in the setting `THEMES` in `app.ini` ; (e.g.: `THEMES = auto,gitea,arc-green,github-auto,github,github-dark`).
3. Now users can select this theme in their settings under "account" 3. Now users can select this theme in their settings under "account".
4. (optional) If you want to make this theme the default of your instance, set it in `DEFAULT_THEME` in `app.ini` 4. (optional) If you want to make this theme the default of your instance, set it in `DEFAULT_THEME` in `app.ini`.
## Using automatic theme switching based on system preference ## Using automatic theme switching based on system preference