• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

White menu and application bar even in the dark and darkest theme

Participant ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

OS: Windows 10

 

Intended behaviour: Application bar and manu bar are dark in the "dark" and "darkest" theme.

Actual behaviour: White menu and application bar even in the dark and darkest theme

 

20240311_140122_378_chrome.png

20240311_140545_256_Adobe_Bridge.png

TOPICS
Bug , Feature request , Problem or error

Views

86

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

LATEST

Here's another ugly hack (Windows 10). You lose the menu bar, but I don't mind - I never use the menu in Bridge.

 

20240311_144318_260_explorer.png

 

1. Run the Bridge

2. Run the following Power Shell script. Everything will be back to normal one you quit and run Bridge again.

 

 

Add-Type @"
    using System;
    using System.Runtime.InteropServices;

    public class DwmApi {
        [DllImport("dwmapi.dll")]
        public static extern int DwmSetWindowAttribute(IntPtr hwnd, int dwAttribute, ref int pvAttribute, int cbAttribute);
    }
    
    public class UxTheme {
        [DllImport("uxtheme.dll", SetLastError=true, CharSet=CharSet.Unicode)]
        public static extern int SetWindowTheme(IntPtr hWnd, string pszSubAppName, string pszSubIdList);
    }
    
    public class User32 {
        [DllImport("user32.dll")]
        public static extern int SetMenu(IntPtr hWnd, IntPtr hMenu);
    }
"@


$DARK_IMMERSIVE_ID = 20
$DARK_MODE = 1

# Function to disable DWM non-client area rendering
function SetDarkMode([IntPtr]$hwnd) {
    $attributeValue = $DARK_MODE
    [DwmApi]::DwmSetWindowAttribute($hwnd, $DARK_IMMERSIVE_ID, [ref]$attributeValue, 4)
    
    # Set window theme (optional)
    [UxTheme]::SetWindowTheme($hwnd, "DarkMode_Explorer", $null)
}

function HideMenuBar([IntPtr]$hwnd) {
    [User32]::SetMenu($hwnd, [IntPtr]::Zero)
}


$windowHandle = (Get-Process -Name "Adobe Bridge").MainWindowHandle
SetDarkMode $windowHandle
HideMenuBar $windowHandle

 

 


--

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines