I’ve made a minor but (potentially) needed change in the HABPanel icon handling, in order to enable more flexibility for icon selection until additional iconsets can be somehow added to the list.
All icon pickers thoughout the application, including those in standard and custom widgets, now feature two additional options: Custom icon and Custom URL:
Selecting those “special iconsets” will display text inputs instead of the standard icon picker dropdown:
Custom icon allows to select an icon registered in openHAB (including icons added in
conf/icons/classic). Those are “state-aware”: for example,
stars-off.svgwhen the item’s state is ‘ON’ resp. ‘OFF’ if they exist.
(Check out @ThomDietrich’s repository for the icons used in this example)
Only the SVG format is supported for custom icons.
Also, custom icons can’t be “colorized” like the built-in icons.
Custom URL allows an arbitrary image to act as an icon. All formats supported by the browser are allowed, including SVG, PNG, JPEG, GIF etc.
Note: this shouldn’t break the existing API so your current icons will still work!