Explorar el Código

Added background color support for mobile interface

TC pushbot 5 hace 4 años
padre
commit
df6d6b2050
Se han modificado 1 ficheros con 13 adiciones y 1 borrados
  1. 13 1
      web/mobile.system

+ 13 - 1
web/mobile.system

@@ -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);