Dark blue theme #2881

Closed
opened 2025-11-02 04:52:27 -06:00 by GiteaMirror · 22 comments
Owner

Originally created by @artixnous on GitHub (Feb 8, 2019).

I've modified arc-green theme to dark blue, and it's being used at our gitea repository. It's extensively tested and should be pretty much complete, covering even the API/swagger page. If there's any interest, I could do a PR.

Screenshots

screenshot at 2019-02-09 01-46-03

Originally created by @artixnous on GitHub (Feb 8, 2019). I've modified arc-green theme to [dark blue](https://gitea.artixlinux.org/artix/gitea-dark-blue/src/branch/master/theme-arc-blue.css), and it's being used at [our gitea repository](https://gitea.artixlinux.org). It's extensively tested and should be pretty much complete, covering even the API/swagger page. If there's any interest, I could do a PR. ## Screenshots ![screenshot at 2019-02-09 01-46-03](https://user-images.githubusercontent.com/6310912/52512281-bc2ff500-2c0c-11e9-9617-ed46bc26c8ea.png)
GiteaMirror added the type/proposal label 2025-11-02 04:52:27 -06:00
Author
Owner

@lunny commented on GitHub (Feb 9, 2019):

Maybe we should create a theme market so that everyone could upload his themes and others could download and apply.

@lunny commented on GitHub (Feb 9, 2019): Maybe we should create a theme market so that everyone could upload his themes and others could download and apply.
Author
Owner

@rakshith-ravi commented on GitHub (Feb 9, 2019):

Maybe we should create a theme market so that everyone could upload his themes and others could download and apply.

I really don't want to come-off as a smart ass, but I feel that would be a lot of effort. Shorter goals with more visible achievements usually motivate people better. Perhaps we can try something as simple as a "upload theme" feature in the admin panel where a zip file is uploaded and that places the css, template, etc from the zip file into the public folder so that it automatically starts working on refresh. It would be much more easier to implement as well as would achieve the intended feature.

Again, just my opinion. No offence intended.

@rakshith-ravi commented on GitHub (Feb 9, 2019): > Maybe we should create a theme market so that everyone could upload his themes and others could download and apply. I really don't want to come-off as a smart ass, but I feel that would be a lot of effort. Shorter goals with more visible achievements usually motivate people better. Perhaps we can try something as simple as a "upload theme" feature in the admin panel where a zip file is uploaded and that places the css, template, etc from the zip file into the public folder so that it automatically starts working on refresh. It would be much more easier to implement as well as would achieve the intended feature. Again, just my opinion. No offence intended.
Author
Owner

@sapk commented on GitHub (Feb 9, 2019):

It should be easily possible for people to use this theme by simply adding the css to https://github.com/go-gitea/gitea/blob/master/templates/custom/header.tmpl
But maybe can add a textfield for admin and user to load a custom css to be accessible via the ui.

@sapk commented on GitHub (Feb 9, 2019): It should be easily possible for people to use this theme by simply adding the css to https://github.com/go-gitea/gitea/blob/master/templates/custom/header.tmpl But maybe can add a textfield for admin and user to load a custom css to be accessible via the ui.
Author
Owner

@jolheiser commented on GitHub (Feb 10, 2019):

As a current workaround, this file theme-arc-blue.css can be added to custom/public/css and allow users to choose arc-blue as a theme.
This works only if the supplied style is meant to completely replace arc-green (rather than override certain parts) since it essentially "tricks" Gitea into loading it in the header in place of arc-green.

Signed in user
8d2c24f7f9/templates/base/head.tmpl (L152)

Anonymous user
8d2c24f7f9/templates/base/head.tmpl (L155)

@jolheiser commented on GitHub (Feb 10, 2019): As a current workaround, this file `theme-arc-blue.css` can be added to `custom/public/css` and allow users to choose `arc-blue` as a theme. This works only if the supplied style is meant to completely replace `arc-green` (rather than override certain parts) since it essentially "tricks" Gitea into loading it in the header in place of `arc-green`. Signed in user https://github.com/go-gitea/gitea/blob/8d2c24f7f9b9bce3a806e4748623bd3b2742025b/templates/base/head.tmpl#L152 Anonymous user https://github.com/go-gitea/gitea/blob/8d2c24f7f9b9bce3a806e4748623bd3b2742025b/templates/base/head.tmpl#L155
Author
Owner

@artixnous commented on GitHub (Feb 10, 2019):

It's a complete replacement, enabled as described above in gitea's .ini file, only not "arc-blue" but "dark-blue".

@artixnous commented on GitHub (Feb 10, 2019): It's a complete replacement, enabled as described above in gitea's .ini file, only not "arc-blue" but "dark-blue".
Author
Owner

@Oreolek commented on GitHub (May 15, 2019):

So any plans on this? Not the theme market, just this theme?

@Oreolek commented on GitHub (May 15, 2019): So any plans on this? Not the theme market, just this theme?
Author
Owner

@jolheiser commented on GitHub (May 15, 2019):

If you look at my above comment, this is currently possible with a little hacking.
I named it arc-blue instead, but it is the theme from this issue.

arc-blue
arc-blue-theme

As for official support for themes, no one is working on it currently that I know of.

@jolheiser commented on GitHub (May 15, 2019): If you look at my above comment, this is currently possible with a little hacking. I named it `arc-blue` instead, but it is the theme from this issue. ![arc-blue](https://user-images.githubusercontent.com/42128690/57787293-b4478b80-76fa-11e9-8f71-1f979d9bed95.png) ![arc-blue-theme](https://user-images.githubusercontent.com/42128690/57787294-b4478b80-76fa-11e9-82ac-b4e33e7ba23b.png) As for official support for themes, no one is working on it currently that I know of.
Author
Owner

@Th3Whit3Wolf commented on GitHub (Aug 25, 2019):

Hmm. I copied the css to custom/public/css/theme-arc-blue.css

and copied
8d2c24f7f9/templates/base/head.tmpl

into custom/public/templates/base/head.tmpl

but I'm not seeing it as an option for a theme.

I'm using gitea v1.9.2, did I miss something?

@Th3Whit3Wolf commented on GitHub (Aug 25, 2019): Hmm. I copied the css to `custom/public/css/theme-arc-blue.css` and copied https://github.com/go-gitea/gitea/blob/8d2c24f7f9b9bce3a806e4748623bd3b2742025b/templates/base/head.tmpl into `custom/public/templates/base/head.tmpl` but I'm not seeing it as an option for a theme. I'm using gitea v1.9.2, did I miss something?
Author
Owner

@gsantner commented on GitHub (Aug 25, 2019):

THEMES = gitea,arc-green,arc-blue

settings

@gsantner commented on GitHub (Aug 25, 2019): THEMES = gitea,arc-green,arc-blue settings
Author
Owner

@Th3Whit3Wolf commented on GitHub (Aug 25, 2019):

That fixed it. My fault for not reading the documentation first.

@Th3Whit3Wolf commented on GitHub (Aug 25, 2019): That fixed it. My fault for not reading the documentation first.
Author
Owner

@MasterGroosha commented on GitHub (Jan 12, 2020):

Sorry for dumb question, but where are these files in Gitea docker installation? I've /bin/bash-ed into container, but cannot find any html/tmpl/css files at all. Also I'm running an "offline" installation just for me.

@MasterGroosha commented on GitHub (Jan 12, 2020): Sorry for dumb question, but where are these files in Gitea docker installation? I've /bin/bash-ed into container, but cannot find any html/tmpl/css files at all. Also I'm running an "offline" installation just for me.
Author
Owner

@sapk commented on GitHub (Jan 12, 2020):

The default files are packaged inside the binary at build time you need to create a custom folder. Please read the docs: https://docs.gitea.io/en-us/customizing-gitea/
You can find the packaged file like template (as example) in the gitea repository : https://github.com/go-gitea/gitea/tree/master/templates

@sapk commented on GitHub (Jan 12, 2020): The default files are packaged inside the binary at build time you need to create a custom folder. Please read the docs: https://docs.gitea.io/en-us/customizing-gitea/ You can find the packaged file like template (as example) in the gitea repository : https://github.com/go-gitea/gitea/tree/master/templates
Author
Owner

@gerroon commented on GitHub (Jan 21, 2020):

Hi

This theme has issues with the code (indexer) search pages :(

https://i.imgur.com/LIAGn8v.png

@gerroon commented on GitHub (Jan 21, 2020): Hi This theme has issues with the code (indexer) search pages :( https://i.imgur.com/LIAGn8v.png
Author
Owner

@artixnous commented on GitHub (Jan 22, 2020):

@gerroon Please, provide a full URL of the problematic page. I only maintain the theme on our own server and I don't see the "<> Code" tab there.

@artixnous commented on GitHub (Jan 22, 2020): @gerroon Please, provide a full URL of the problematic page. I only maintain the theme on [our own server](https://gitea.artixlinux.org) and I don't see the "<> Code" tab there.
Author
Owner

@gerroon commented on GitHub (Jan 22, 2020):

Code is enabled if you enable "indexer"

https://docs.gitea.io/en-us/repo-indexer/

@gerroon commented on GitHub (Jan 22, 2020): Code is enabled if you enable "indexer" https://docs.gitea.io/en-us/repo-indexer/
Author
Owner

@artixnous commented on GitHub (Jan 22, 2020):

Fixed.

@artixnous commented on GitHub (Jan 22, 2020): [Fixed](https://gitea.artixlinux.org/artix/gitea-dark-blue/src/branch/master/theme-arc-blue.css).
Author
Owner

@soulawaker commented on GitHub (May 12, 2020):

@artixnous Thanks for the dark theme applied to swagger. I tried and it worked but white swagger pages still poke my eyes. How can I apply the theme to swagger? I'm using gitea 1.11.4.

@soulawaker commented on GitHub (May 12, 2020): @artixnous Thanks for the dark theme applied to swagger. I tried and it worked but white swagger pages still poke my eyes. How can I apply the theme to swagger? I'm using gitea 1.11.4.
Author
Owner

@artixnous commented on GitHub (May 13, 2020):

May I see a screenshot?

@artixnous commented on GitHub (May 13, 2020): May I see a screenshot?
Author
Owner

@soulawaker commented on GitHub (May 14, 2020):

@artixnous I've attached it.

gitea-api-swagger

@soulawaker commented on GitHub (May 14, 2020): @artixnous I've attached it. ![gitea-api-swagger](https://user-images.githubusercontent.com/5372217/81927224-4213ca80-961e-11ea-8979-fbd9643151b2.png)
Author
Owner

@artixnous commented on GitHub (May 15, 2020):

Hm, not sure why you get such results; please, have a look at our Gitea instance and try to find out why yours isn't themed. Also, please make sure you're using the latest CSS from our repo.
Screenshot at 2020-05-15 17-50-04

@artixnous commented on GitHub (May 15, 2020): Hm, not sure why you get such results; please, have a look at [our Gitea instance](https://gitea.artixlinux.org/api/swagger) and try to find out why yours isn't themed. Also, please make sure you're using the [latest CSS from our repo](https://gitea.artixlinux.org/artix/gitea-dark-blue/src/branch/master/theme-arc-blue.css). ![Screenshot at 2020-05-15 17-50-04](https://user-images.githubusercontent.com/6310912/82064243-2dded480-96d5-11ea-90bd-70ca5777db62.png)
Author
Owner

@soulawaker commented on GitHub (May 16, 2020):

@artixnous Thanks for reviews! I'll try to find things.

@soulawaker commented on GitHub (May 16, 2020): @artixnous Thanks for reviews! I'll try to find things.
Author
Owner

@lunny commented on GitHub (May 17, 2020):

Maintaining a theme will spend many times so that we will not maintian many themes officially. So I think this should not be merged into gitea main branch. And you can always find all kinds of themes here https://gitea.com/gitea/awesome-gitea#user-content-themes .

I will close this issue, and please go to https://discourse.gitea.io/c/themes/9 to discuss about themes.

@lunny commented on GitHub (May 17, 2020): Maintaining a theme will spend many times so that we will not maintian many themes officially. So I think this should not be merged into gitea main branch. And you can always find all kinds of themes here https://gitea.com/gitea/awesome-gitea#user-content-themes . I will close this issue, and please go to https://discourse.gitea.io/c/themes/9 to discuss about themes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2881