Skip to content

Support selecting theme on the footer - #35741

Merged
wxiaoguang merged 8 commits into
go-gitea:mainfrom
wxiaoguang:support-theme-select
Oct 28, 2025
Merged

Support selecting theme on the footer#35741
wxiaoguang merged 8 commits into
go-gitea:mainfrom
wxiaoguang:support-theme-select

Conversation

@wxiaoguang

@wxiaoguang wxiaoguang commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

Fixes: #27576

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 24, 2025
@wxiaoguang

wxiaoguang commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author
image image

@wxiaoguang
wxiaoguang force-pushed the support-theme-select branch 3 times, most recently from 73de799 to af7cbfd Compare October 24, 2025 17:29
@wxiaoguang
wxiaoguang force-pushed the support-theme-select branch from af7cbfd to e884b35 Compare October 24, 2025 17:46
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 24, 2025
@lunny lunny added this to the 1.26.0 milestone Oct 24, 2025
@wxiaoguang wxiaoguang changed the title Support select theme on the footer Support selecting theme on the footer Oct 25, 2025
@silverwind

Copy link
Copy Markdown
Member

Maybe there is a better colorblind icon, like "eye with cross"? If not deemed ok, I would at least make the white part of the current icon transparent, it looks odd on dark theme.

Comment thread templates/user/settings/appearance.tmpl
Comment thread services/webtheme/webtheme.go
@wxiaoguang

wxiaoguang commented Oct 27, 2025

Copy link
Copy Markdown
Contributor Author

Maybe there is a better colorblind icon, like "eye with cross"? If not deemed ok, I would at least make the white part of the current icon transparent, it looks odd on dark theme.

I have thought about "eye with cross", but it reads like "blind" or "closed eyes".

This icon is from GitHub:

Details image

And use transparent background: d567924

Comment thread routers/web/misc/webtheme.go Outdated
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 28, 2025
@wxiaoguang
wxiaoguang merged commit 6b5563c into go-gitea:main Oct 28, 2025
26 checks passed
@wxiaoguang
wxiaoguang deleted the support-theme-select branch October 28, 2025 10:25
@silverwind

Copy link
Copy Markdown
Member

A nice enhancement here would be to make it work without a page reload, e.g. send the theme change to backend in an fetch call.

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jan 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants