|
@@ -280,6 +280,7 @@
|
|
|
initModuleList();
|
|
|
bindGroupTypeEvents();
|
|
|
initBackdropImage();
|
|
|
+ initUserDefinedThemeColor();
|
|
|
|
|
|
//Bind background click
|
|
|
$("#mainFrame").on("touchstart", function(evt){
|
|
@@ -301,6 +302,18 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function initUserDefinedThemeColor(){
|
|
|
+ $.ajax({
|
|
|
+ url: "../../system/file_system/preference",
|
|
|
+ data: {key: "themecolor"},
|
|
|
+ success: function(data){
|
|
|
+ if (data.error == undefined && data != ""){
|
|
|
+ $(".themeColor").css("background-color", data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
function changeDesktopTheme(themename){
|
|
|
//Match the given theme to the themename
|
|
|
if (themename.includes(":/") == false){
|
|
@@ -653,7 +666,6 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
function openModule(moduleName) {
|
|
|
$.get("system/modules/getLaunchPara?module=" + moduleName, function(data) {
|
|
|
console.log(data);
|