美文网首页
macOS 下 Alacritty 背景透明无效

macOS 下 Alacritty 背景透明无效

作者: 夙小叶 | 来源:发表于2022-01-08 16:48 被阅读0次
    2022_01_08_16_41_22.png

    问题

    Alacritty 背景透明配置:

    window:
      dimensions:
        columns: 130
        lines: 34
      # 内填充
      padding:
        x: 0
        y: 0
      # full or none or (macOS) transparent or buttonless
      decorations: transparent
      # 透明度:0 透明,1 不透明
      opacity: 0.5
      # 启动模式(Windowed / Maximized / Fullscreen / (macOS) SimpleFullscreen)
      startup_mode: Windowed
    
    windows.opacity
    

    解决

    根据 snOm3ad 回答:From

    I have the same problem, On macOS 11.4.
    Update:
    It seems that the switch from background_opacity to window.opacity was merged on August 16th, which is not included in the v0.9 release from August 3rd! So if your installation comes from the releases you still have to use background_opacity in your config file! For more information see #5297.

    替换 window.opacitybackground_opacity

    window:
      dimensions:
        columns: 130
        lines: 34
      # 内填充
      padding:
        x: 0
        y: 0
      # full or none or (macOS) transparent or buttonless
      decorations: transparent
      # 透明度:0 透明,1 不透明
      # opacity: 1.0
      # opacity: 0.5
      # 启动模式(Windowed / Maximized / Fullscreen / (macOS) SimpleFullscreen)
      startup_mode: Windowed
    
    # background 透明
    background_opacity: 0.9
    

    相关文章

      网友评论

          本文标题:macOS 下 Alacritty 背景透明无效

          本文链接:https://www.haomeiwen.com/subject/pygecrtx.html