mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Implementing the "theme-color" meta tag.
Used by Android >= 5.0 to make the top bar colored. Reference: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
This commit is contained in:
		| @@ -114,6 +114,7 @@ var ( | ||||
| 	AdminRepoPagingNum   int | ||||
| 	AdminNoticePagingNum int | ||||
| 	AdminOrgPagingNum    int | ||||
| 	ThemeColorMetaTag    string | ||||
|  | ||||
| 	// Markdown sttings | ||||
| 	Markdown struct { | ||||
| @@ -407,6 +408,7 @@ func NewContext() { | ||||
| 	AdminRepoPagingNum = sec.Key("REPO_PAGING_NUM").MustInt(50) | ||||
| 	AdminNoticePagingNum = sec.Key("NOTICE_PAGING_NUM").MustInt(50) | ||||
| 	AdminOrgPagingNum = sec.Key("ORG_PAGING_NUM").MustInt(50) | ||||
| 	ThemeColorMetaTag = sec.Key("THEME_COLOR_META_TAG").MustString("#ff5343") | ||||
|  | ||||
| 	sec = Cfg.Section("picture") | ||||
| 	PictureService = sec.Key("SERVICE").In("server", []string{"server"}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user