diff --git a/models/theme/theme_meta.go b/models/theme/theme_meta.go index e0fc1fb175..d5c117b2e9 100644 --- a/models/theme/theme_meta.go +++ b/models/theme/theme_meta.go @@ -26,8 +26,8 @@ type Theme struct { Description string // Scheme is the theme's color scheme. It must be either: dark, light, or auto. Scheme string - // Verified is whether the theme is verified. It means the theme is guaranteed to be bug-free, which happens more with third-party themes. - Verified bool + // Recommended means the theme is guaranteed to be bug-free, usually a first-party theme. + Recommended bool } // loadThemeMeta loads theme metadata from a file in a layered FS. @@ -54,7 +54,7 @@ func loadThemeMeta(assetFs *assetfs.LayeredFS, filename string, theme *Theme) er theme.Url = kv["url"] theme.Description = kv["description"] theme.Scheme = strings.ToLower(kv["scheme"]) - theme.Verified = kv["verified"] == "yes" + theme.Recommended = kv["recommended"] == "yes" return nil } diff --git a/options/locale_next/locale_en-US.json b/options/locale_next/locale_en-US.json index acb562fdc8..977cc22e49 100644 --- a/options/locale_next/locale_en-US.json +++ b/options/locale_next/locale_en-US.json @@ -92,7 +92,7 @@ "discussion.locked": "This discussion has been locked. Commenting is limited to contributors.", "editor.textarea.tab_hint": "Line already indented. Press Tab again or Escape to leave the editor.", "editor.textarea.shift_tab_hint": "No indentation on this line. Press Shift + Tab again or Escape to leave the editor.", - "settings.theme_verified": "Verified", + "settings.theme_recommended": "Recommended", "settings.theme_light": "Light", "settings.theme_dark": "Dark", "settings.theme_auto": "Auto (per your browser)", diff --git a/templates/user/settings/appearance.tmpl b/templates/user/settings/appearance.tmpl index 5c32055ea4..f9c6fd95fc 100644 --- a/templates/user/settings/appearance.tmpl +++ b/templates/user/settings/appearance.tmpl @@ -12,7 +12,7 @@
{{$theme.Name}} - by {{$theme.Author}} {{if $theme.Verified}}{{svg "octicon-verified" 16 "dropdown icon"}}{{end}} + by {{$theme.Author}} {{if $theme.Recommended}}{{svg "octicon-star" 16 "dropdown icon"}}{{end}}
{{if $theme.Description}}"{{$theme.Description}}"
@@ -37,16 +37,18 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}}