Configuration Menu Cleanup items (#12413)

This commit is contained in:
Zack Barett 2022-04-25 12:53:02 -05:00 committed by GitHub
parent 5deccefb15
commit 8f2ed747e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 33 additions and 17 deletions

View File

@ -81,6 +81,7 @@ class HaNavigationList extends LitElement {
ha-clickable-list-item { ha-clickable-list-item {
cursor: pointer; cursor: pointer;
font-size: var(--navigation-list-item-title-font-size); font-size: var(--navigation-list-item-title-font-size);
padding: var(--navigation-list-item-padding) 0;
} }
`; `;
} }

View File

@ -33,6 +33,11 @@ class HaConfigSectionAnalytics extends LitElement {
max-width: 1040px; max-width: 1040px;
margin: 0 auto; margin: 0 auto;
} }
ha-config-analytics {
display: block;
max-width: 600px;
margin: 0 auto;
}
`; `;
} }

View File

@ -38,6 +38,7 @@ class HaConfigSectionStorage extends LitElement {
back-path="/config/system" back-path="/config/system"
.hass=${this.hass} .hass=${this.hass}
.narrow=${this.narrow} .narrow=${this.narrow}
.header=${this.hass.localize("ui.panel.config.storage.caption")}
> >
<div class="content"> <div class="content">
${this._error ${this._error
@ -110,9 +111,6 @@ class HaConfigSectionStorage extends LitElement {
flex-direction: column; flex-direction: column;
display: flex; display: flex;
} }
.emmc {
--metric-bar-ok-color: #000;
}
`; `;
} }

View File

@ -43,7 +43,7 @@ class HaConfigSystemNavigation extends LitElement {
.isWide=${this.isWide} .isWide=${this.isWide}
full-width full-width
> >
<ha-card> <ha-card outlined>
${this.narrow ${this.narrow
? html`<div class="title"> ? html`<div class="title">
${this.hass.localize("ui.panel.config.dashboard.system.main")} ${this.hass.localize("ui.panel.config.dashboard.system.main")}
@ -103,6 +103,7 @@ class HaConfigSystemNavigation extends LitElement {
ha-navigation-list { ha-navigation-list {
--navigation-list-item-title-font-size: 16px; --navigation-list-item-title-font-size: 16px;
--navigation-list-item-padding: 4px;
} }
`, `,
]; ];

View File

@ -173,7 +173,7 @@ class HaConfigDashboard extends LitElement {
full-width full-width
> >
${canInstallUpdates.length ${canInstallUpdates.length
? html`<ha-card> ? html`<ha-card outlined>
<ha-config-updates <ha-config-updates
.hass=${this.hass} .hass=${this.hass}
.narrow=${this.narrow} .narrow=${this.narrow}
@ -181,7 +181,7 @@ class HaConfigDashboard extends LitElement {
></ha-config-updates> ></ha-config-updates>
</ha-card>` </ha-card>`
: ""} : ""}
<ha-card> <ha-card outlined>
${this.narrow && canInstallUpdates.length ${this.narrow && canInstallUpdates.length
? html`<div class="title"> ? html`<div class="title">
${this.hass.localize("panel.config")} ${this.hass.localize("panel.config")}

View File

@ -4,13 +4,14 @@ import {
mdiBadgeAccountHorizontal, mdiBadgeAccountHorizontal,
mdiCellphoneCog, mdiCellphoneCog,
mdiCog, mdiCog,
mdiCpu32Bit, mdiDatabase,
mdiDevices, mdiDevices,
mdiInformation, mdiInformation,
mdiInformationOutline, mdiInformationOutline,
mdiLightningBolt, mdiLightningBolt,
mdiMapMarkerRadius, mdiMapMarkerRadius,
mdiMathLog, mdiMathLog,
mdiMemory,
mdiNetwork, mdiNetwork,
mdiNfcVariant, mdiNfcVariant,
mdiPalette, mdiPalette,
@ -99,7 +100,7 @@ export const configSections: { [name: string]: PageNavigation[] } = {
path: "/config/person", path: "/config/person",
translationKey: "people", translationKey: "people",
iconPath: mdiAccount, iconPath: mdiAccount,
iconColor: "#E48629", iconColor: "#832EA6",
components: ["person", "users"], components: ["person", "users"],
}, },
{ {
@ -304,14 +305,14 @@ export const configSections: { [name: string]: PageNavigation[] } = {
{ {
path: "/config/storage", path: "/config/storage",
translationKey: "ui.panel.config.storage.caption", translationKey: "ui.panel.config.storage.caption",
iconPath: mdiServer, iconPath: mdiDatabase,
iconColor: "#518C43", iconColor: "#518C43",
component: "hassio", component: "hassio",
}, },
{ {
path: "/config/hardware", path: "/config/hardware",
translationKey: "ui.panel.config.hardware.caption", translationKey: "ui.panel.config.hardware.caption",
iconPath: mdiCpu32Bit, iconPath: mdiMemory,
iconColor: "#301A8E", iconColor: "#301A8E",
component: "hassio", component: "hassio",
}, },

View File

@ -69,7 +69,7 @@ class ErrorLogCard extends LitElement {
: ""} : ""}
${this._logHTML ${this._logHTML
? html` ? html`
<ha-card> <ha-card outlined>
<div class="header"> <div class="header">
${this.hass.userData?.showAdvanced && ${this.hass.userData?.showAdvanced &&
isComponentLoaded(this.hass, "hassio") isComponentLoaded(this.hass, "hassio")

View File

@ -75,7 +75,7 @@ export class SystemLogCard extends LitElement {
: []; : [];
return html` return html`
<div class="system-log-intro"> <div class="system-log-intro">
<ha-card> <ha-card outlined>
${this._items === undefined ${this._items === undefined
? html` ? html`
<div class="loading-container"> <div class="loading-container">

View File

@ -5,8 +5,8 @@ import "../../../layouts/hass-subpage";
import type { HomeAssistant, Route } from "../../../types"; import type { HomeAssistant, Route } from "../../../types";
import "./ha-config-network"; import "./ha-config-network";
import "./ha-config-url-form"; import "./ha-config-url-form";
import "./supervisor-network";
import "./supervisor-hostname"; import "./supervisor-hostname";
import "./supervisor-network";
@customElement("ha-config-section-network") @customElement("ha-config-section-network")
class HaConfigSectionNetwork extends LitElement { class HaConfigSectionNetwork extends LitElement {
@ -46,9 +46,12 @@ class HaConfigSectionNetwork extends LitElement {
} }
supervisor-hostname, supervisor-hostname,
supervisor-network, supervisor-network,
ha-config-url-form { ha-config-url-form,
ha-config-network {
display: block; display: block;
margin: 0 auto;
margin-bottom: 24px; margin-bottom: 24px;
max-width: 600px;
} }
`; `;
} }

View File

@ -60,6 +60,7 @@ export class HaConfigServerControl extends LitElement {
${this.showAdvanced ${this.showAdvanced
? html` ? html`
<ha-card <ha-card
outlined
header=${this.hass.localize( header=${this.hass.localize(
"ui.panel.config.server_control.section.validation.heading" "ui.panel.config.server_control.section.validation.heading"
)} )}
@ -124,6 +125,7 @@ export class HaConfigServerControl extends LitElement {
: ""} : ""}
<ha-card <ha-card
outlined
header=${this.hass.localize( header=${this.hass.localize(
"ui.panel.config.server_control.section.server_management.heading" "ui.panel.config.server_control.section.server_management.heading"
)} )}
@ -152,6 +154,7 @@ export class HaConfigServerControl extends LitElement {
${this.showAdvanced ${this.showAdvanced
? html` ? html`
<ha-card <ha-card
outlined
header=${this.hass.localize( header=${this.hass.localize(
"ui.panel.config.server_control.section.reloading.heading" "ui.panel.config.server_control.section.reloading.heading"
)} )}

View File

@ -77,7 +77,10 @@ class DialogZoneDetail extends LitElement {
@closed=${this.closeDialog} @closed=${this.closeDialog}
scrimClickAction scrimClickAction
escapeKeyAction escapeKeyAction
.heading=${createCloseHeading(this.hass, "Core Zone Configuration")} .heading=${createCloseHeading(
this.hass,
this.hass.localize("ui.panel.config.zone.core_location_dialog")
)}
> >
${!canEdit ${!canEdit
? html` ? html`

View File

@ -1435,7 +1435,7 @@
"introduction": "Manage your location, network and analytics.", "introduction": "Manage your location, network and analytics.",
"core_config": { "core_config": {
"edit_requires_storage": "Editor disabled because config stored in configuration.yaml.", "edit_requires_storage": "Editor disabled because config stored in configuration.yaml.",
"location_name": "Name of your Home Assistant installation", "location_name": "Name",
"latitude": "Latitude", "latitude": "Latitude",
"longitude": "Longitude", "longitude": "Longitude",
"elevation": "Elevation", "elevation": "Elevation",
@ -2661,7 +2661,8 @@
"delete": "Delete", "delete": "Delete",
"create": "Add", "create": "Add",
"update": "Update" "update": "Update"
} },
"core_location_dialog": "Home Assistant Location"
}, },
"integrations": { "integrations": {
"caption": "Integrations", "caption": "Integrations",