It is currently July 10th, 2020, 5:59 am

Changing color based on windows becomes white instead

Help with creating, editing & fixing problems with skins
xiko
Posts: 2
Joined: November 27th, 2016, 5:07 pm

Changing color based on windows becomes white instead

Post by xiko »

Im trying to change the color of skins based on my windows color i managed to do it with VisBubble and the pause button of 360 music but anything else on 360 music or other skins becomes white. Help plz :confused: Desktop: http://prntscr.com/dcfqv3

systemColor.ini

Code: Select all

[Variables]
WindowsColor=[MeasureWindowsColor]
WindowsColorText=[MeasureWindowsColorText]
WindowsColorDark=[MeasureWindowsColorDark]


; ------------------------------------------------------------------------
; MEASURES
; ------------------------------------------------------------------------

[MeasureColorTrigger]
; Updates Windows accent palette every UpdateDivider*(meter "Update" value) milliseconds.
Measure=String
OnUpdateAction=[!CommandMeasure MeasurePaletteRegistry Run]
UpdateDivider=100

[MeasurePaletteRegistry]
; Returns Windows accent palette.
Measure=Plugin
Plugin=Plugin\RunCommand
Parameter=C:\Windows\System32\reg.exe query HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent /v AccentPalette
OutputType=ANSI
FinishAction=[!UpdateMeasure MeasureWindowsColor][!UpdateMeasure MeasureWindowsColorText][!UpdateMeasure MeasureWindowsColorDark]
UpdateDivider=-1

; Palette options:
; "\1\2\3"
; "\5\6\7"	
; "\9\10\11"	Windows accent color for text
; "\13\14\15"	Primary Windows accent color
; "\17\18\19"
; "\21\22\23"	Taskbar color (when it's not black)
; "\25\26\27"	Text input color
; "\29\30\31"

[MeasureWindowsColorText]
; Returns Windows accent color for text.
Measure=String
String=[MeasurePaletteRegistry]
DynamicVariables=1
RegExpSubstitute=1
Substitute="(?siU).*REG_BINARY\s*([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2}).*":"\9\10\11"
UpdateDivider=-1
OnChangeAction=[!UpdateMeterGroup WindowsTextColorGroup]

[MeasureWindowsColorDark]
; Returns dark Windows accent color.
Measure=String
String=[MeasurePaletteRegistry]
DynamicVariables=1
RegExpSubstitute=1
Substitute="(?siU).*REG_BINARY\s*([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2}).*":"\25\26\27"
UpdateDivider=-1
OnChangeAction=[!UpdateMeterGroup WindowsDarkColorGroup]

[MeasureWindowsColor]
; Returns primary Windows accent color.
Measure=String
String=[MeasurePaletteRegistry]
DynamicVariables=1
RegExpSubstitute=1
Substitute="(?siU).*REG_BINARY\s*([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2}).*":"\13\14\15"
UpdateDivider=-1
OnChangeAction=[!UpdateMeterGroup WindowsColorGroup]
VisBubble with it working

Code: Select all

[Metadata]
Name=VisBubble
Author=undefinist
Version=3.1
License=CC BY-NC-SA 3.0
Information=The default | Double-click for settings.

[Rainmeter]
Update=25
ContextTitle=SETTINGS (double-click)
ContextAction=[!ActivateConfig "#ROOTCONFIG#\SettingsWindow"]
ContextTitle2=SETTINGS FILE
ContextAction2=["#ROOTCONFIGPATH#Settings.inc"]

[Variables]
@Include3=systemColors.ini
@Include=Settings.inc
FORMULA_SUM=([mBand%%]+(#Smoothing#=0?0:(%%={#NumOfItems#-1}?0:[mBand{(%%+1)%#NumOfItems#}])+(%%=0?0:[mBand{%%=0?#NumOfItems#-1:%%-1}])))
FORMULA_SUM_FULL=([mBand%%]+(#Smoothing#=0?0:[mBand{(%%+1)%#NumOfItems#}]+[mBand{%%=0?#NumOfItems#-1:%%-1}]))
FORMULA_AVG_NUM=((%%={#NumOfItems#-1}||%%=0)?2:3)
FORMULA_AVG_NUM_FULL=3
FORMULA_AVG=#FORMULA_SUM_FULL#/#FORMULA_AVG_NUM_FULL#
FORMULA_THETA=(#AngleTotal#-#AngleTotal#/#NumOfItems#*(#ClockWise#=0?%%:#NumOfItems#-%%-1)+#AngleStart#)
@Include2=#INC#Common.inc

[mFullCircle]
Measure=Calc
IfCondition=#AngleTotal# >= PI * 2
IfTrueAction=[!WriteKeyValue Variables FORMULA_AVG "#*FORMULA_SUM_FULL*#/#*FORMULA_AVG_NUM_FULL*#"]
IfFalseAction=[!WriteKeyValue Variables FORMULA_AVG "#*FORMULA_SUM*#/#*FORMULA_AVG_NUM*#"]
UpdateDivider=-1

;=
; base measures
;============================

[mAudioOut]
Bands=(#NumOfItems#+4)

;=
; meterstyles
;============================

[styleLine]
LineColor=#WindowsColorText#
LineWidth=(#ItemWidth#/2)
RotationAngle=(#Inward#*PI)
ControlAngle=0
AntiAlias=1
DynamicVariables=1
Spherical note with it not working:

Code: Select all

[Rainmeter]
 Author=NiketanG
 Update=25

[Metadata]
 Name=Spherical
 Version=1.0
 Information=Notes
 License=Creative Commons Attribution-NonCommercial 4.0 International
[Variables]
 @include3=#@#Variables.inc
 @includeBG=#@#BG.inc
 @include=#@#systemColors.ini
[Notes]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#@#Notes.txt
FileFilter=*.*
[MeterBG3]
 LeftMouseUpAction=["#@#notes.txt"]
[MeterTime]
 Meter=String
 X=75
 Y=35
 W=100
 H=100
 MeasureName=Notes
 FontFace=#Font#
 FontSize=15
 FontColor=255, 255, 255, 255
 StringAlign=Center
 AntiAlias=1
 Group=Hover
 ClipString=1
 ToolTipText=%1
 Hidden=1
[MeterSec]
 Meter=RoundLine
 X=15
 Y=15
 W=120
 H=120
 LineColor=#WindowsColorText#
 LineLength=62
 LineStart=60
 Solid=1
 AntiAlias=1
 StartAngle=(Rad(270))
 Group=Default
[MeterNotes1]
 Meter=String
 X=75
 Y=60
 W=50
 H=50
 Text=Notes
 FontFace=#Font#
 FontSize=20
 FontColor=#WindowsColorText#
 StringAlign=Center
 AntiAlias=1
 Group=Default
 
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4040
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Changing color based on windows becomes white instead

Post by eclectic-tech »

Add DynamicVariables=1 to the Spherical note meters that use the variable should get it working.
xiko
Posts: 2
Joined: November 27th, 2016, 5:07 pm

Re: Changing color based on windows becomes white instead

Post by xiko »

Love you man. Thanks alot ;) http://prntscr.com/dcj8qd
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4040
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Changing color based on windows becomes white instead

Post by eclectic-tech »

xiko wrote:Love you man. Thanks alot ;) http://prntscr.com/dcj8qd
No problem... nice clean desktop there! 8-)
fubies
Posts: 1
Joined: May 24th, 2020, 10:48 am

Re: Changing color based on windows becomes white instead

Post by fubies »

Please help me, I'm completely new to this. Exactly what is systemColor.ini? I want to change the color of my clock widget, here is the file:

Code: Select all

[Rainmeter]
Update=1000


[MeasureTime]
Measure=Time
Format=%#I:%M

[TextStyle]
FontColor=
FontFace=Segoe
SolidColor=0,0,0,1

StringAlign=Right
AntiAlias=1


[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
X=600
Y=0
FontSize=50
and yes i have no idea about systemColor.ini plz help
Last edited by balala on May 24th, 2020, 11:53 am, edited 1 time in total.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
User avatar
balala
Rainmeter Sage
Posts: 10998
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Changing color based on windows becomes white instead

Post by balala »

fubies wrote:
May 24th, 2020, 10:51 am
Exactly what is systemColor.ini?
Especially if systemColor.ini has the code you've posted above, it's a skin file, used by Rainmeter.
fubies wrote:
May 24th, 2020, 10:51 am
I want to change the color of my clock widget,
Just add the desired color into the FontColor option of the [TextStyle] section. For instance if you add there the FontColor=255,0,0, you get red digits. For FontColor=0,255,0 you get them green, while for FontColor=255,240,0 you get them yellow. Obviously you have to add the color code associated with the desired color.