mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
support setting default theme in workspace config
This commit is contained in:
parent
682fb97230
commit
15d09c4d6a
@ -403,7 +403,8 @@ module.exports = function(options) {
|
||||
"plugins/c9.ide.theme.flat/flat-light",
|
||||
{
|
||||
packagePath: "plugins/c9.ide.layout.classic/preload",
|
||||
themePrefix: options.themePrefix
|
||||
themePrefix: options.themePrefix,
|
||||
defaultTheme: "dark"
|
||||
},
|
||||
{
|
||||
packagePath: "plugins/c9.ide.tree/tree",
|
||||
|
||||
@ -30,7 +30,7 @@ define(function(require, exports, module) {
|
||||
|
||||
function preload(callback) {
|
||||
settings.setDefaults("user/general", [
|
||||
["skin", "dark"] // "flat-light"
|
||||
["skin", options.defaultTheme || "dark"] // "flat-light"
|
||||
]);
|
||||
if (!packed || options.loadTheme) return callback();
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user