Skip to content

Commit

Permalink
Changing the design for dialog backdrop blur to fix #59 and #28
Browse files Browse the repository at this point in the history
  • Loading branch information
Madelena committed Apr 2, 2023
1 parent 93b0ef9 commit 80304e8
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions themes/metro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ ________________________________________Common Base 2 (Do Not Use):
rgb-disabled-text-color: "140,140,140"

# Other Mode Specific Variables
mdc-dialog-scrim-color: "rgba(0, 0, 0, 0.5)"
dialog-backdrop-filter: none
mdc-dialog-scrim-color: "rgba(var(--rgb-primary-background-color), 0.5)"
dialog-backdrop-filter: blur(16px)
dialog-box-shadow: var(--rgb-accent-color)
slider-thumb-color: var(--ha-card-background)

Expand All @@ -397,8 +397,8 @@ ________________________________________Common Base 2 (Do Not Use):
rgb-disabled-text-color: "152,152,152"

# Other Mode Specific Variables
mdc-dialog-scrim-color: rgba(var(--rgb-primary-background-color),.667)
dialog-backdrop-filter: none
mdc-dialog-scrim-color: rgba(var(--rgb-primary-background-color),.67)
dialog-backdrop-filter: blur(16px)
dialog-box-shadow: var(--rgb-primary-text-color)
slider-thumb-color: var(--ha-card-background)

Expand Down Expand Up @@ -523,29 +523,18 @@ ________________________________________Common Base 3 (Do Not Use): &common-card
$: |
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.mdc-dialog__surface {
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
xbackdrop-filter: blur(16px);
x-webkit-backdrop-filter: blur(16px);
background-color: rgba(var(--rgb-mdc-theme-surface), .5) !important;
}
}
.mdc-dialog .mdc-dialog__container .mdc-dialog__surface,
.mdc-dialog .mdc-dialog__content {
x.mdc-dialog .mdc-dialog__container .mdc-dialog__surface,
x.mdc-dialog .mdc-dialog__content {
overflow: visible;
}
.mdc-dialog__surface {
box-shadow: 0 0px 16px 4px rgba(var(--dialog-box-shadow), .15), 0 16px 64px 32px rgba(var(--dialog-box-shadow), .5) !important;
}
ha-dialog$: |
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.mdc-dialog__surface {
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
background-color: rgba(var(--rgb-mdc-theme-surface), .5) !important;
}
}
.mdc-dialog__surface {
box-shadow: 0 0px 16px 4px rgba(var(--dialog-box-shadow), .15), 0 16px 64px 32px rgba(var(--dialog-box-shadow), .5) !important;
}
ha-header-bar$: |
.mdc-top-app-bar {
background: none !important;
Expand All @@ -564,9 +553,6 @@ ________________________________________Common Base 3 (Do Not Use): &common-card
.content {
xmargin-top: -8px;
}
ha-dialog {
--dialog-box-shadow: inherit !important;
}
ha-more-info-info$state-card-display$: |
.state {
margin-left: 46px !important;
Expand Down

0 comments on commit 80304e8

Please sign in to comment.