Popup card / browser mod theme issue

Started to use the browser mod to create popup window. But unfortunately the pop-up (via browser mod) is too transparent and the corners are to round. So probably I will need to add a setting to the theme.

Does anyone know what I need to add or adjust to the them?

Screenshot off popup I want to change:

Theme
trantsprent_themev2:
# Main colors
# https://www.color-hex.com/color/5294e2
  primary-color: '#5294E2'                                                        # Header
  accent-color: '#E45E65'                                                         # Accent color
  dark-primary-color: 'var(--accent-color)'                                       # Hyperlinks                                         
  light-primary-color: 'var(--accent-color)'                                      # Horizontal line in about
  ha-card-border-radius: '6px'   
  ha-card-background: 'rgba(150, 150, 150, 0.3)'
  ha-card-border-width: "0px" ## to avoid borders

  primary-font-family: 'Raleway,sans-serif'
  paper-font-common-base_-_font-family: "var(--primary-font-family)"
  paper-font-common-code_-_font-family: "var(--primary-font-family)"
  paper-font-body1_-_font-family: "var(--primary-font-family)"
  paper-font-subhead_-_font-family: "var(--primary-font-family)"
  paper-font-headline_-_font-family: "var(--primary-font-family)"
  paper-font-caption_-_font-family: "var(--primary-font-family)"
  paper-font-title_-_font-family: "var(--primary-font-family)"
  ha-card-header-font-family: "var(--primary-font-family)"

# Text colors                                                                  
  primary-text-color: '#FFFFFF'                                                   # Primary text colour, here is referencing dark-primary-color
  text-primary-color: 'var(--primary-text-color)'                                 # Primary text colour
#  secondary-text-color: '#5294E2'                                                 # For secondary titles in more info boxes etc.
  secondary-text-color: '#74a9e7'                                                 # For secondary titles in more info boxes etc.
  disabled-text-color: '#7F848E'                                                  # Disabled text colour
  label-badge-border-color: 'green'                                               # Label badge border, just a reference value   

# Background colors                                                            
#  primary-background-color: '#383C45'                                             # Settings background
  primary-background-color: '#4b4f57'                                             # Settings background
  secondary-background-color: '#383C45'                                           # Main card UI background  
  divider-color: 'rgba(0, 0, 0, .12)'                                             # Divider 

# Table rows                                                                   
  table-row-background-color: '#353840'                                           # Table row
  table-row-alternative-background-color: '#3E424B'                               # Table row alternative

# Nav Menu                                                                   
  paper-listbox-color: 'var(--primary-color)'                                     # Navigation menu selection hoover
  paper-listbox-background-color: '#2E333A'                                       # Navigation menu background
  paper-grey-50: 'var(--primary-text-color)'                                   
  paper-grey-200: '#414A59'                                                       # Navigation menu selection
  sidebar-icon-color: 'var(--primary-color)' 

# Paper card                                                               
  paper-card-header-color: 'var(--accent-color)'                                  # Card header text colour
  paper-card-background-color: 'rgba(150, 150, 150, 0.6)'                         # Card background colour #last was 0.1 
  paper-dialog-background-color: '#434954'                                        # Card dialog background colour
  paper-item-icon-color: 'var(--primary-text-color)'                              # Icon color
  paper-item-icon-active-color: '#F9C536'                                         # Icon color active
  paper-item-icon_-_color: 'green'           
  paper-item-selected_-_background-color: '#434954'                               # Popup item select                      
  paper-tabs-selection-bar-color: 'green'
  #card-background-color: "var(--paper-card-background-color)"
  card-background-color: var(--paper-listbox-background-color)
  #mdc-theme-surface: 'red'
  #codemirror-string: '#222c40'
  #codemirror-keyword: '#222c40'
  #codemirror-property: '#222c40'
  #codemirror-number: '#222c40'
  #codemirror-comment: '#222c40'
  #codemirror-line: '#222c40'
  code-editor-background-color: '#222c40'
  codemirror-property: 'var(--accent-color)'

# Labels 
  label-badge-red: 'var(--accent-color)'                                          # References the brand colour label badge border
  label-badge-text-color: 'var(--primary-text-color)'                             # Now same as label badge border but that's a matter of taste
  label-badge-background-color: '#2E333A'                                         # Same, but can also be set to transparent here
  label-badge-background: 'rgba(255, 255, 255, 0.1)'

# Switches
  paper-toggle-button-checked-button-color: 'var(--accent-color)'
  paper-toggle-button-checked-bar-color: 'var(--accent-color)'
  paper-toggle-button-checked-ink-color: 'var(--accent-color)'
  paper-toggle-button-unchecked-button-color: 'var(--disabled-text-color)'
  paper-toggle-button-unchecked-bar-color: 'var(--disabled-text-color)'
  paper-toggle-button-unchecked-ink-color: 'var(--disabled-text-color)'  

# Sliders
  paper-slider-knob-color: 'var(--accent-color)'
  paper-slider-knob-start-color: 'var(--accent-color)'
  paper-slider-pin-color: 'var(--accent-color)'
  paper-slider-active-color: 'var(--accent-color)'
  paper-slider-container-color: 'linear-gradient(var(--primary-background-color), var(--secondary-background-color)) no-repeat'
  paper-slider-secondary-color: 'var(--secondary-background-color)'
  paper-slider-disabled-active-color: 'var(--disabled-text-color)'
  paper-slider-disabled-secondary-color: 'var(--disabled-text-color)'

# Google colors
  google-red-500: '#E45E65'
  google-green-500: '#39E949'

# Sidebar
  sidebar-background-color: "var(--paper-listbox-background-color)"
  sidebar-icon-color: 'var(--primary-text-color)'
  sidebar-selected-icon-color: "var(--primary-color)"
  sidebar-selected-text-color: "var(--primary-text-color)"
  sidebar-text-color: "var(--primary-text-color)"
  slider-bar-color: "var(--disabled-text-color)"
  slider-color: "var(--primary-color)"
  slider-secondary-color: "var(--light-primary-color)"

Did you ever figure this out? I just updated to browser mod 2 and all of my pop-ups have a clear background.

Unfortunately not. Pls post if you find the answer

I found a solution but it might be specific for my setup. Iā€™m using this theme and I had to add these to the theme.yaml.

3 Likes

Wow! Thanks. Works for me

you absolute legend!!

Thank you for sharing this! just what i needed!
i was able to adjust it a bit for my theme.