Raw sysvar value from AcDbSysVarManager or a
sysVarChanged event. Recognised forms:
number — light when equal to 1boolean — returned as-isstring — light when 'light', '1', or 'true' (case-insensitive)true for a light colour theme; false for dark or any other value.
Normalises a raw
COLORTHEMEsystem-variable value to a boolean light UI theme flag.AutoCAD stores
COLORTHEMEas a number (0= dark,1= light), but the value may arrive from the database or event payloads as a number, boolean, or string. This helper accepts all common representations so callers do not need to duplicate parsing logic.