Menu bar background color not following themes #11249

Closed
opened 2025-11-02 09:32:11 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @TheNonexistent on GitHub (Jul 17, 2023).

Description

The top menu bar does not follow the color scheme of the selected theme, the css variable --color-nav-bg is always provided by index.css and overrides any changes the theme makes.

Even when manually setting the --color-nav-bg variable inside the theme-<>.css, the variable is stripped from the final file served to the browser.

The default dark theme(arc-green) works as expected as it provides a --color-nav-bg variable.

Screenshots

image
image

Gitea Version

1.20.0 on docker

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Debian Linux (Firefox and Chrome browsers)

Browser Version

Firefox 115.0.2

Originally created by @TheNonexistent on GitHub (Jul 17, 2023). ### Description The top menu bar does not follow the color scheme of the selected theme, the css variable `--color-nav-bg` is always provided by `index.css` and overrides any changes the theme makes. Even when manually setting the `--color-nav-bg` variable inside the theme-<>.css, the variable is stripped from the final file served to the browser. The default dark theme(arc-green) works as expected as it provides a `--color-nav-bg` variable. ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/12313295/145e36b5-86f8-4ceb-beb1-20c57ad7fe70) ![image](https://github.com/go-gitea/gitea/assets/12313295/53202aaf-15fa-4ea2-b4b4-e70e79c6c80b) ### Gitea Version 1.20.0 on docker ### Can you reproduce the bug on the Gitea demo site? No ### Operating System Debian Linux (Firefox and Chrome browsers) ### Browser Version Firefox 115.0.2
GiteaMirror added the topic/uitype/bug labels 2025-11-02 09:32:11 -06:00
Author
Owner

@denyskon commented on GitHub (Jul 17, 2023):

Some variables need to be updated in your theme to work, check the changes to arc-green in https://github.com/go-gitea/gitea/pull/25111#pullrequestreview-1482757937

@denyskon commented on GitHub (Jul 17, 2023): Some variables need to be updated in your theme to work, check the changes to arc-green in https://github.com/go-gitea/gitea/pull/25111#pullrequestreview-1482757937
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11249