Add backgroud blur - #79
Open
basnijholt wants to merge 4 commits into
Open
Conversation
Owner
Author
|
Will have this issue: Nezz/homeassistant-visionos-theme#4 home-assistant/frontend#20725 |
Owner
Author
|
Using entities:
- type: custom:mushroom-chips-card
alignment: center
chips:
- type: template
icon: mdi:sofa
content: |
Living room
icon_color: |-
{% if is_state('binary_sensor.activity_in_living_room', 'on') %}
amber {% else %} white {% endif %}
entity: binary_sensor.activity_in_living_room
tap_action:
action: more-info
- type: template
icon: mdi:knife
content: |
Kitchen
icon_color: |-
{% if is_state('binary_sensor.activity_in_kitchen', 'on') %}
amber {% else %} white {% endif %}
entity: binary_sensor.activity_in_kitchen
tap_action:
action: more-info
- type: template
icon: mdi:bed-king
content: |
Bedroom
icon_color: |-
{% if is_state('binary_sensor.activity_in_master_bedroom', 'on') %}
amber {% else %} white {% endif %}
entity: binary_sensor.activity_in_master_bedroom
tap_action:
action: more-info
- type: template
icon: mdi:baby
content: |
Baby room
icon_color: |-
{% if is_state('binary_sensor.activity_in_baby_room', 'on') %}
amber {% else %} white {% endif %}
entity: binary_sensor.activity_in_baby_room
tap_action:
action: more-info
- type: template
icon: mdi:bed
content: |
Guest room
icon_color: |-
{% if is_state('binary_sensor.activity_in_guest_room', 'on') %}
amber {% else %} white {% endif %}
entity: binary_sensor.activity_in_guest_room
tap_action:
action: more-info
- type: template
icon: mdi:washing-machine
content: |
Utility room
icon_color: |-
{% if is_state('binary_sensor.activity_in_utility_room', 'on') %}
amber {% else %} white {% endif %}
entity: binary_sensor.activity_in_utility_room
tap_action:
action: more-info
- type: template
icon: mdi:garage
content: |
Outside house
icon_color: |-
{% if is_state('binary_sensor.activity_outside_house', 'on') %}
amber {% else %} white {% endif %}
entity: binary_sensor.activity_outside_house
tap_action:
action: more-info
- type: divider
- type: custom:mushroom-chips-card
alignment: center
chips:
- type: template
entity: binary_sensor.mailbox_vibration
icon: mdi:mailbox
icon_color: |-
{% if is_state('input_boolean.mailbox_full', 'on') %}
amber {% else %} white {% endif %}
tap_action:
action: call-service
service: input_boolean.toggle
target:
entity_id: input_boolean.mailbox_full
data: {}
content: |-
{% if is_state('input_boolean.mailbox_full', 'on') %}
Got mail! {% else %} No mailbox activity {% endif %}
- type: template
entity: switch.space_heater
icon: mdi:patio-heater
icon_color: |-
{% if is_state('switch.space_heater', 'on') %}
amber {% else %} white {% endif %}
tap_action:
action: toggle
content: |-
{% if is_state('switch.space_heater', 'on') %}
Space heater on {% else %} Space heater off {% endif %}
show_header_toggle: false
title: Activity
type: entities
state_color: trueCan be fixed by: - type: entities
entities:
- type: custom:mushroom-chips-card
alignment: center
card_mod:
style: |
ha-card {
--ha-card-background: rgba(0, 0, 0, 0);
--ha-card-backdrop-filter: blur(-1px) !important;
}
chips:
... |
Nezz
reviewed
Sep 9, 2024
| paper-card-background-color: var(--ha-card-background) | ||
| rgb-card-background-color: {{ rgb_card_background }} # see https://github.com/basnijholt/lovelace-ios-themes/issues/60 | ||
| ha-card-border-width: 0 # https://github.com/basnijholt/lovelace-ios-dark-mode-theme/issues/82#event-7732695357 | ||
| ha-card-backdrop-filter: blur(20px) |
Contributor
There was a problem hiding this comment.
Note that using a backdrop filter breaks all sorts of dropdowns and popup menus (because the library HA uses it pretty old and does not support it), so it makes themes quite hard to use for editing automations and more advanced stuff. It's great for viewing though.
See Nezz/homeassistant-visionos-theme#2 and Nezz/homeassistant-visionos-theme#4
Owner
Author
There was a problem hiding this comment.
Yes I found that problem on your repo and already encountered it myself in testing.
I think for the time being, I cannot make the switch here as many people will be unhappy, haha.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Inspired by https://github.com/Nezz/homeassistant-visionos-theme