Merge pull request #32936 from overleaf/mj-ce-themes

[web] Enable changing overall themes in SP/CE

GitOrigin-RevId: a6aa35e40826faec1001b658603b9f1cc8b0a50d
This commit is contained in:
Mathias Jakobsen
2026-04-21 08:06:31 +00:00
committed by Copybot
parent 628e05a278
commit 32255a4e6f
8 changed files with 47 additions and 26 deletions
@@ -305,23 +305,20 @@ export default async function (webRouter, privateApiRouter, publicApiRouter) {
})
webRouter.use(function (req, res, next) {
// TODO
if (Settings.overleaf != null) {
res.locals.overallThemes = [
{
name: 'Dark',
val: '',
},
{
name: 'Light',
val: 'light-',
},
{
name: 'System',
val: 'system',
},
]
}
res.locals.overallThemes = [
{
name: 'Dark',
val: '',
},
{
name: 'Light',
val: 'light-',
},
{
name: 'System',
val: 'system',
},
]
next()
})