Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark blue theme #6011

Open
artixnous opened this issue Feb 8, 2019 · 7 comments

Comments

6 participants
@artixnous
Copy link

commented 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

@lunny lunny added the kind/proposal label Feb 9, 2019

@lunny

This comment has been minimized.

Copy link
Member

commented Feb 9, 2019

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

@rakshith-ravi

This comment has been minimized.

Copy link

commented 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.

@sapk

This comment has been minimized.

Copy link
Member

commented 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.

@jolheiser

This comment has been minimized.

Copy link
Member

commented 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

<link rel="stylesheet" href="{{AppSubUrl}}/css/theme-{{.SignedUser.Theme}}.css">

Anonymous user

<link rel="stylesheet" href="{{AppSubUrl}}/css/theme-{{DefaultTheme}}.css">

@artixnous

This comment has been minimized.

Copy link
Author

commented Feb 10, 2019

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

@Oreolek

This comment has been minimized.

Copy link

commented May 15, 2019

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

@jolheiser

This comment has been minimized.

Copy link
Member

commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.