-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dark theme scrollbars #277
Comments
Try:
In your console application. Correct way is using internal API |
Made a change today to try this out for Insiders builds. |
@miniksa awesome, which build number? I'm on the slow ring fyi. |
@musm It'll be out in a few weeks. It usually takes just about 3 weeks for checkins we make to get up to master, and usually a week after that for the Insider's build to get spun with the change. So, soontm |
Hmm, I tried what @ysc3839 said in powershell (on 1809, of course) and it had no effect on the scrollbars: PS> add-type -Name NativeMethods -Namespace Temp -MemberDefinition @"
[DllImport("uxtheme.dll", SetLastError=true, ExactSpelling=true, CharSet=CharSet.Unicode)]
public static extern int SetWindowTheme(IntPtr hWnd, string pszSubAppName, string pszSubIdList);
[DllImport("kernel32.dll", SetLastError=true)]
public static extern IntPtr GetConsoleWindow();
"@
PS> [Temp.NativeMethods]::SetWindowTheme([Temp.NativeMethods]::GetConsoleWindow(),
"DarkMode_Explorer", $null)
0
PS> # scrollbars still light theme Suggestions on how to correct this, @zadjii-msft or @miniksa ? |
I'm really not sure why it doesn't work from the outside. Could be that it doesn't like being done after |
(unrelated) @ysc3839 can you provide me with some simple minimal example with that in use? Trying to dive in so I can create PRs for some apps I use, but the win32 API world is a little dizzying for first timers. |
@musm https://github.com/ysc3839/VCMPBrowser/blob/darkmode/DarkMode.h PS: Hope Microsoft makes these APIs public for all Win32 apps. |
Does the dark mode cover settings dialog? |
MSFT: 19271078 reached Insiders for 18272+. The follow on fix for a mistake (MSFT: 19548142) reached Insiders for 18309+. |
@miniksa I reverse engineered and found you use GetProcAddress with a magic number. Why not static link to that function? |
@ysc3839 There's a couple reasons for that:
|
@DHowett-MSFT |
can we add the option that if you are using the dark theme in windows that the scrollbars in the prompt
match the dark scrollbars in e.g. explorer
The text was updated successfully, but these errors were encountered: