FEATURE: Add dark mode option for category backgrounds (#24003)

Adds a new upload field for a dark mode category background that will be used as an alternative when Discourse is using a dark mode theme.
This commit is contained in:
Sérgio Saquetim
2023-10-20 09:48:06 -03:00
committed by GitHub
parent e7afd18155
commit 0cfc42e0e6
21 changed files with 228 additions and 20 deletions

View File

@@ -260,6 +260,12 @@
"string",
"null"
]
},
"uploaded_background_dark": {
"type": [
"string",
"null"
]
}
},
"required": [
@@ -310,7 +316,8 @@
"search_priority",
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background"
"uploaded_background",
"uploaded_background_dark"
]
}
},

View File

@@ -167,6 +167,12 @@
"string",
"null"
]
},
"uploaded_background_dark": {
"type": [
"string",
"null"
]
}
},
"required": [
@@ -206,7 +212,8 @@
"subcategory_ids",
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background"
"uploaded_background",
"uploaded_background_dark"
]
}
}

View File

@@ -263,6 +263,12 @@
"string",
"null"
]
},
"uploaded_background_dark": {
"type": [
"string",
"null"
]
}
},
"required": [
@@ -314,7 +320,8 @@
"search_priority",
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background"
"uploaded_background",
"uploaded_background_dark"
]
}
},

View File

@@ -701,6 +701,12 @@
"null"
]
},
"uploaded_background_dark": {
"type": [
"string",
"null"
]
},
"can_edit": {
"type": "boolean"
},
@@ -752,6 +758,7 @@
"uploaded_logo",
"uploaded_logo_dark",
"uploaded_background",
"uploaded_background_dark",
"can_edit"
]
}