0.7.0 - Allow limited custom style injection and remove other unused bits ☘️🥼
Custom Styles Injection
Added support for custom styles injection, similar to room-summary-card. Users can now inject custom CSS properties into specific parts of the card via YAML configuration:
- Card styles: Apply custom CSS to the main card container
- Section styles: Apply custom CSS to collapsible sections (switches)
- CSS variable: New
--user--section--caret--displayvariable allows users to control the visibility of section carets (e.g., set tononeto hide them)
Example configuration:
type: custom:adguard-card
device_id: your_device_id
styles:
card:
border-radius: 20px
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)
section:
--user--section--caret--display: none
background-color: rgba(0, 0, 0, 0.1)Removed Footer Section
Removed footer section (refresh time and version updates) as these features are not applicable to AdGuard integration. This removes a random horizontal bar that shows at the bottom :)
Removed Card Actions/Controls Section
Removed the card actions/controls section entirely as it's not applicable to AdGuard card. This includes:
- Removed
controlsconfiguration option from the card config - Removed action buttons section (previously displayed button entities)
- Removed
actionsfrom collapsible sections options - Removed
actionsfrom exclude sections options - Removed all related translations, styles, and tests
The card now focuses solely on displaying switches for toggling AdGuard filtering, statistics, sensors, and other relevant information without the action buttons functionality.
- chore: bumps version to 0.7.0 by @gh-action-bump-version
- remove actions section - thanks @pqpxo! by @warmfire540
- allow custom styles - thanks @pqpxo! by @warmfire540
- remove unused footer component - thanks @pqpxo! by @warmfire540
What's Changed
- Allow limited custom style injection and remove other unused bits ☘️🥼 by @warmfire540 in #8
Full Changelog: 0.6.0...0.7.0