Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
More voice button fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Nov 15, 2019
1 parent c7130fa commit 1d69c31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions compact-custom-header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.info(
`%c COMPACT-CUSTOM-HEADER \n%c Version 1.4.8 `,
`%c COMPACT-CUSTOM-HEADER \n%c Version 1.4.9 `,
"color: orange; font-weight: bold; background: black",
"color: white; font-weight: bold; background: dimgray"
);
Expand Down Expand Up @@ -315,6 +315,7 @@ class CompactCustomHeader {
let marginRight = 0;
let marginLeft = 15;
for (const button in this.buttons) {
if (!this.buttons[button]) continue;
let paperIconButton =
this.buttons[button].querySelector("paper-icon-button") ||
this.buttons[button].shadowRoot.querySelector("paper-icon-button");
Expand Down Expand Up @@ -807,7 +808,7 @@ class CompactCustomHeader {
this.buttons.notifications.style.color =
"var(--cch-button-color-notifications)";
}
this.buttons.voice.style.color = "var(--cch-button-color-voice)";
if (this.buttons.voice) this.buttons.voice.style.color = "var(--cch-button-color-voice)";
this.buttons.options.style.color = "var(--cch-button-color-options)";
if (this.cchConfig.all_buttons_color) {
this.root.querySelector("app-toolbar").style.color =
Expand Down Expand Up @@ -1016,6 +1017,7 @@ class CompactCustomHeader {
}

insertClock(button) {
if (!this.buttons[button]) return;
const clock_button = this.buttons[button].querySelector("paper-icon-button")
? this.buttons[button]
: this.buttons[button].shadowRoot;
Expand Down Expand Up @@ -2264,7 +2266,7 @@ class CchConfigEditor extends cch.LitElement {
!this.exception
? this.html`
<h1 style="margin-top:-20px;margin-bottom:0;" class="underline">
Compact Custom Header &nbsp;₁.₄.
Compact Custom Header &nbsp;₁.₄.
</h1>
<h4
style="margin-top:-5px;padding-top:10px;font-size:12pt;"
Expand Down

0 comments on commit 1d69c31

Please sign in to comment.