rajasegar / alacritty-themes

:rainbow: :lollipop: Themes :candy: :heart_eyes: for Alacritty: A cross-platform GPU-accelerated Terminal emulator
MIT License
696 stars 71 forks source link

Themes still use deprecated background_opacity field. #98

Closed michaelmoreno closed 2 years ago

michaelmoreno commented 2 years ago

Describe the bug

Any terminal instances I open have a big yellow warning message at the bottom saying

Config warning: background_opacity is deprecated; use window.opacity instead

I could go to my ~/.config/alacritty/alacritty.yml and manually change the field, but it will revert everytime I run alacritty-themes to switch to another theme.

To Reproduce

  1. Installation yay -s alacritty-themes

  2. Run alacritty-themes

Operative System:

Arch, Linux 5.15.19-1-lts

An example of a theme .yml file that alacritty-themes writes to ~/config/alacritty/alacritty.yml

colors:
  name: Atelierheath (dark)
  author: Chris Kempson
  primary:
    background: "#1b181b"
    foreground: "#ab9bab"
  cursor:
    text: "#1b181b"
    cursor: "#ab9bab"
  normal:
    black: "#1b181b"
    red: "#ca402b"
    green: "#379a37"
    yellow: "#bb8a35"
    blue: "#516aec"
    magenta: "#7b59c0"
    cyan: "#159393"
    white: "#ab9bab"
  bright:
    black: "#776977"
    red: "#ca402b"
    green: "#379a37"
    yellow: "#bb8a35"
    blue: "#516aec"
    magenta: "#7b59c0"
    cyan: "#159393"
    white: "#f7f3f7"

background_opacity: 0.8
theme: Atelierheath.dark
me: Default.light

Screenshots

Add screenshots to help explain your problem. image

JuanVqz commented 2 years ago

Hi @michaelmoreno, Thank you for opening this issue, you just need to change from background_opacity to the opacity attribute. Update alacritty template https://github.com/rajasegar/alacritty-themes/pull/99

colors:
  name: Atelierheath (dark)
  author: Chris Kempson
  primary:
    background: "#1b181b"
    foreground: "#ab9bab"
  cursor:
    text: "#1b181b"
    cursor: "#ab9bab"
  normal:
    black: "#1b181b"
    red: "#ca402b"
    green: "#379a37"
    yellow: "#bb8a35"
    blue: "#516aec"
    magenta: "#7b59c0"
    cyan: "#159393"
    white: "#ab9bab"
  bright:
    black: "#776977"
    red: "#ca402b"
    green: "#379a37"
    yellow: "#bb8a35"
    blue: "#516aec"
    magenta: "#7b59c0"
    cyan: "#159393"
    white: "#f7f3f7"

opacity: 0.8
theme: Atelierheath.dark
me: Default.light