SHOW_USER_EMAIL = true
; Set the default theme for the Gitea install
DEFAULT_THEME = gitea
+; Set the color range to use for heatmap (default to `['#f4f4f4', '#459928']` but can use `['#2d303b', '#80bb46']` with the theme `arc-green`)
+HEATMAP_COLOR_RANGE = `['#f4f4f4', '#459928']`
[ui.admin]
; Number of users that are displayed on one page
MaxDisplayFileSize int64
ShowUserEmail bool
DefaultTheme string
+ HeatmapColorRange string
Admin struct {
UserPagingNum int
ThemeColorMetaTag: `#6cc644`,
MaxDisplayFileSize: 8388608,
DefaultTheme: `gitea`,
+ HeatmapColorRange: `['#f4f4f4', '#459928']`,
Admin: struct {
UserPagingNum int
RepoPagingNum int
"DefaultTheme": func() string {
return setting.UI.DefaultTheme
},
+ "HeatmapColorRange": func() string {
+ return setting.UI.HeatmapColorRange
+ },
"dict": func(values ...interface{}) (map[string]interface{}, error) {
if len(values) == 0 {
return nil, errors.New("invalid dict call")
var heatmap = calendarHeatmap()
.data(chartData)
.selector('#user-heatmap')
- .colorRange(['#f4f4f4', '#459928'])
+ .colorRange({{SafeJS HeatmapColorRange}})
.tooltipEnabled(true);
heatmap();
});