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 abfedcd948..86e9633a5e 100644 --- a/options/locale_next/locale_en-US.json +++ b/options/locale_next/locale_en-US.json @@ -100,13 +100,12 @@ "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.", "admin.dashboard.cleanup_offline_runners": "Cleanup offline runners", + "settings.visibility.description": "Profile visibility affects others' ability to access your non-private repositories. Learn more", + "avatar.constraints_hint": "Custom avatar may not exceed %[1]s in size or be larger than %[2]dx%[3]d pixels", "settings.theme_recommended": "Recommended", "settings.theme_light": "Light", "settings.theme_dark": "Dark", "settings.theme_auto": "Auto (per your browser)", "error.issue_not_found": "Issue not found", - "admin.dashboard.cleanup_offline_runners": "Cleanup offline runners", - "settings.visibility.description": "Profile visibility affects others' ability to access your non-private repositories. Learn more", - "avatar.constraints_hint": "Custom avatar may not exceed %[1]s in size or be larger than %[2]dx%[3]d pixels", "meta.last_line": "Thank you for translating Forgejo! This line isn't seen by the users but it serves other purposes in the translation management. You can place a fun fact in the translation instead of translating it." } 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"}}