GithubHelp home page GithubHelp logo

Comments (18)

wxiaoguang avatar wxiaoguang commented on May 22, 2024 1

Download https://github.com/go-gitea/gitea/blob/release/v1.21/web_src/css/themes/theme-arc-green.css

Actually I wouldn't recommend to do so if end users do not want to spend enough time on customizing. The problem is that the theme variables (always) change between versions. So a 1.21 theme might not work well in 1.22 (some parts work, while some parts don't)

If end users would like to spend enough time on customizing, the customized theme should base on the related release's theme variables.

Edit /data/gitea/conf/app.ini to add

No need to do so anymore after #30625, all themes are automatically discovered.

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

We will get this support in 1.22 , but I guess I won't backport it to 1.21 since it would cause some non-bugfix changes.

Related: [Feature Request] Add "Ctrl+Enter" posting of messages for all textareas #14843

from gitea.

bilogic avatar bilogic commented on May 22, 2024

Got it, is there a 1.22 image that I can test?

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

Not yet at the moment. Maybe I could start coding in a few days 😄

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

A quick fix could be like this: Make Ctrl+Enter work for issue/comment edit #30720

Actually I have a complex plan for fixing the "enter" behaviors for various forms, while I think this quick fix doesn't cost much time and is good to have.


If the quick fix could be merged, then you could try it by the nightly release

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

Got it, is there a 1.22 image that I can test?

Now we have 1.22-rc1, it contains the "fix":

image

from gitea.

bilogic avatar bilogic commented on May 22, 2024

Ok, found the docker image gitea/gitea:1.22.0-rc1

from gitea.

bilogic avatar bilogic commented on May 22, 2024

It seems the arc-green theme was removed between 1.21.11+9-g0e20ccfe32 and 1.22.0-rc1? Anyway for me to get it back?

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

It is still there, only renamed.

There is a breaking change for it: https://github.com/go-gitea/gitea/releases

Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419)

The renaming is done to make it easier to support more user's custom themes.

from gitea.

bilogic avatar bilogic commented on May 22, 2024

How would I go about that with docker? Let me know if there is a better place to discuss this theme issue. Thank you.

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

How would I go about that with docker?

Sorry, I didn't get the point of "How would I go about that with docker?". Do you mean you didn't see it?

Maybe there is something in your app.ini, check the THEME related keys.


Maybe there are some legacy options generated by old Gitea, now you could simply make THEMES to be empty, then all themes could be used.

from gitea.

bilogic avatar bilogic commented on May 22, 2024

image

I'm using docker, so I assume everything gets overwritten?
The above are all that I can see in 1.22, and none of them shows what I used previously.

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

I'm using docker, so I assume everything gets overwritten?
The above are all that I can see in 1.22, and none of them shows what I used previously.

Hmm, do you mean that you still need the "green dark theme" which is named "arc-green" ?

There is one change for the dark theme: Recolor dark theme to blue shade (#29283)

If I understand correctly, the "arc dark theme" was completely rewritten by #27419 / #29283, the color change proposal is in #27097, so there is no equivalent arc-green in 1.22 after #29283. Maybe @silverwind (the author of these issue/PR) knows more.

from gitea.

bilogic avatar bilogic commented on May 22, 2024

Yes, I'm looking for the arc-green theme. All the referenced conversations are locked. But thanks!

@silverwind Personally, the arc-green matches the green gitea logo better even tho I understand this is trying to achieve consistency between dark/light. But why the need to be "consistent"? In our setup, we never toggle gitea to light. It would be great if there is a way to get back arc-green.

from gitea.

lunny avatar lunny commented on May 22, 2024

Yes, I'm looking for the arc-green theme. All the referenced conversations are locked. But thanks!

@silverwind Personally, the arc-green matches the green gitea logo better even tho I understand this is trying to achieve consistency between dark/light. But why the need to be "consistent"? In our setup, we never toggle gitea to light. It would be great if there is a way to get back arc-green.

Maybe that theme could be copied as a third-party theme.

from gitea.

wxiaoguang avatar wxiaoguang commented on May 22, 2024

I could share some of my opinions about this decision:

  1. there are many buttons/labels/messages in green (no matter which theme is used), the green elements usually mean "success". So the default green color used by "arc-green" as primary color would confuse users.
  2. there are more users affected by green/red blindness than blue.

from gitea.

bilogic avatar bilogic commented on May 22, 2024

Maybe that theme could be copied as a third-party theme.

Yea, this would be great, any instructions on how to get it back in my docker setup?

  1. there are many buttons/labels/messages in green (no matter which theme is used), the green elements usually mean "success". So the default green color used by "arc-green" as primary color would confuse users.
  2. there are more users affected by green/red blindness than blue.

Thanks for the insight. Maybe a blue gitea icon? 🤭

Jokes and considerations aside, and this is just my personal preference: I find the arc-green "cleaner" as compared to the mix of blue/green.

I guess this comes from my approach of having subtle success notifications, but loud failure alerts. As my reporting mechanisms may sometimes break, success notifications are necessary to assure that it is not broken.

from gitea.

lunny avatar lunny commented on May 22, 2024

You can try to follow the below steps to add a custom theme

[UI]
THEMES=arc-green,gitea-auto,gitea-light,gitea-dark
  • Restart the Gitea container

from gitea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.