UIDefaultsLoader: on color functions use "autoInverse" option by default if "derived" option is set

This commit is contained in:
Karl Tauber
2020-05-20 00:40:05 +02:00
parent 2a0403a988
commit be529655d6
5 changed files with 36 additions and 28 deletions

View File

@@ -58,11 +58,15 @@ public class FlatThemeTokenMaker
tokenMap.put( "hsla", TOKEN_FUNCTION );
tokenMap.put( "lighten", TOKEN_FUNCTION );
tokenMap.put( "darken", TOKEN_FUNCTION );
tokenMap.put( "saturate", TOKEN_FUNCTION );
tokenMap.put( "desaturate", TOKEN_FUNCTION );
tokenMap.put( "lazy", TOKEN_FUNCTION );
// function options
tokenMap.put( "relative", Token.RESERVED_WORD );
tokenMap.put( "derived", Token.RESERVED_WORD );
tokenMap.put( "autoInverse", Token.RESERVED_WORD );
tokenMap.put( "noAutoInverse", Token.RESERVED_WORD );
}
/**