Compare commits
15 Commits
v3.1.0
...
1.19.0+dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a848a70c1 | |||
| 3cdd23d6fa | |||
| 540f30c317 | |||
|
|
f9f3462610 | ||
|
|
0543439b47 | ||
| 7ddf0d8de8 | |||
|
|
52e563e2c7 | ||
|
|
59b09324ec | ||
| 6f4827a7a2 | |||
| 3802ffdc04 | |||
| 0043e83481 | |||
| 4c36fad2c9 | |||
| 58b4d76346 | |||
| 3b9a00a852 | |||
| cf56b17498 |
5
.woodpecker.yml
Normal file
5
.woodpecker.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
pipeline:
|
||||||
|
first-job:
|
||||||
|
image: busybox
|
||||||
|
commands:
|
||||||
|
- echo "first run"
|
||||||
11
Jenkinsfile
vendored
Normal file
11
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Do nothing') {
|
||||||
|
steps {
|
||||||
|
sh '/bin/true'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
21
README.md
21
README.md
@@ -2,19 +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)
|
||||||
|
---
|
||||||
|
###### Index
|
||||||
|
|
||||||
|
* [Installation](#installation)
|
||||||
|
* [Using automatic theme switching](#using-automatic-theme-switching)
|
||||||
|
* [default Gitea theme](#default-gitea-theme)
|
||||||
|
* [Helm chart](#helm-chart)
|
||||||
|
* [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
|
||||||
|
|
||||||
|
|||||||
@@ -346,7 +346,7 @@
|
|||||||
.ui.negative.buttons .button,
|
.ui.negative.buttons .button,
|
||||||
.ui.negative.button {
|
.ui.negative.button {
|
||||||
background-color: none;
|
background-color: none;
|
||||||
color: #db2828;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.green.button {
|
.ui.green.button {
|
||||||
@@ -399,6 +399,15 @@
|
|||||||
background-color: #afb8c133;
|
background-color: #afb8c133;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
// branch display in PRs
|
||||||
|
.issue.list .branches .branch {
|
||||||
|
background-color: #afb8c133;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
.issue.list .branches .truncated-name {
|
||||||
|
color: #24292f;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
@@ -425,6 +434,7 @@
|
|||||||
--is-dark-theme: true;
|
--is-dark-theme: true;
|
||||||
--color-blue: #539bf5;
|
--color-blue: #539bf5;
|
||||||
--color-input-background: #22272e;
|
--color-input-background: #22272e;
|
||||||
|
--color-header-bar: #373e47;
|
||||||
|
|
||||||
/* code editor colors are set in https://github.com/go-gitea/gitea/blob/f5b300ea77081a1b78ac044cb1c0f9225538d091/web_src/js/features/codeeditor.js#L82-L97. */
|
/* code editor colors are set in https://github.com/go-gitea/gitea/blob/f5b300ea77081a1b78ac044cb1c0f9225538d091/web_src/js/features/codeeditor.js#L82-L97. */
|
||||||
/* monaco editor dark theme is toggled via variable `--is-dark-theme` */
|
/* monaco editor dark theme is toggled via variable `--is-dark-theme` */
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
--is-dark-theme: true;
|
--is-dark-theme: true;
|
||||||
--color-blue: #539bf5;
|
--color-blue: #539bf5;
|
||||||
--color-input-background: #22272e;
|
--color-input-background: #22272e;
|
||||||
|
--color-header-bar: #373e47;
|
||||||
|
|
||||||
/* code editor colors are set in https://github.com/go-gitea/gitea/blob/f5b300ea77081a1b78ac044cb1c0f9225538d091/web_src/js/features/codeeditor.js#L82-L97. */
|
/* code editor colors are set in https://github.com/go-gitea/gitea/blob/f5b300ea77081a1b78ac044cb1c0f9225538d091/web_src/js/features/codeeditor.js#L82-L97. */
|
||||||
/* monaco editor dark theme is toggled via variable `--is-dark-theme` */
|
/* monaco editor dark theme is toggled via variable `--is-dark-theme` */
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ a.muted {
|
|||||||
.ui.negative.buttons .button,
|
.ui.negative.buttons .button,
|
||||||
.ui.negative.button {
|
.ui.negative.button {
|
||||||
background-color: none;
|
background-color: none;
|
||||||
color: #db2828;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.green.button {
|
.ui.green.button {
|
||||||
@@ -394,3 +394,13 @@ ui.basic.blue.button:hover,
|
|||||||
background-color: #afb8c133;
|
background-color: #afb8c133;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// branch display in PRs
|
||||||
|
.issue.list .branches .branch {
|
||||||
|
background-color: #afb8c133;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
.issue.list .branches .truncated-name {
|
||||||
|
color: #24292f;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user