summarylogtreecommitdiffstats
path: root/transparent.diff
diff options
context:
space:
mode:
authorfrantic10482021-08-12 13:57:35 +0800
committerfrantic10482021-08-12 13:57:35 +0800
commit7a67e236db19ec96c0ac2f799acef429dd605de1 (patch)
tree3e357ad0d45bcccf9a244895faabd47b247cdfa6 /transparent.diff
parent93f02d3722c064d98df37c1f63dab34b1b1d60b3 (diff)
downloadaur-7a67e236db19ec96c0ac2f799acef429dd605de1.tar.gz
upgpkg: code-transparent 1.59.0-1
update to 1.59 with jnbooth's patch reference: - https://aur.archlinux.org/packages/code-transparent/#comment-821427 - https://github.com/jnbooth/code-transparent/commit/d43d4cf0c0a7aa492055573d6e5b94fcc7539682
Diffstat (limited to 'transparent.diff')
-rw-r--r--transparent.diff35
1 files changed, 34 insertions, 1 deletions
diff --git a/transparent.diff b/transparent.diff
index 3043379192d2..d543f763d9d0 100644
--- a/transparent.diff
+++ b/transparent.diff
@@ -7,11 +7,44 @@ diff --git a/src/main.js b/src/main.js
+ // enable transparent
+ app.commandLine.appendSwitch('enable-transparent-visuals');
-+ app.commandLine.appendSwitch('disable-gpu');
++ app.commandLine.appendSwitch('use-gl', 'desktop');
+
// Support JS Flags
const jsFlags = getJSFlags(cliArgs);
if (jsFlags) {
+diff --git a/src/vs/platform/theme/electron-main/themeMainService.ts b/src/vs/platform/theme/electron-main/themeMainService.ts
+index 189811d6fdf..d10bd05bced 100644
+--- a/src/vs/platform/theme/electron-main/themeMainService.ts
++++ b/src/vs/platform/theme/electron-main/themeMainService.ts
+@@ -3,7 +3,7 @@
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+-import { BrowserWindow, nativeTheme } from 'electron';
++import { nativeTheme } from 'electron';
+ import { isWindows, isMacintosh } from 'vs/base/common/platform';
+ import { IStateMainService } from 'vs/platform/state/electron-main/state';
+ import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
+@@ -68,19 +68,6 @@ export class ThemeMainService implements IThemeMainService {
+ { key: THEME_WINDOW_SPLASH, data: splash }
+ ]);
+
+- // Update in opened windows
+- if (typeof windowId === 'number') {
+- this.updateBackgroundColor(windowId, splash);
+- }
+- }
+-
+- private updateBackgroundColor(windowId: number, splash: IPartsSplash): void {
+- for (const window of BrowserWindow.getAllWindows()) {
+- if (window.id === windowId) {
+- window.setBackgroundColor(splash.colorInfo.background);
+- break;
+- }
+- }
+ }
+
+ getWindowSplash(): IPartsSplash | undefined {
diff --git a/src/vs/platform/windows/electron-main/window.ts b/src/vs/platform/windows/electron-main/window.ts
--- a/src/vs/platform/windows/electron-main/window.ts
+++ b/src/vs/platform/windows/electron-main/window.ts