Browse Source

finalized paint module

Toby Chui 3 years ago
parent
commit
cce4f698e2
1 changed files with 7 additions and 0 deletions
  1. 7 0
      web/Paint/index.html

+ 7 - 0
web/Paint/index.html

@@ -7,6 +7,11 @@
     <script src="../script/jquery.min.js"></script>
     <script src="../script/ao_module.js"></script>
     <title>Paint</title>
+    <style>
+        body{
+            background-color: #999999;
+        }
+    </style>
 </head>
 <body>
     <script src="./js/painterro-1.2.66.min.js"></script>
@@ -55,6 +60,7 @@
                 saveFilepath.pop();
                 saveFilepath = saveFilepath.join("/");
                 saveFilename = filename;
+                ao_module_setWindowTitle("Paint - " + saveFilename);
 
                 //Convert the save pending blob to 
                 let imageFile = ao_module_utils.blobToFile(savePendingBlob, filename);
@@ -79,6 +85,7 @@
         var openingFile = inputFiles[0];
         var filename = openingFile.filename;
         saveFilename = filename;
+        ao_module_setWindowTitle("Paint - " + saveFilename);
 
         //Filter out the filepath to get its parent dir
         var filepath = openingFile.filepath;