A main menu measure controls the menu which shows or hides content of the tabs.
It also changes the colors of the tab icons in the menu with !SetOption.
The colors of these icons wont change whenever i change the wallpaper, everything else does.
And i have it set up with a chameleon-switch to turn chameleon on or off.
The image used in the switch does not change color either, because the color has been set by the switch measure previously.
And i have DynamicVariables=1 on both meters and measures.
What is happening here?
Code: Select all
[ChameleonSwitch]
Meter=Image
LeftMouseUpAction=[!WriteKeyValue Variables ChameleonMode "(1-#ChameleonMode#)" "#Var#"][!SetVariable ChameleonMode "(1-#ChameleonMode#)"][!UpdateMeasure mChameleonMode][!UpdateMeter *][!Redraw]
X=2
Y=100
W=88
H=44
DynamicVariables=1
SolidColor=#FGColor1#
Hidden=1
Group=ColorComponents
[mChameleonMode]
Measure=Calc
Formula=#ChameleonMode#
DynamicVariables=1
IfEqualValue=0
IfEqualAction=[!EnableMeasureGroup Chameleon][!SetOption ChameleonSwitch SolidColor #FGColor2#][!SetOption ChameleonSwitch X 99][!UpdateMeter *][!Redraw]
IfAboveValue=0
IfAboveAction=[!DisableMeasureGroup Chameleon][!SetOption ChameleonSwitch SolidColor #FGColor1#][!SetOption ChameleonSwitch X 2][!UpdateMeter *][!Redraw]
UpdateDivider=-1
Disabled=1
Group=ColorMeasures
[ChameleonDesktop]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
Disabled=1
Group=Chameleon
[ChameleonBackground1]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Format=Dec
Color=Background1
Disabled=1
Group=Chameleon
IfMatch=#BGColor1#
IfNotMatchAction=[!SetVariable BGColor1 [ChameleonBackground1]][!WriteKeyValue Variables BGColor1 "[ChameleonBackground1]" "#Var#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
[ChameleonBackground2]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Format=Dec
Color=Background2
Disabled=1
Group=Chameleon
IfMatch=#BGColor2#
IfNotMatchAction=[!SetVariable BGColor2 [ChameleonBackground2]][!WriteKeyValue Variables BGColor2 "[ChameleonBackground2]" "#Var#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
[ChameleonForeground1]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Format=Dec
Color=Foreground1
Disabled=1
Group=Chameleon
IfMatch=#FGColor1#
IfNotMatchAction=[!SetVariable FGColor1 [ChameleonForeground1]][!WriteKeyValue Variables FGColor1 "[ChameleonForeground1]" "#Var#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
[ChameleonForeground2]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Format=Dec
Color=Foreground2
Disabled=1
Group=Chameleon
IfMatch=#FGColor2#
IfNotMatchAction=[!SetVariable FGColor2 [ChameleonForeground2]][!WriteKeyValue Variables FGColor2 "[ChameleonForeground2]" "#Var#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
[mMainMenu]
Measure=Calc
Formula=#MainMenuMode#
DynamicVariables=1
IfCondition=mMainMenu=1
IfTrueAction=[!SetOption MainMenu1 ImageTint #FGColor2#]#OtherMenuActions#[!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption MainMenu1 ImageTint #FGColor1#][!UpdateMeter *][!Redraw]
IfCondition2=mMainMenu=2
IfTrueAction2=[!SetOption MainMenu2 ImageTint #FGColor2#]#OtherMenuActions#[!UpdateMeter *][!Redraw]
IfFalseAction2=[!SetOption MainMenu2 ImageTint #FGColor1#][!UpdateMeter *][!Redraw]
[MainMenu1]
Meter=Image
ImageName=#@#Images\Icons\UI\Programs.png
LeftMouseUpAction=[!WriteKeyValue Variables MainMenuMode "1" "#Var#"][!SetVariable MainMenuMode "1"][!UpdateMeasure mMainMenu][!UpdateMeter *][!Redraw]
ImageTint=#FGColor1#
X=10
Y=55
DynamicVariables=1
AntiAlias=1
Group=MenuComponents
[MainMenu2]
Meter=Image
ImageName=#@#Images\Icons\UI\Folders.png
LeftMouseUpAction=[!WriteKeyValue Variables MainMenuMode "2" "#Var#"][!SetVariable MainMenuMode "2"][!UpdateMeasure mMainMenu][!UpdateMeter *][!Redraw]
ImageTint=#FGColor1#
X=r
Y=48r
DynamicVariables=1
AntiAlias=1
Group=MenuComponents