Ver Fonte

update window style.

oldj há 4 anos atrás
pai
commit
6cc1bc9d77
3 ficheiros alterados com 15 adições e 14 exclusões
  1. 1 0
      src/main/main.ts
  2. 1 1
      src/main/tray/window.ts
  3. 13 13
      src/renderer/pages/tray.less

+ 1 - 0
src/main/main.ts

@@ -33,6 +33,7 @@ const createWindow = async () => {
     minHeight: 200,
     autoHideMenuBar: true,
     titleBarStyle: 'hiddenInset',
+    frame: false,
     webPreferences: {
       contextIsolation: true,
       preload: path.join(__dirname, 'preload.js'),

+ 1 - 1
src/main/tray/window.ts

@@ -15,7 +15,7 @@ const makeWindow = () => {
     // titleBarStyle: 'hidden',
     hasShadow: true,
     resizable: false,
-    transparent: true,
+    // transparent: true,
     width: 300,
     height: 600,
     minWidth: 300,

+ 13 - 13
src/renderer/pages/tray.less

@@ -60,31 +60,31 @@
 }
 
 :global(.platform-win32) {
-  @bd-color: #000;
+  //@bd-color: #000;
 
   .root {
     //box-shadow: inset 0 0 0 1px #000;
-    border: 1px solid @bd-color;
-    box-sizing: border-box;
+    //border: 1px solid @bd-color;
+    //box-sizing: border-box;
   }
 
   .header {
-    height: 41px;
-    border: 1px solid @bd-color;
-    border-bottom: none;
+    //height: 41px;
+    //border: 1px solid @bd-color;
+    //border-bottom: none;
   }
 
   .body {
-    top: 41px;
-    bottom: 31px;
-    left: 1px;
-    right: 1px;
+    //top: 41px;
+    //bottom: 31px;
+    //left: 1px;
+    //right: 1px;
     .swh-scroll-y();
   }
 
   .footer {
-    left: 1px;
-    right: 1px;
-    bottom: 1px;
+    //left: 1px;
+    //right: 1px;
+    //bottom: 1px;
   }
 }