-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edge: Inherit dark theme from Eclipse
Set ICoreWebView2Profile#put_PreferredColorScheme() based on the Eclipse theme, if this is dark. The same way it is done in Display.setData(USE_DARKMODE_EXPLORER_THEME_KEY, ...) via OS.SetPreferredAppMode(PreferredAppMode_...);
- Loading branch information
1 parent
8fe0fb0
commit c7f4cc3
Showing
6 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...pse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ICoreWebView2Profile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 SAP SE and others. | ||
* | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* SAP SE - initial implementation | ||
*******************************************************************************/ | ||
package org.eclipse.swt.internal.ole.win32; | ||
|
||
public class ICoreWebView2Profile extends IUnknown { | ||
|
||
public ICoreWebView2Profile(long address) { | ||
super(address); | ||
} | ||
|
||
public int get_ProfileName(long[] value) { | ||
return COM.VtblCall(3, address, value); | ||
} | ||
|
||
public int get_IsInPrivateModeEnabled(long[] value) { | ||
return COM.VtblCall(4, address, value); | ||
} | ||
|
||
public int get_ProfilePath(long[] value) { | ||
return COM.VtblCall(5, address, value); | ||
} | ||
|
||
public int get_DefaultDownloadFolderPath(long[] value) { | ||
return COM.VtblCall(6, address, value); | ||
} | ||
|
||
public int put_DefaultDownloadFolderPath(long[] value) { | ||
return COM.VtblCall(7, address, value); | ||
} | ||
|
||
public int get_PreferredColorScheme(long[] value) { | ||
return COM.VtblCall(8, address, value); | ||
} | ||
|
||
public int put_PreferredColorScheme(long value) { | ||
return COM.VtblCall(9, address, value); | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
...eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ICoreWebView2_13.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 SAP SE and others. | ||
* | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* SAP SE - initial implementation | ||
*******************************************************************************/ | ||
package org.eclipse.swt.internal.ole.win32; | ||
|
||
public class ICoreWebView2_13 extends ICoreWebView2_12 { | ||
|
||
public ICoreWebView2_13(long address) { | ||
super(address); | ||
} | ||
|
||
public int get_Profile(long[] value) { | ||
return COM.VtblCall(105, address, value); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters