It is currently June 19th, 2019, 1:59 pm

SysColor plugin 1.1

Plugins and Addons popular with the Community
User avatar
Brian
Developer
Posts: 1873
Joined: November 24th, 2011, 1:42 am
Location: Utah

SysColor plugin 1.1

Brian » November 30th, 2012, 6:32 am

SysColor Plugin:
Version 1.1

This is a simple plugin to get some of the current system colors from Windows like the current Aero color (with transparency), menu colors, window colors, etc.

Options include:
  • Hex - When Hex=1, color output is in hex form. Otherwise, the color output is comma-separated. Hex=0 is default.
  • DisplayType - This option will format the color space to an individual channel. Options include: Red, Green, Blue, Alpha, All (default), and RGB (same as "All", but minus the alpha channel).
  • ColorType - Type of color to retrieve from the system. Valid values include: WIN8, Aero, Desktop, Menu, Window, ButtonFace, TooltipBackground, and more. For Windows Vista/7/8/8.1 users, you can also get the "raw" DWM values.
When using ColorType=WIN8, I recommend DisplayType=RGB.

Note: When using an Aero theme (for non-XP users), the only reliable color available is the Aero color (with alpha transparency). You can retrieve the other colors, however they may not be the current color shown. Don't forget to add DynamicVariables=1 to the meters you use this plugin with. See my sample skin for usage.

More information can be found here.

Changes can be found here.

Important: This plugin requires Rainmeter 3.0.2 (r2161) or higher to run. When packaging this plugin with your skin, make sure you set the "Minimum Rainmeter Version" to 3.0.2.2161 in the Skin Packager.

Below is a simple test skin I made to show how it works. In the skin, there is 3 columns showing the option, color value, and a sample of the color. The "Aero" row will also divide the sample color into 2 sections. One with the color, one with Blur enabled. I suggest tweaking your system colors to see any changes. (The plugin is included with the skin, or you can down the plugin here)

-Brian
You do not have the required permissions to view the files attached to this post.
dragonmage
Developer
Posts: 1296
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: SysColor plugin

dragonmage » November 30th, 2012, 12:49 pm

So this should not work on XP?
User avatar
moshi
Posts: 1851
Joined: November 13th, 2012, 9:53 pm

Re: SysColor plugin

moshi » November 30th, 2012, 1:23 pm

quite the contrary. this should work best on XP.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3367
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: SysColor plugin

eclectic-tech » November 30th, 2012, 4:35 pm

moshi wrote:quite the contrary. this should work best on XP.
Here's what I get...(?)

Just a white square box, with an invisible action in the lower left corner...
Changed appearance settings, but never got anything but this...

I need help again Brian ;-)

Running: XP SP3 / 1.5G RAM / Rainmeter 2.5.0.1706
(Running virus scan, that's why CPU @ 100...)
User avatar
Brian
Developer
Posts: 1873
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: SysColor plugin

Brian » November 30th, 2012, 5:04 pm

Sorry, I made a mistake with with supporting windows XP (thanks poiru!). Should be fixed now.

http://rainmeter.net/forum/viewtopic.php?f=18&t=14202&p=80787#p80787

Also, for XP users, my test skin uses the "Aero" color type for its background, so you may have to edit it.

-Brian
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3367
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: SysColor plugin

eclectic-tech » November 30th, 2012, 6:21 pm

Works great on XP... WOW! Thanks for this plugin, Brian!


Being able to match skins to user settings should be great addition!
User avatar
Brian
Developer
Posts: 1873
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: SysColor plugin

Brian » November 30th, 2012, 6:22 pm

Glad it works!

-Brian
dragonmage
Developer
Posts: 1296
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: SysColor plugin

dragonmage » December 1st, 2012, 12:36 am

This will be really handy for alternate shell users on XP. Rainmeter can now auto adjust colors when changing themes.
Unight
Posts: 19
Joined: November 20th, 2012, 5:12 am

Re: SysColor plugin

Unight » December 2nd, 2012, 12:52 am

Thanks!It's useful.
User avatar
Brian
Developer
Posts: 1873
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: SysColor plugin 1.0.2

Brian » March 27th, 2013, 9:27 pm

Updated to version 1.0.2 to fix a bug when using ColorType=Aero across multiple skins. :D

http://rainmeter.net/forum/viewtopic.php?p=80787#p80787

-Brian