@@ -2,7 +2,7 @@ import { calc } from '@csstools/css-calc';
22import { FASTElement , observable } from "@microsoft/fast-element" ;
33import { CSSDesignToken , DesignToken , type ValuesOf } from "@microsoft/fast-foundation" ;
44import { Color , InteractiveState , InteractiveTokenGroup , StyleProperty , Styles } from "@adaptive-web/adaptive-ui" ;
5- import { fillColor } from "@adaptive-web/adaptive-ui/reference" ;
5+ import { colorContext } from "@adaptive-web/adaptive-ui/reference" ;
66import {
77 AdaptiveDesignToken ,
88 AdaptiveDesignTokenOrGroup ,
@@ -258,7 +258,7 @@ export class UIController {
258258 source,
259259 } ) ;
260260 } else {
261- console . warn ( " token type not supported >" , typeof token , token ) ;
261+ console . warn ( " token type not supported >" , typeof token , token , applied . tokenID , applied . value ) ;
262262 }
263263 }
264264 } else if ( applied . tokenID ) {
@@ -341,7 +341,7 @@ export class UIController {
341341 source,
342342 } ) ;
343343 } else {
344- console . warn ( " token type not supported >" , typeof value , value ) ;
344+ console . warn ( " token type not supported >" , typeof value , value , target ) ;
345345 }
346346 }
347347 }
@@ -381,7 +381,7 @@ export class UIController {
381381 if ( colorHex ) {
382382 const parentElement = this . _elements . getElementForNode ( node ) . parentElement as FASTElement ;
383383 // console.log(" setting fill color token on parent element", colorHex, parentElement.id, parentElement.title);
384- this . _elements . setDesignTokenForElement ( parentElement , fillColor , Color . parse ( colorHex ) ) ;
384+ this . _elements . setDesignTokenForElement ( parentElement , colorContext , Color . parse ( colorHex ) ) ;
385385 }
386386
387387 const allApplied = this . collectEffectiveAppliedStyles ( node ) ;
@@ -420,8 +420,8 @@ export class UIController {
420420 value = ret ;
421421 }
422422 }
423- // const fillColorValue = (this._elements.getDesignTokenValue(node, fillColor ) as Color).toColorString();
424- // console.log(" evaluateEffectiveAppliedDesignToken", target, " : ", token.name, " -> ", value, valueDebug, `(from ${info.source})`, "fillColor ", fillColorValue );
423+ // const colorContextValue = (this._elements.getDesignTokenValue(node, colorContext ) as Color).toColorString();
424+ // console.log(" evaluateEffectiveAppliedDesignToken", target, " : ", token.name, " -> ", value, valueDebug, `(from ${info.source})`, "colorContext ", colorContextValue );
425425
426426 const applied = new AppliedStyleValue ( value ) ;
427427 node . effectiveAppliedStyleValues . set ( target , applied ) ;
0 commit comments