Bläddra i källkod

Revert "vibrancy fixes"

This reverts commit a8d78ce185084406ab4d096399e321fe0f53fac4.
Eugene Pankov 5 år sedan
förälder
incheckning
ea92f1a700
2 ändrade filer med 7 tillägg och 4 borttagningar
  1. 6 3
      app/lib/window.ts
  2. 1 1
      terminus-settings/src/components/settingsTab.component.pug

+ 6 - 3
app/lib/window.ts

@@ -91,10 +91,10 @@ export class Window {
             }
         }
 
-        if (process.platform === 'win32') {
-            this.window = new glasstron.BrowserWindow(bwOptions)
-        } else {
+        if (process.platform === 'darwin') {
             this.window = new BrowserWindow(bwOptions) as GlasstronWindow
+        } else {
+            this.window = new glasstron.BrowserWindow(bwOptions)
         }
 
         this.window.once('ready-to-show', () => {
@@ -155,6 +155,9 @@ export class Window {
             } else {
                 DwmEnableBlurBehindWindow(this.window, enabled)
             }
+        } else if (process.platform === 'linux') {
+            this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27')
+            this.window.setBlur(enabled)
         } else {
             this.window.setVibrancy(enabled ? macOSVibrancyType : null)
         }

+ 1 - 1
terminus-settings/src/components/settingsTab.component.pug

@@ -66,7 +66,7 @@ ngb-tabset.vertical(type='pills', [activeId]='activeTab')
                         )
                         | Right
 
-            .form-line(*ngIf='hostApp.platform !== Platform.Linux')
+            .form-line
                 .header
                     .title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background
                     .title(*ngIf='hostApp.platform === Platform.macOS') Vibrancy