Coder Social home page Coder Social logo

contextmenunormalizer's Introduction

ContextMenuNormalizer

In Windows 10 version 1903 Microsoft changed File Explorer immersive context menus highlight color from gray to white, making it very difficult to see.

This little tool runs at startup for a few milliseconds without need in adminstrator rights and patches the color in-memory, returning the look that was from version 1507 to 1809.

It also fixes inconsistent context menu separators on Windows 11.

The distribution which can be downloaded from Releases includes batch files, which can be used for automatic installation and registering for running at startup.

Before: Before

After: After

contextmenunormalizer's People

Contributors

krlvm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

contextmenunormalizer's Issues

No working in Third-party win32 Context Menu

Does SetBitmapBits only work on explorer's Context Menu? Using this code can't modify the color of other win32 Context Menu. If you directly modify the image of ImmersiveStart::Menu under aero.msstyles and use UXThemePatcher to apply the theme, you can find all win32 Context Menu has changed colors, just like StartAllBack. I tried to use this codes to modify the colors of other controls, such as Trackbar, and it worked very well.

Fix install.cmd

Hello,
I noticed someone posted this about the main project (AccentColorizer)
But if the user extracts the .zip into another drive that's not the C drive, it will result in an error.
Simply changing cd %~dp0% to cd /d %~dp0 will fix it.

Also I noticed that the install.cmd script requires Administrator privilege's to properly copy .exe
You can force Admin with this code:

@echo off
@C:\Windows\System32\chcp 28591 > nul
@C:\Windows\System32\mode con cols=105 lines=35
@Title Start as Admin 
:: Checking for admin rights
::------------------------------------------
REM --> Checking Permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> Error: No admistrative privlages
if '%errorlevel%' NEQ '0' (
REM --> Checking administrative privileges
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
@echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"="
echo UAC.ShellExecute "%~s0", "%params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
@cls
GOTO Main

:Main
(rest of the script)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.