With this PR the StyleSets get a url() property lookup function, which allows to lookup strings or url() CSS notations as URL relative to the stylesheet base url. This can be used to bind assets (like icons, etc.) relative to the stylesheet location instead of relying to some global setup.
(Beside the feature this PR contains some massive restructuring of the code and number of type renames. All of this is in the first commit; I'm not sure whether this can be split in a more readable way.)
With this PR the StyleSets get a
url()
property lookup function, which allows to lookup strings orurl()
CSS notations as URL relative to the stylesheet base url. This can be used to bind assets (like icons, etc.) relative to the stylesheet location instead of relying to some global setup.This solves Issue https://github.com/AbletonAG/aqt-stylesheets/issues/4.
(Beside the feature this PR contains some massive restructuring of the code and number of type renames. All of this is in the first commit; I'm not sure whether this can be split in a more readable way.)
@sbs-ableton @rof-ableton