|
1 | | -import "@material/mwc-linear-progress/mwc-linear-progress"; |
2 | | -import { LitElement, html, TemplateResult, CSSResultGroup } from 'lit'; |
3 | | -import { property, query } from 'lit/decorators.js'; |
| 1 | +import { LitElement, html, TemplateResult, CSSResultGroup } from 'lit'; |
| 2 | +import { property } from 'lit/decorators.js'; |
4 | 3 | import { HomeAssistant, LovelaceCardEditor } from 'custom-card-helpers'; |
5 | 4 | import { formatTime } from './helpers/format-time' |
6 | 5 | import { groupEventsByDay, getEventMode, getCalendarMode } from './lib/event.func'; |
@@ -363,10 +362,11 @@ class AtomicCalendarRevive extends LitElement { |
363 | 362 | const eventDuration = event.endDateTime.diff(event.startDateTime, 'minutes'); |
364 | 363 | const eventProgress = dayjs().diff(event.startDateTime, 'minutes'); |
365 | 364 | const eventPercentProgress = (eventProgress * 100) / eventDuration / 100; |
366 | | - progressBar = html`<mwc-linear-progress |
| 365 | + /**progressBar = html`<mwc-linear-progress |
367 | 366 | class="progress-bar" |
368 | | - style="--mdc-theme-primary: ${this._config.progressBarColor}; --mdc-linear-progress-buffer-color: ${this._config.progressBarBufferColor};" |
369 | | - progress="${eventPercentProgress}"></mwc-linear-progress>`; |
| 367 | +
|
| 368 | + progress="${eventPercentProgress}"></mwc-linear-progress>`;*/ |
| 369 | + progressBar = html`<progress style="--progress-bar: ${this._config.progressBarColor}; --progress-bar-bg: ${this._config.progressBarBackgroundColor};" value="${eventPercentProgress}" max="1"></progress>`; |
370 | 370 | } |
371 | 371 |
|
372 | 372 | const finishedEventsStyle = |
|
0 commit comments