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

@ -239,6 +239,12 @@
"null"
]
},
"uploaded_logo_dark": {
"type": [
"string",
"null"
]
},
"uploaded_background": {
"type": [
"string",
@ -293,6 +299,7 @@
"topic_featured_link_allowed",
"search_priority",
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background"
]
}

View File

@ -156,6 +156,12 @@
"null"
]
},
"uploaded_logo_dark": {
"type": [
"string",
"null"
]
},
"uploaded_background": {
"type": [
"string",
@ -199,6 +205,7 @@
"topics_all_time",
"subcategory_ids",
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background"
]
}

View File

@ -242,6 +242,12 @@
"null"
]
},
"uploaded_logo_dark": {
"type": [
"string",
"null"
]
},
"uploaded_background": {
"type": [
"string",
@ -296,6 +302,7 @@
"topic_featured_link_allowed",
"search_priority",
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background"
]
}

View File

@ -629,6 +629,12 @@
"null"
]
},
"uploaded_logo_dark": {
"type": [
"string",
"null"
]
},
"uploaded_background": {
"type": [
"string",
@ -680,6 +686,7 @@
"required_tag_groups",
"read_only_banner",
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background",
"can_edit"
]