It is currently March 28th, 2024, 10:40 pm

ColorRAM - Chameleon Plugin

Skins that monitor system information
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

ColorRAM - Chameleon Plugin

Post by jsmorley »

This skin demonstrates how you might use the Chameleon Plugin by Socks the Fox.

This is a very clever plugin, that will allow you to set colors based on (among other things) the desktop wallpaper currently loaded in Windows. So as you change your wallpaper, your skin can react and change colors to match.

The actual functionality of this skin is to display your system memory.

Physical: The amount of RAM in your system
PageFile: The paging file found in the root of your system drive. Windows uses this to swap memory to disk as needed
Swap: The amount of memory with both Physical and PageFile
Total: The virtual memory reported by windows. This is Physical + Swap

This skin requires the latest Rainmeter 3.3 from http://rainmeter.net.

Download: ColorRAM_1.0.rmskin

The skin will both install the plugin in Rainmeter, and include 32bit / 64bit versions of the .dll files for distribution with your skins. Those can be found in @Resources.

Some example screenshots as I change my desktop wallpaper:
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg
7.jpg
9.jpg

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Metadata]
Name=ColorRAM
Author=JSMorley
Information=Demonstrates the Chameleon plugin from https://forum.rainmeter.net/viewtopic.php?p=114867|See that thread for plugin documentation.|The 32bit/64bit Chameleon plugin files are included for distribution with your skin in @Resources.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Oct 20, 2015

[Variables]

[MeasureColors]
Measure=Plugin
Plugin=Chameleon
Type=Desktop

[MeasureBack1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureColors
Format=Dec
Color=Background1

[MeasureFore1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureColors
Format=Dec
Color=Foreground1

[MeasureBack2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureColors
Format=Dec
Color=Background2

[MeasureFore2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureColors
Format=Dec
Color=Foreground2

[MeasurePhysicalTotal]
Measure=PhysicalMemory
Total=1

[MeasurePhysicalUsed]
Measure=PhysicalMemory

[MeasurePhysicalFree]
Measure=PhysicalMemory
InvertMeasure=1

[MeasureSwapTotal]
Measure=SwapMemory
Total=1

[MeasureSwapUsed]
Measure=SwapMemory

[MeasureSwapFree]
Measure=SwapMemory
InvertMeasure=1

[MeasurePageFileTotal]
Measure=Calc
Formula=MeasureSwapTotal - MeasurePhysicalTotal >=0 ? MeasureSwapTotal - MeasurePhysicalTotal : 0

[MeasurePageFileUsed]
Measure=Calc
Formula=MeasureSwapUsed - MeasurePhysicalUsed
MinValue=0
MaxValue=[MeasurePageFileTotal]
DynamicVariables=1

[MeasurePageFileFree]
Measure=Calc
Formula=MeasurePageFileTotal - MeasurePageFileUsed
MinValue=0
MaxValue=[MeasurePageFileTotal]
DynamicVariables=1

[MeasureVirtualTotal]
Measure=Memory
Total=1

[MeasureVirtualUsed]
Measure=Memory

[MeasureVirtualFree]
Measure=Memory
InvertMeasure=1

[MeterBack]
Meter=Image
W=435
H=155
SolidColor=[MeasureBack1]
DynamicVariables=1

[MeterHeader]
Meter=String
X=5
Y=5
FontFace=Fira Sans
FontSize=15
FontColor=[MeasureFore2]
SolidColor=0,0,0,1
AntiAlias=1
Text=System Memory
DynamicVariables=1

[MeterPhysicalLabel]
Meter=String
X=5
Y=10R
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AntiAlias=1
Text=Physical
DynamicVariables=1

[MeterPhysicalFreePercent]
Meter=String
MeasureName=MeasurePhysicalFree
X=150
Y=0r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
Percentual=1
Text=%1% Free
AntiAlias=1
DynamicVariables=1

[MeterPhysicalBar]
Meter=Bar
MeasureName=MeasurePhysicalUsed
X=155
Y=-1r
W=100
H=20
BarColor=[MeasureFore2]
SolidColor=[MeasureBack2]
BarOrientation=Horizontal
DynamicVariables=1

[MeterPhysicalValue]
Meter=String
MeasureName=MeasurePhysicalUsed
MeasureName2=MeasurePhysicalTotal
X=430
Y=1r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AutoScale=1
Text=%1B Used of %2B
AntiAlias=1
DynamicVariables=1

[MeterLine1]
Meter=Image
X=5
Y=5R
W=425
H=2
SolidColor=[MeasureBack2]
DynamicVariables=1

[MeterPageFileLabel]
Meter=String
X=5
Y=5R
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AntiAlias=1
Text=PageFile
DynamicVariables=1

[MeterPageFileFreePercent]
Meter=String
MeasureName=MeasurePageFileFree
X=150
Y=0r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
Percentual=1
Text=%1% Free
AntiAlias=1
DynamicVariables=1

[MeterPageFileBar]
Meter=Bar
MeasureName=MeasurePageFileUsed
X=155
Y=-1r
W=100
H=20
BarColor=[MeasureFore2]
SolidColor=[MeasureBack2]
BarOrientation=Horizontal
DynamicVariables=1

[MeterPageFileValue]
Meter=String
MeasureName=MeasurePageFileUsed
MeasureName2=MeasurePageFileTotal
X=430
Y=1r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AutoScale=1
Text=%1B Used of %2B
AntiAlias=1
DynamicVariables=1

[MeterSwapLabel]
Meter=String
X=5
Y=5R
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AntiAlias=1
Text=Swap
DynamicVariables=1

[MeterSwapFreePercent]
Meter=String
MeasureName=MeasureSwapFree
X=150
Y=0r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
Percentual=1
Text=%1% Free
AntiAlias=1
DynamicVariables=1

[MeterSwapBar]
Meter=Bar
MeasureName=MeasureSwapUsed
X=155
Y=-1r
W=100
H=20
BarColor=[MeasureFore2]
SolidColor=[MeasureBack2]
BarOrientation=Horizontal
DynamicVariables=1

[MeterSwapValue]
Meter=String
MeasureName=MeasureSwapUsed
MeasureName2=MeasureSwapTotal
X=430
Y=1r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AutoScale=1
Text=%1B Used of %2B
AntiAlias=1
DynamicVariables=1

[MeterLine2]
Meter=Image
X=5
Y=5R
W=425
H=2
SolidColor=[MeasureBack2]
DynamicVariables=1

[MeterTotalLabel]
Meter=String
X=5
Y=5R
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AntiAlias=1
Text=Total
DynamicVariables=1

[MeterTotalFreePercent]
Meter=String
MeasureName=MeasureVirtualFree
X=150
Y=0r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
Percentual=1
Text=%1% Free
AntiAlias=1
DynamicVariables=1

[MeterTotalBar]
Meter=Bar
MeasureName=MeasureVirtualUsed
X=155
Y=-1r
W=100
H=20
BarColor=[MeasureFore2]
SolidColor=[MeasureBack2]
BarOrientation=Horizontal
DynamicVariables=1

[MeterTotalValue]
Meter=String
MeasureName=MeasureVirtualUsed
MeasureName2=MeasureVirtualTotal
X=430
Y=1r
StringAlign=Right
FontFace=Fira Sans
FontSize=12
FontColor=[MeasureFore1]
SolidColor=0,0,0,1
AutoScale=1
Text=%1B Used of %2B
AntiAlias=1
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.
User avatar
jpotato
Posts: 4
Joined: August 29th, 2015, 8:11 am
Location: France

Re: ColorRAM - Chameleon Plugin

Post by jpotato »

Wow!

It's one of the things I have in mind with rainmeter, changing the solidcolor or tint of an image based on another image.

I'll take a look at this quickly, in fact I started a skin that replicate some features of the "Stardock Tiles", and I wanted this to change the background color of the "application icons", hope I can make this work like I want : )

Thanks for this info !