These preferences don't do a thing to any theme.
Whatever combination I choose, nothing changes in my arrange. Everything appears the same regardless of my setting.
It's as though ALL of the checkboxes are ticked.
It's kinda weird because the lua script below still works. And I believe it works by changing the ini file that the Reaper preferences stores its setting in - or am I wrong there?
Code:
CurSetting = reaper.SNM_GetIntConfigVar( "tinttcp", -666 )
retval, stringOut = reaper.BR_Win32_GetPrivateProfileString("REAPER", "tinttcp", "sdfsdf", reaper.get_ini_file())
--reaper.ShowConsoleMsg(stringOut)
num=CurSetting
bits=12 --The number of bit we need to make this setingwork
-- When the "tinttcp" number from the reaper.ini is converted to binary, the
-- 256 value digit will correspond to "Tint media item background to Take Color".
-- First, let's convert to bits...
function toBits(num, bits)
-- returns a table of bits
local t={} -- will contain the bits
for b=bits,1,-1 do
rest=math.fmod(num,2)
t[b]=rest
num=(num-rest)/2
end
if num==0 then return t else return {'Not enough bits to represent this number'}end
end
bits=toBits(num, bits)
NinthBit = tonumber(table.concat(bits):sub(9,10)) --This is the bit will value of 256
--reaper.ShowConsoleMsg(table.concat(bits).."\n"..NinthBit.."\n")
if NinthBit == 1 then
--reaper.ShowConsoleMsg("Tack Color BG is ON")
NewSetting = CurSetting-256
reaper.SNM_SetIntConfigVar( "tinttcp", NewSetting )--1940 is a placeholder value to be replaced with NewSetting
elseif NinthBit == 0 then
--reaper.ShowConsoleMsg("Tack Color BG is OFF")
NewSetting = CurSetting+256 --Get ready to turn it on. +256 will mean 9th bit will be "ON"
--reaper.ShowConsoleMsg(NewSetting)
reaper.SNM_SetIntConfigVar("tinttcp", NewSetting )--1940 is a placeholder value to be replaced with NewSetting
end
reaper.TrackList_AdjustWindows(true)
reaper.UpdateArrange()