mirror of
https://github.com/GeorgeSG/lovelace-time-picker-card.git
synced 2026-09-06 10:28:45 +00:00
Fixes #6: Inherit border-radius from theme. Add variable for border radius
This commit is contained in:
@@ -19,7 +19,6 @@ Requires an [Input Datetime](https://www.home-assistant.io/integrations/input_da
|
||||
|
||||
Install using [HACS](https://hacs.xyz) and add the following to your config:
|
||||
|
||||
|
||||
```yaml
|
||||
resources:
|
||||
- url: /hacsfiles/lovelace-time-picker-card/time-picker-card.js
|
||||
@@ -129,13 +128,14 @@ layout:
|
||||
Time Picker Card will automatically pick up colors from your lovelace theme, but if you want to customize some of them,
|
||||
you can use the following variables in your theme's config file:
|
||||
|
||||
| Name | Default | Description |
|
||||
| ------------------------------------- | ---------------------------- | -------------------------------------- |
|
||||
| time-picker-elements-background-color | `var(--primary-color)` | Background color for header and inputs |
|
||||
| time-picker-icon-color | `var(--primary-text-color)` | Arrow color |
|
||||
| time-picker-text-color | `white` | Text color |
|
||||
| time-picker-accent-color | `var(--primary-color)` | AM / PM active color |
|
||||
| time-picker-off-color | `var(--disabled-text-color)` | AM / PM inactive color |
|
||||
| Name | Default | Description |
|
||||
| ------------------------------------- | ------------------------------ | -------------------------------------- |
|
||||
| time-picker-elements-background-color | `var(--primary-color)` | Background color for header and inputs |
|
||||
| time-picker-icon-color | `var(--primary-text-color)` | Arrow color |
|
||||
| time-picker-text-color | `white` | Text color |
|
||||
| time-picker-accent-color | `var(--primary-color)` | AM / PM active color |
|
||||
| time-picker-off-color | `var(--disabled-text-color)` | AM / PM inactive color |
|
||||
| time-picker-border-radius | `var(--ha-card-border-radius)` | Border radius of the card |
|
||||
|
||||
## Meta
|
||||
|
||||
|
||||
Reference in New Issue
Block a user