-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Improve theme display #30671
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
Improve theme display #30671
Conversation
247084f
to
cbb63bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to move variable to :root
.
I won't do it, unless you could write clear code to implement it, but I think it is impossible (not feasible in my mind) |
I don't see why a regex like |
Easy match: https://regex101.com/r/nJEo79/3 |
Just do it. |
Working on new regex. |
Ugh thanks for the merge conflict. |
It's the same time as answering #30671 (comment) ... the conflict could be simple because I didn't change much, only removed PreferColorSchemes and added some comments |
New version is up. It parses for the last occurence of a variable in a file. If that does not suit you, we install a full CSS parser. |
Another we should just put put it into a "legal comment" block at the start, arguably better then a CSS block that never matches anything. /*!
name: My Theme
url: https://gitea.com/my/theme
*/ Or even simpler: /*! My Theme - https://gitea.com/my/theme */ |
I agree |
By putting a |
Then it sill needs some "tag" to help the locate the comment block. Does this look good to you? Or other ideas?
"legal comment" would cause more confusing problems and it seems to be an abuse.
|
@wxiaoguang I think this proposal looks good, and it would solve the remaining criticism, could you update the PR? |
I'm sorry the documentation changes need to be sent to https://gitea.com/gitea/docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can grumpily approve this as I think it's more important that we do this step then to bikeshed any further. Still I would prefer to see the new property on :root
.
# Conflicts: # docs/content/administration/customizing-gitea.en-us.md # routers/web/user/setting/profile.go
* giteaofficial/main: Move notifywatch to service layer (go-gitea#33825) [skip ci] Updated translations via Crowdin Only keep popular licenses (go-gitea#33832) Removing unwanted ui container (go-gitea#33833) Full-file syntax highlighting for diff pages (go-gitea#33766) Improve theme display (go-gitea#30671) Decouple context from repository related structs (go-gitea#33823) Improve log format (go-gitea#33814) Decouple diff stats query from actual diffing (go-gitea#33810) Add global lock for migrations to make upgrade more safe with multiple replications (go-gitea#33706) Do not show passkey on http sites (go-gitea#33820)
Document: https://gitea.com/gitea/docs/pulls/180  (cherry picked from commit 6f13331)
Document: https://gitea.com/gitea/docs/pulls/180