-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Items icons not displayed in all pages #1839
Comments
Regarding the item page when the icon source is material or iconify, I don't see any call to the OH icon server so I guess that it is properly detected a non OH icon source but the icon is not displayed. Probably something not properly handled in that specific page. |
This is a little my fault, I was convinced that icon source was already fully supported by Main UI, I now understand it is probably only partially supported, meaning only at certain places. |
I can also mention the problems are the same in the property tab as in the equipment tab. |
Fixes #1839. Fixes #574. Closes #1860. * Fixes Item icon styling on the Item detail page. * Add support for openHAB iconsets. * Fix `oh:` icons not properly displayed in `default-list-item.vue`. * Refactor `oh-icon` config & style binding. * Enable real-time state on the semantic model page. * Enable state for the channel link edit page. * Enable dynamic icons in the settings where missing and possible (semantic model page, channel link edit page, Item edit page when setting category, Items list page). * Enable dynamic icons in the default list widget for most Items except some and update the docs accordingly. * Add a refresh button to the Item list page. -- Signed-off-by: Florian Hotze <[email protected]>
The problem
The syntax for item icon has been extended in core framework with PR openhab/openhab-core#3539.
The icon value can now contain until 3 segments separated by a colon (":").
First segment is the icon source. Example: oh, if, iconify, material, f7, ...
Second segment is the icon set. Example: classic
Third segment is the icon name (and can contain hyphen). Example: temperature
In case only two segments are provided, the first segment is the icon source and the second the icon name. "classic" icon set is assumed.
In case only one segment is provided, the icon source is assumed to be the openHAB server and its classic icon set and the value is then the icon name.
MainUI already supports this new syntax in certain pages but not all.
Here are examples of item icon values that should work everywhere in MainUI:
Only "temperature" icon is displayed in the equipment tab of MainUI (opening the "Web services" pop-up). The others should be displayed too.
Icon "oh:classic:pressure" is shown nowhere, neither in the items page, nor the item page, nor the edit item page and nor the model page.
Icon "material:favorite" is not shown in the item page (but OK in the items page, the edit item page and the model page):
Icons "iconify:wi:day-sunny-overcast" and "if:wi:day-thunderstorm" are not shown in the item page (but OK in the items page, the edit item page and the model page):
Expected behavior
MainUI should support the new icon syntax with 3 possible segments in all places.
It includes:
Steps to reproduce
Here are example items I used for my tests:
Browser console
Browser network traffic
The text was updated successfully, but these errors were encountered: