Skip to content
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

ClangbuilderUI Add Windows 10 Theme support #39

Closed
fcharlie opened this issue Apr 10, 2019 · 0 comments
Closed

ClangbuilderUI Add Windows 10 Theme support #39

fcharlie opened this issue Apr 10, 2019 · 0 comments

Comments

@fcharlie
Copy link
Contributor

fcharlie commented Apr 10, 2019

Reference:
Allow for transparent / vibrant window theme
Windows 10 Fluent Design / Acrylic material
Adding the "Aero Glass" blur to your Windows 10 apps
https://github.com/arkenthera/electron-vibrancy/blob/master/src/vibrancy_win.cc

public enum AccentState
{
    ACCENT_DISABLED = 0,                    // Black and solid background
    ACCENT_ENABLE_GRADIENT = 1,             // Custom-colored solid background
    ACCENT_ENABLE_TRANSPARENTGRADIENT = 2,  // Custom-colored transparent background
    ACCENT_ENABLE_BLURBEHIND = 3,           // Custom-colored and blurred transparent background
    ACCENT_ENABLE_FLUENT = 4,               // Custom-colored Fluent effect
    ACCENT_INVALID_STATE = 5                // Completely transparent background
}
HWND hWnd = FindWindow("Chrome_WidgetWin_1", NULL);
ACCENTPOLICY policy = { 4, 2, 0xaa000000, 0 }; // ACCENT_ENABLE_FLUENT=4
WINCOMPATTRDATA data = { 19, &policy, sizeof(ACCENTPOLICY) }; // WCA_ACCENT_POLICY=19
SetWindowCompositionAttribute(hWnd, &data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant