Update settings button icon on tables to mdi-table-cog. (#23915)

Update settings button icon on tables to mdi-table-cog.

The cog icon is used in a lot of places to indicate settings and it's generally clear what it's intent is.  However, the cog icon used by tables very often appears very close by the triple dots menu or just in the top right corner so it's very easy to mistakenly press that button intending to press the menu button, or to press it when looking for the appropriate settings button.

This changes the icon used by these buttons from mdi-code to mdi-table-cog to help clarify the intent of the button.
This commit is contained in:
Ben Randall 2025-01-28 04:24:08 -05:00 committed by GitHub
parent c1c6d71ccf
commit 142faba04d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import {
mdiArrowDown, mdiArrowDown,
mdiArrowUp, mdiArrowUp,
mdiClose, mdiClose,
mdiCog, mdiTableCog,
mdiFilterVariant, mdiFilterVariant,
mdiFilterVariantRemove, mdiFilterVariantRemove,
mdiFormatListChecks, mdiFormatListChecks,
@ -309,7 +309,7 @@ export class HaTabsSubpageDataTable extends KeyboardShortcutMixin(LitElement) {
@click=${this._openSettings} @click=${this._openSettings}
.title=${localize("ui.components.subpage-data-table.settings")} .title=${localize("ui.components.subpage-data-table.settings")}
> >
<ha-svg-icon slot="icon" .path=${mdiCog}></ha-svg-icon> <ha-svg-icon slot="icon" .path=${mdiTableCog}></ha-svg-icon>
</ha-assist-chip>`; </ha-assist-chip>`;
return html` return html`

View File

@ -3,7 +3,7 @@ import {
mdiArrowDown, mdiArrowDown,
mdiArrowUp, mdiArrowUp,
mdiClose, mdiClose,
mdiCog, mdiTableCog,
mdiFormatListChecks, mdiFormatListChecks,
mdiMenuDown, mdiMenuDown,
mdiSlopeUphill, mdiSlopeUphill,
@ -303,7 +303,7 @@ class HaPanelDevStatistics extends KeyboardShortcutMixin(LitElement) {
@click=${this._openSettings} @click=${this._openSettings}
.title=${localize("ui.components.subpage-data-table.settings")} .title=${localize("ui.components.subpage-data-table.settings")}
> >
<ha-svg-icon slot="icon" .path=${mdiCog}></ha-svg-icon> <ha-svg-icon slot="icon" .path=${mdiTableCog}></ha-svg-icon>
</ha-assist-chip>`; </ha-assist-chip>`;
return html` return html`