catppuccin / gitea

🍵 Soothing pastel theme for Gitea
https://gitea.catppuccin.com/
MIT License
211 stars 14 forks source link

support gitea v1.20.0 #9

Closed hiifong closed 1 year ago

hiifong commented 1 year ago

image

JokingChicken commented 1 year ago

I am also running the v1.20.0-rc0 version. and also have this problem. resolved this specific issue here: gitea-update-v1.20

but seems like there are a lot more changes that break the themes.

blacknet76 commented 1 year ago

you can change the following in the .css files to make it display correctly:

search for:

  --color-navbar: 
  --color-navbar-transparent: 

and replace it with

  --color-nav-bg: 
  --color-nav-hover-bg: 

I am not a profi and have only been using the theme since yesterday, so I don't know if the behaviour is correct.

hiifong commented 1 year ago

you can change the following in the .css files to make it display correctly:

search for:

  --color-nav-bg: 
  --color-nav-bg-transparent:

and replace it with

  --color-nav-bg: 
  --color-nav-hover-bg: 

I am not a profi and have only been using the theme since yesterday, so I don't know if the behaviour is correct.

Thank you very much for your reply!

blacknet76 commented 1 year ago

Thank you very much for your reply!

I just saw that the search string was wrong, I changed it in my post.

hiifong commented 1 year ago

Thank you very much for your reply!

I just saw that the search string was wrong, I changed it in my post.

👌🏻

NebulaBC commented 1 year ago

I've just upgraded to 1.20.2 and had an issue with the bar at the top being the wrong size, positioning, and colours. I've thrown together a little shell command to make the changes previously stated here, and a few to fix the positioning of the bar. (You can just run this from the root of your Gitea folder, pretty much anywhere works.)

find . -type f \( -name '*.css' -exec sed -i 's/--color-navbar:/--color-nav-bg:/; s/--color-navbar-transparent:/--color-nav-hover-bg:/' {} + \) -o \( -name 'head.tmpl' -exec sed -i 's/class="ui top secondary stackable main menu following bar light no-vertical-tabs"//g' {} + \)

You'll need to restart Gitea after running this for the changes to fully take effect. I'm no CSS/HTML whiz, so if this inadvertently breaks anything let me know.