-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Add icon reference to Lovelace documentation #16865
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The statement "You can use any icon from MaterialDesignIcons.com" is technically not correct, you can only use icons that are in the version of MDI we use in the version of Core you are running, so it will be icons on MaterialDesignIcons that can not be used
@@ -30,7 +30,7 @@ name: | |||
default: Name of entity | |||
icon: | |||
required: false | |||
description: Overwrites icon or entity picture. | |||
description: Overwrites icon or entity picture. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Overwrites icon or entity picture. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. | |
description: Overwrites icon or entity picture. You can use any icon from [MaterialDesignIcons.com](http://materialdesignicons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
URL should be lowercase
@@ -87,7 +87,7 @@ name: | |||
type: string | |||
icon: | |||
required: false | |||
description: Overwrites icon or entity picture. | |||
description: Overwrites icon or entity picture. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Overwrites icon or entity picture. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. | |
description: Overwrites icon or entity picture. You can use any icon from [MaterialDesignIcons.com](http://materialdesignicons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
URL should be lowercase
@@ -110,7 +110,7 @@ dashboards: | |||
type: string | |||
icon: | |||
required: false | |||
description: The icon to show in the sidebar. | |||
description: The icon to show in the sidebar. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: The icon to show in the sidebar. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. | |
description: The icon to show in the sidebar. You can use any icon from [MaterialDesignIcons.com](http://materialdesignicons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
URL should be lowercase
@@ -227,7 +227,7 @@ views: | |||
default: view index | |||
icon: | |||
required: false | |||
description: Icon-name from Material Design Icons. | |||
description: Icon-name from Material Design Icons. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Icon-name from Material Design Icons. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. | |
description: Icon-name from Material Design Icons. You can use any icon from [MaterialDesignIcons.com](http://materialdesignicons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
URL should be lowercase
@@ -69,7 +69,7 @@ entities: | |||
type: string | |||
icon: | |||
required: false | |||
description: Override the entity icon. | |||
description: Override the entity icon. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Override the entity icon. You can use any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. | |
description: Override the entity icon. You can use any icon from [MaterialDesignIcons.com](http://materialdesignicons.com). Prefix the icon name with `mdi:`, ie `mdi:home`. |
URL should be lowercase
True, but generally... it will be fine (as we have no other way to reference do it). Unless... we build a icon picker in the frontend of course 😉 Comments addressed in #17012 |
We could probably get the MDI version of the package.json in the frontend repo somehow and use that :D but that will require more work than what it's worth for those few cases. |
Proposed change
Add some information on which icons one can use to the Lovelace documentation.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.