kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.28k stars 976 forks source link

Window padding does not respect background_opacity < 1 #7910

Closed AlessandroZanatta closed 3 weeks ago

AlessandroZanatta commented 3 weeks ago

Describe the bug The padding of kitty appears to not respect the background_opacity.

To Reproduce Steps to reproduce the behavior:

  1. open a terminal with background_opacity < 1 and a high window_padding_width

Screenshots

image

Environment details

kitty 0.36.3 created by Kovid Goyal
Linux apollo 6.6.52-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 18 Sep 2024 19:02:04 +0000 x86_64
Arch Linux 6.6.52-1-lts (/dev/tty)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: X11
OpenGL: '4.6 (Core Profile) Mesa 24.2.3-arch1.1' Detected version: 4.6
Frozen: False
Fonts:
  medium: FiraCode-Regular: /usr/share/fonts/TTF/FiraCode-Regular.ttf:0
          Features: ()
    bold: FiraCode-SemiBold: /usr/share/fonts/TTF/FiraCode-SemiBold.ttf:0
          Features: ()
  italic: FiraCode-Retina: /usr/share/fonts/TTF/FiraCode-Retina.ttf:0
          Features: ()
      bi: FiraCode-SemiBold: /usr/share/fonts/TTF/FiraCode-SemiBold.ttf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/zsh
Loaded config files:
  /home/kalex/.config/kitty/kitty.conf

Config options different from defaults:
active_border_color     None
allow_remote_control    yes
background_opacity      0.85
bold_font               Fira Code SemiBold
clipboard_max_size      64.0
confirm_os_window_close 0
disable_ligatures       1
enable_audio_bell       False
font_family             Fira Code
font_size               10.0
remember_window_size    False
scrollback_lines        10000
symbol_map:
    U+e000 - U+e00a → Symbols Nerd Font Mono
    U+e0a0 - U+e0c8 → Symbols Nerd Font Mono
    U+e0ca - U+e0ca → Symbols Nerd Font Mono
    U+e0cc - U+e0d4 → Symbols Nerd Font Mono
    U+e200 - U+e2a9 → Symbols Nerd Font Mono
    U+e300 - U+e3e3 → Symbols Nerd Font Mono
    U+e5fa - U+e6b1 → Symbols Nerd Font Mono
    U+e700 - U+e7c5 → Symbols Nerd Font Mono
    U+ea60 - U+ebeb → Symbols Nerd Font Mono
    U+f000 - U+f2e0 → Symbols Nerd Font Mono
    U+f300 - U+f372 → Symbols Nerd Font Mono
    U+f400 - U+f532 → Symbols Nerd Font Mono
    U+f0001 - U+f1af0 → Symbols Nerd Font Mono
tab_bar_style           powerline
update_check_interval   24.0
url_style               1
window_border_width     (0, 'pt')
window_padding_width    FloatEdges(left=5.0, top=5.0, right=5.0, bottom=5.0)
Added mouse actions:
    ctrl+left click ungrabbed →  mouse_handle_click selection link prompt
Removed mouse actions:
    left click ungrabbed →  mouse_handle_click selection link prompt
Added shortcuts:
    alt+super+page_down →  scroll_line_down
    alt+super+page_up →  scroll_line_up
    ctrl+super+space →  kitten unicode_input
    shift+super+- →  change_font_size all -2.0
    shift+super+= →  change_font_size all +2.0
    super++ →  change_font_size all +2.0
    super+, →  edit_config_file
    super+- →  change_font_size all -2.0
    super+0 →  change_font_size all 0
    super+= →  change_font_size all +2.0
    super+down →  scroll_line_down
    super+up →  scroll_line_up
Changed shortcuts:
    kitty_mod+enter →  new_os_window_with_cwd
Colors:
    background              #1e222a   
    color0                  #151515   
    color1                  #ac4142   
    color10                 #7e8d50   
    color11                 #e5b566   
    color12                 #6c99ba   
    color13                 #9e4e85   
    color14                 #7dd5cf   
    color15                 #f5f5f5   
    color2                  #7e8d50   
    color3                  #e5b566   
    color4                  #6c99ba   
    color5                  #9e4e85   
    color6                  #7dd5cf   
    color7                  #d0d0d0   
    color8                  #505050   
    color9                  #ac4142   
    cursor                  #d0d0d0   
    foreground              #d0d0d0   
    selection_background    #303030   
    selection_foreground    #202020   

Important environment variables seen by the kitty process:
    PATH                                /home/kalex/.local/share/solana/install/active_release/bin:/home/kalex/.local/share/solana/install/active_release/bin:/opt/pvs:/opt/google-cloud-cli/bin:/home/kalex/.opam/default/bin:/opt/google-cloud-cli/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/emulator:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/kalex/.local/bin:/home/kalex/dotfiles/scripts:/home/kalex/go/bin:/home/kalex/.cargo/bin:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/emulator:/opt/depot_tools
    LANG                                en_GB.UTF-8
    EDITOR                              /usr/local/bin/v
    SHELL                               /bin/zsh
    DISPLAY                             :0
    USER                                kalex
    XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session1
    XDG_SEAT                            seat0
    XDG_VIDEOS_DIR                      /home/kalex/Videos
    XDG_SESSION_DESKTOP                 
    XDG_SESSION_TYPE                    x11
    XDG_PICTURES_DIR                    /home/kalex/Pictures
    XDG_PUBLICSHARE_DIR                 /home/kalex/Public
    XDG_DOWNLOAD_DIR                    /home/kalex/Downloads
    XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
    XDG_MUSIC_DIR                       /home/kalex/Music
    XDG_TEMPLATES_DIR                   /home/kalex/Templates
    XDG_SESSION_CLASS                   user
    XDG_DESKTOP_DIR                     /home/kalex/Desktop
    XDG_VTNR                            1
    XDG_SESSION_ID                      9
    XDG_RUNTIME_DIR                     /run/user/1000
    LC_TIME                             it_IT.utf-8
    XDG_DOCUMENTS_DIR                   /home/kalex/Documents

Additional context Possibly a regression of #1221 ?

This issue appeared after upgrading from 0.36.2 to 0.36.3

kovidgoyal commented 3 weeks ago

dup of #7895

AlessandroZanatta commented 3 weeks ago

Sorry about that, didn't find that issue! :)