Process Hacker Discussion Forum

 
User avatar
AltF4
Member
Posts: 77
Joined: 15 Mar 2011 00:53
OS: XP SP3

[Recommended] - Color change in Services + Code

13 Dec 2018 18:27

Hi, I would like to propose a change in the coloring of Disabled + Stopped services. I think that Highlighting should be removed altogether, and instead change the forecolor

Current Color Formatting: (even harder to read as changing the Highlighting of Disabled Services to a lighter color)
https://imgur.com/9lKGqHR

After: (a lot more readable)
https://imgur.com/ThCXeZL

Code change: In srvlist.c...
replace:
            else if (PhCsUseColorServiceDisabled && serviceItem->State == SERVICE_STOPPED && serviceItem->StartType == SERVICE_DISABLED)
            {
                getNodeColor->BackColor = PhCsColorServiceDisabled;
                getNodeColor->Flags |= TN_AUTO_FORECOLOR;
            }
 


With
            else if (PhCsUseColorServiceDisabled && serviceItem->State == SERVICE_STOPPED && serviceItem->StartType == SERVICE_DISABLED)
            {
                getNodeColor->ForeColor = RGB(140, 15, 5);          // Dark red.    via: google.com/search?q=hex+color
            }