From cf56b1749817b2bf3298acb7fa2d35083dd9145b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 6 Dec 2022 01:06:54 +0100 Subject: [PATCH 1/7] "add color-header-bar" add "--color-header-bar: #373e47;" for update Header-Bar Color Fix --- theme-github-auto.css | 1 + 1 file changed, 1 insertion(+) diff --git a/theme-github-auto.css b/theme-github-auto.css index 36df307..889c672 100644 --- a/theme-github-auto.css +++ b/theme-github-auto.css @@ -425,6 +425,7 @@ --is-dark-theme: true; --color-blue: #539bf5; --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. */ /* monaco editor dark theme is toggled via variable `--is-dark-theme` */ From 3b9a00a8529bf4a3ca616171e1ad55f007573cc4 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 6 Dec 2022 01:08:35 +0100 Subject: [PATCH 2/7] "add color-header-bar" add --color-header-bar: #373e47; Update Fix Color Header-Bar --- theme-github-dark.css | 1 + 1 file changed, 1 insertion(+) diff --git a/theme-github-dark.css b/theme-github-dark.css index bb97c13..37ffe32 100755 --- a/theme-github-dark.css +++ b/theme-github-dark.css @@ -22,6 +22,7 @@ --is-dark-theme: true; --color-blue: #539bf5; --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. */ /* monaco editor dark theme is toggled via variable `--is-dark-theme` */ From 58b4d7634617f3335ecd91f95a001b34a69264a6 Mon Sep 17 00:00:00 2001 From: Basti Lathe Date: Tue, 6 Dec 2022 02:29:52 +0100 Subject: [PATCH 3/7] update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index cfeaf93..8adffeb 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,14 @@ The theme might work with future versions though Gitea devs might change some CS 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) | + +* [Installation](#installation) +* [Using automatic theme switching](#using-automatic-theme-switching) +* [default Gitea theme](#default-gitea-theme) +* [Helm chart](#helm-chart) +* [Screenshots](#screenshots) + ## 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 From 4c36fad2c95656d98678c23c7d7ae484225f7b5b Mon Sep 17 00:00:00 2001 From: Basti Lathe Date: Tue, 6 Dec 2022 02:47:51 +0100 Subject: [PATCH 4/7] link fix README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8adffeb..cbc4236 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,14 @@ The theme might work with future versions though Gitea devs might change some CS 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) |

+ * [Installation](#installation) -* [Using automatic theme switching](#using-automatic-theme-switching) -* [default Gitea theme](#default-gitea-theme) -* [Helm chart](#helm-chart) +* [Using automatic theme switching](#using-automatic-theme-switching-based-on-system-preference) +* [Changes to default Gitea theme](#changes-to-default-gitea-theme) +* [Helm chart instructions](#helm-chart-instructions) * [Screenshots](#screenshots) ## Installation From 0043e8348161f85c795769bc7d43e2cd88943309 Mon Sep 17 00:00:00 2001 From: Basti Lathe Date: Tue, 6 Dec 2022 02:52:35 +0100 Subject: [PATCH 5/7] formating website url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cbc4236..ec8183f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The theme might work with future versions though Gitea devs might change some CS 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)** | * [Installation](#installation) From 3802ffdc0409a4669e69011dd399f854f9343368 Mon Sep 17 00:00:00 2001 From: Basti Lathe Date: Thu, 8 Dec 2022 22:52:50 +0100 Subject: [PATCH 6/7] ci file --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..cc4c8cd --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,11 @@ +pipeline { + agent any + + stages { + stage('Do nothing') { + steps { + sh '/bin/true' + } + } + } +} \ No newline at end of file From 6f4827a7a23b540f10425aedf22ad35c4168f1f6 Mon Sep 17 00:00:00 2001 From: Basti Lathe Date: Thu, 8 Dec 2022 22:53:35 +0100 Subject: [PATCH 7/7] fix --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ec8183f..aec2570 100644 --- a/README.md +++ b/README.md @@ -2,29 +2,30 @@ **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 :) 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) * [Using automatic theme switching](#using-automatic-theme-switching-based-on-system-preference) * [Changes to default Gitea theme](#changes-to-default-gitea-theme) * [Helm chart instructions](#helm-chart-instructions) * [Screenshots](#screenshots) - +--- ## 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: 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` - 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` + 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". + 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