Sky

还是不清楚为什么在Windows上高斯模糊不生效的问题

...@@ -59,7 +59,7 @@ let mainConfig = { ...@@ -59,7 +59,7 @@ let mainConfig = {
59 alias: { 59 alias: {
60 '@config': resolve('config'), 60 '@config': resolve('config'),
61 }, 61 },
62 - extensions: ['.js', '.json', '.node'] 62 + extensions: ['.tsx', '.ts', '.js', '.json', '.node']
63 }, 63 },
64 target: 'electron-main' 64 target: 'electron-main'
65 } 65 }
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
32 "dist/electron/**/*" 32 "dist/electron/**/*"
33 ], 33 ],
34 "dmg": { 34 "dmg": {
35 - "contents": [{ 35 + "contents": [
36 + {
36 "x": 410, 37 "x": 410,
37 "y": 150, 38 "y": 150,
38 "type": "link", 39 "type": "link",
...@@ -119,6 +120,7 @@ ...@@ -119,6 +120,7 @@
119 "html-webpack-plugin": "^3.2.0", 120 "html-webpack-plugin": "^3.2.0",
120 "mini-css-extract-plugin": "0.8.0", 121 "mini-css-extract-plugin": "0.8.0",
121 "multispinner": "^0.2.1", 122 "multispinner": "^0.2.1",
123 + "node-loader": "^0.6.0",
122 "node-sass": "^4.12.0", 124 "node-sass": "^4.12.0",
123 "sass-loader": "^7.0.3", 125 "sass-loader": "^7.0.3",
124 "style-loader": "^1.0.0", 126 "style-loader": "^1.0.0",
...@@ -134,4 +136,4 @@ ...@@ -134,4 +136,4 @@
134 "webpack-hot-middleware": "^2.25.0", 136 "webpack-hot-middleware": "^2.25.0",
135 "webpack-merge": "^4.2.1" 137 "webpack-merge": "^4.2.1"
136 } 138 }
137 -}
...\ No newline at end of file ...\ No newline at end of file
139 +}
......
...@@ -13,6 +13,7 @@ function createMainWindow () { ...@@ -13,6 +13,7 @@ function createMainWindow () {
13 useContentSize: true, 13 useContentSize: true,
14 width: 1000, 14 width: 1000,
15 show: false, 15 show: false,
16 + // transparent: true,
16 titleBarStyle: 'hidden', 17 titleBarStyle: 'hidden',
17 webPreferences: { 18 webPreferences: {
18 nodeIntegration: true 19 nodeIntegration: true
...@@ -37,6 +38,7 @@ function loadindWindow (loadingURL) { ...@@ -37,6 +38,7 @@ function loadindWindow (loadingURL) {
37 width: 400, 38 width: 400,
38 height: 600, 39 height: 600,
39 frame: false, 40 frame: false,
41 +
40 transparent: true, 42 transparent: true,
41 webPreferences: { experimentalFeatures: true } 43 webPreferences: { experimentalFeatures: true }
42 }) 44 })
...@@ -45,10 +47,10 @@ function loadindWindow (loadingURL) { ...@@ -45,10 +47,10 @@ function loadindWindow (loadingURL) {
45 47
46 loadWindow.show() 48 loadWindow.show()
47 49
48 - setTimeout(() => { 50 + // setTimeout(() => {
49 - createMainWindow() 51 + // createMainWindow()
50 - loadWindow.destroy() 52 + // loadWindow.destroy()
51 - }, 2000) 53 + // }, 2000)
52 } 54 }
53 function initWindow (loadingURL) { 55 function initWindow (loadingURL) {
54 if (require('@config').UseStartupChart) { 56 if (require('@config').UseStartupChart) {
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
6 <title></title> 6 <title></title>
7 7
8 <style> 8 <style>
9 - /* Demo Styles - It's all in the SVG */
10 html { 9 html {
11 height: 100%; 10 height: 100%;
12 min-height: 100%; 11 min-height: 100%;
...@@ -14,8 +13,10 @@ ...@@ -14,8 +13,10 @@
14 } 13 }
15 14
16 html body { 15 html body {
17 - background: #222428af; 16 + background: #222428;
18 - backdrop-filter: blur(8px); 17 + /* on the windows it's con't use l don't why */
18 + /* -webkit-backdrop-filter: brightness(150%) blur(30px);
19 + backdrop-filter: brightness(150%) blur(30px); */
19 background-size: 163px; 20 background-size: 163px;
20 font: 14px/21px Monaco, sans-serif; 21 font: 14px/21px Monaco, sans-serif;
21 color: #999; 22 color: #999;
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
26 text-size-adjust: 100%; 27 text-size-adjust: 100%;
27 height: 100%; 28 height: 100%;
28 min-height: 100%; 29 min-height: 100%;
30 + margin: 0px;
29 } 31 }
30 32
31 html body a, 33 html body a,
......