mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Remove meta tags theme-color and default-theme (#24960)
				
					
				
			As discussed in https://github.com/go-gitea/gitea/pull/24953#issuecomment-1565630156. ## ⚠️ BREAKING ⚠️ 1. The `ui.THEME_COLOR_META_TAG` setting has been removed. If you still need to set the `theme-color` meta tag, add it via `$GITEA_CUSTOM/templates/custom/header.tmpl` instead. 2. The non-standard `default-theme` meta-tag added in https://github.com/go-gitea/gitea/pull/13809 has been removed. Third party code that needs to obtain the currently loaded theme should use the `theme-<name>` class on the `<html>` node instead, which reflect the currently active theme.
This commit is contained in:
		@@ -22,7 +22,6 @@ var UI = struct {
 | 
			
		||||
	GraphMaxCommitNum     int
 | 
			
		||||
	CodeCommentLines      int
 | 
			
		||||
	ReactionMaxUserNum    int
 | 
			
		||||
	ThemeColorMetaTag     string
 | 
			
		||||
	MaxDisplayFileSize    int64
 | 
			
		||||
	ShowUserEmail         bool
 | 
			
		||||
	DefaultShowFullName   bool
 | 
			
		||||
@@ -77,7 +76,6 @@ var UI = struct {
 | 
			
		||||
	GraphMaxCommitNum:   100,
 | 
			
		||||
	CodeCommentLines:    4,
 | 
			
		||||
	ReactionMaxUserNum:  10,
 | 
			
		||||
	ThemeColorMetaTag:   ``,
 | 
			
		||||
	MaxDisplayFileSize:  8388608,
 | 
			
		||||
	DefaultTheme:        `auto`,
 | 
			
		||||
	Themes:              []string{`auto`, `gitea`, `arc-green`},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user