FEATURE: Add dark mode option for category logos (#18460)

Adds a new upload field for a second dark mode category logo. 
This alternative will be used when the browser is in dark mode (similar to the global site setting for a dark logo).
This commit is contained in:
Jan Cernik
2022-10-07 12:00:44 -03:00
committed by GitHub
parent e391f71c04
commit 08476f17ff
28 changed files with 110 additions and 24 deletions

View File

@ -210,6 +210,7 @@ task 'site:export_structure', [:zip_path] => :environment do |task, args|
sort_order: c.sort_order,
sort_ascending: c.sort_ascending,
uploaded_logo_id: data.set_upload(c.uploaded_logo_id),
uploaded_logo_dark_id: data.set_upload(c.uploaded_logo_dark_id),
uploaded_background_id: data.set_upload(c.uploaded_background_id),
topic_featured_link_allowed: c.topic_featured_link_allowed,
all_topics_wiki: c.all_topics_wiki,

View File

@ -905,6 +905,7 @@ def analyze_missing_s3
[:user_profiles, :profile_background_upload_id],
[:user_profiles, :card_background_upload_id],
[:categories, :uploaded_logo_id],
[:categories, :uploaded_logo_dark_id],
[:categories, :uploaded_background_id],
[:custom_emojis, :upload_id],
[:theme_fields, :upload_id],