JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.84k stars 2.36k forks source link

leading powerline symbol doesn't have transparent background #4490

Closed mil-ad closed 10 months ago

mil-ad commented 10 months ago

Code of Conduct

What happened?

I just installed oh-my-posh so maybe I'm missing something but I noticed that the leading powerline symbol in the default theme doesn't have a transparent background but the trailing one does:

image

Is this a bug or do I have a problem in my config?

{
  "type": "path",
  "style": "powerline",
  "powerline_symbol": "\ue0b0",
  "foreground": "p:white",
  "background": "p:orange",
  "template": " \uea83 {{ path .Path .Location }} ",
  "properties": {
    "style": "folder"
  }
},

Theme

Default

What OS are you seeing the problem on?

Linux

Which shell are you using?

zsh

Log output

Version: 18.26.1

Shell: zsh (5.9)

Prompt:

  ~    

Segments:

ConsoleTitle(true)                        -   2 ms
Session(false)                            -   0 ms
Path(true)                                -   0 ms
Git(false)                                -   0 ms
Root(false)                               -   0 ms
Exit(true)                                -   0 ms

Run duration: 14.760616ms

Cache path: /home/milad/.cache/oh-my-posh

Config path: /home/milad/.dotfiles/common/.config/oh-my-posh/theme.json

Logs:

[DEBUG] 13:10:03.688 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.688 shell.go:Getenv(TERM_PROGRAM) - 5.005439ms
[DEBUG] 13:10:03.688 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.688 shell.go:Getenv(OMP_CACHE_DIR) - 17.806µs
[DEBUG] 13:10:03.688 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.688 shell.go:Getenv(XDG_CACHE_HOME) - 5.283µs
[TRACE] 13:10:03.688 shell_unix.go:CachePath() - 53.995µs
[DEBUG] 13:10:03.690 shell.go:Getenv:398 → /home/milad/.dotfiles/common/.config/oh-my-posh/theme.json
[TRACE] 13:10:03.690 shell.go:Getenv(POSH_THEME) - 21.511µs
[DEBUG] 13:10:03.690 shell_unix.go:Platform:77 → arch
[TRACE] 13:10:03.690 shell.go:resolveConfigPath() - 47.127µs
[TRACE] 13:10:03.690 shell.go:Init() - 7.479249ms
[TRACE] 13:10:03.690 shell.go:Flags() - 148ns
[TRACE] 13:10:03.691 config.go:loadConfig() - 1.212401ms
[TRACE] 13:10:03.691 shell.go:Flags() - 147ns
[DEBUG] 13:10:03.691 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.691 shell.go:Getenv(OMP_CACHE_DISABLED) - 7.362µs
[DEBUG] 13:10:03.691 shell.go:Shell:652 → no shell name provided in flags, trying to detect it
[DEBUG] 13:10:03.693 shell.go:Shell:660 → process name: zsh
[TRACE] 13:10:03.693 shell.go:Shell() - 1.268099ms
[DEBUG] 13:10:03.693 shell.go:Getenv:398 → 5.9
[TRACE] 13:10:03.693 shell.go:Getenv(POSH_SHELL_VERSION) - 7.454µs
[DEBUG] 13:10:03.693 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 13:10:03.693 text.go:Render:70 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 13:10:03.695 shell_unix.go:Root() - 1.407µs
[TRACE] 13:10:03.695 shell.go:Shell() - 290ns
[TRACE] 13:10:03.695 shell.go:StatusCodes() - 156ns
[DEBUG] 13:10:03.695 shell_unix.go:IsWsl:35 → false
[TRACE] 13:10:03.695 shell_unix.go:IsWsl() - 10.458µs
[DEBUG] 13:10:03.695 shell.go:TemplateCache:833 → environment: [GDK_DPI_SCALE=0.5 GDK_SCALE=2 QT_AUTO_SCREEN_SCALE_FACTOR=1 SHELL=/usr/bin/zsh I3SOCK=/run/user/1000/i3/ipc-socket.4287 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh CREDENTIALS_DIRECTORY=/run/credentials/getty@tty1.service MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA= GTK_MODULES=canberra-gtk-module XDG_SEAT=seat0 PWD=/home/milad LOGNAME=milad QT_QPA_PLATFORMTHEME=qt5ct XDG_SESSION_TYPE=tty SYSTEMD_EXEC_PID=2828 XAUTHORITY=/home/milad/.Xauthority DESKTOP_STARTUP_ID=i3/GDK_SCALE=2/4287-23-milad-matebook14s_TIME15046562 WINDOWPATH=1 LD_PRELOAD=/usr/lib/libinput-config.so: HOME=/home/milad LANG=en_GB.UTF-8 MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure INVOCATION_ID=dfc23d6cf4fa4f2c9b75b552bf6ef806 XDG_SESSION_CLASS=user TERM=xterm-kitty USER=milad DISPLAY=:0 SHLVL=2 XDG_VTNR=1 XDG_SESSION_ID=1 XDG_RUNTIME_DIR=/run/user/1000 DEBUGINFOD_URLS=https://debuginfod.archlinux.org  PATH=/home/milad/micromamba/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/milad/.scripts:/home/milad/.local/bin:/home/milad/Application:/home/milad/.scripts DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus MAIL=/var/spool/mail/milad OLDPWD=/home/milad _=/usr/bin/oh-my-posh KITTY_WINDOW_ID=1 WINDOWID=65011726 COLORTERM=truecolor KITTY_PID=254546 KITTY_PUBLIC_KEY=1:r{5=pX(zA=8_j^i!nB3>tPp5fmK*!*)amcVY^)gr TERMINFO=/usr/lib/kitty/terminfo KITTY_INSTALLATION_DIR=/usr/lib/kitty POSH_THEME=/home/milad/.dotfiles/common/.config/oh-my-posh/theme.json POSH_SHELL_VERSION=5.9 POSH_PID=254559 POWERLINE_COMMAND=oh-my-posh CONDA_PROMPT_MODIFIER=false POSH_PROMPT_COUNT=1 EDITOR=vim MANPAGER=less -R --use-color -Dd+r -Du+b MANROFFOPT=-P -c KEYTIMEOUT=5 GPG_TTY=/dev/pts/1 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90: FZF_DEFAULT_COMMAND=fd --hidden --follow --exclude .git --exclude .cache . FZF_CTRL_T_COMMAND=fd --hidden --follow --exclude .git --exclude .cache . MAMBA_EXE=/usr/bin/micromamba MAMBA_ROOT_PREFIX=/home/milad/micromamba CONDA_SHLVL=0]
[TRACE] 13:10:03.695 shell.go:GOOS() - 158ns
[DEBUG] 13:10:03.695 shell.go:Pwd:428 → /home/milad
[TRACE] 13:10:03.695 shell.go:Pwd() - 28.185µs
[TRACE] 13:10:03.695 shell.go:GOOS() - 69ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 67ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 68ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 66ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 68ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 66ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 68ns
[DEBUG] 13:10:03.695 shell.go:User:563 → milad
[TRACE] 13:10:03.695 shell.go:User() - 6.489µs
[DEBUG] 13:10:03.695 shell.go:Host:575 → milad-matebook14s
[TRACE] 13:10:03.695 shell.go:Host() - 9.114µs
[TRACE] 13:10:03.695 shell.go:GOOS() - 66ns
[DEBUG] 13:10:03.695 shell_unix.go:Platform:77 → arch
[DEBUG] 13:10:03.695 shell.go:Getenv:398 → 2
[TRACE] 13:10:03.695 shell.go:Getenv(SHLVL) - 6.44µs
[TRACE] 13:10:03.695 shell.go:TemplateCache() - 317.585µs
[DEBUG] 13:10:03.695 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.695 shell.go:Getenv(POSH_CURSOR_LINE) - 5.985µs
[DEBUG] 13:10:03.695 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.695 shell.go:Getenv(POSH_CURSOR_COLUMN) - 4.62µs
[TRACE] 13:10:03.695 shell.go:Flags() - 164ns
[TRACE] 13:10:03.695 shell.go:Flags() - 66ns
[TRACE] 13:10:03.695 shell.go:Shell() - 150ns
[TRACE] 13:10:03.695 shell.go:Shell() - 114ns
[TRACE] 13:10:03.695 shell.go:Flags() - 90ns
[TRACE] 13:10:03.695 shell.go:Flags() - 593ns
[DEBUG] 13:10:03.695 properties.go:GetString:28 → {{ .Code }}
[TRACE] 13:10:03.695 shell.go:Pwd() - 284ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 117ns
[DEBUG] 13:10:03.695 segment.go:SetEnabled:512 → Segment: Path
[TRACE] 13:10:03.695 shell.go:Pwd() - 279ns
[TRACE] 13:10:03.695 shell.go:Pwd() - 139ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 142ns
[TRACE] 13:10:03.695 shell.go:Shell() - 187ns
[DEBUG] 13:10:03.695 segment.go:SetEnabled:512 → Segment: Exit
[TRACE] 13:10:03.695 shell.go:Flags() - 399ns
[TRACE] 13:10:03.695 shell.go:Shell() - 134ns
[TRACE] 13:10:03.695 shell.go:Flags() - 464ns
[TRACE] 13:10:03.695 shell.go:StatusCodes() - 215ns
[TRACE] 13:10:03.695 shell.go:Flags() - 553ns
[TRACE] 13:10:03.695 shell.go:Pwd() - 336ns
[TRACE] 13:10:03.695 shell.go:Pwd() - 315ns
[DEBUG] 13:10:03.695 text.go:Render:70 → Rendering template: {{ .Code }}
[TRACE] 13:10:03.695 shell.go:GOOS() - 174ns
[TRACE] 13:10:03.695 shell.go:GOOS() - 155ns
[DEBUG] 13:10:03.695 segment.go:SetEnabled:512 → Segment: Git
[TRACE] 13:10:03.695 shell.go:Pwd() - 334ns
[DEBUG] 13:10:03.695 segment.go:SetEnabled:512 → Segment: Root
[DEBUG] 13:10:03.695 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 13:10:03.696 segment.go:SetEnabled:512 → Segment: Session
[TRACE] 13:10:03.696 shell_unix.go:IsWsl() - 15.001µs
[DEBUG] 13:10:03.696 properties.go:GetString:28 → 
[DEBUG] 13:10:03.696 shell.go:Getenv:398 → NO DATA
[DEBUG] 13:10:03.696 properties.go:GetString:28 → 
[TRACE] 13:10:03.696 shell.go:Getenv(SSH_CONNECTION) - 7.308µs
[TRACE] 13:10:03.696 shell_unix.go:IsWsl2() - 26.825µs
[TRACE] 13:10:03.696 shell.go:GOOS() - 83ns
[DEBUG] 13:10:03.696 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.696 shell.go:GOOS() - 148ns
[TRACE] 13:10:03.696 shell.go:Getenv(SSH_CLIENT) - 4.782µs
[DEBUG] 13:10:03.696 properties.go:GetString:28 → ~
[DEBUG] 13:10:03.696 shell_unix.go:Platform:77 → arch
[DEBUG] 13:10:03.696 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 13:10:03.696 shell.go:PathSeparator() - 71ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 30ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 29ns
[DEBUG] 13:10:03.696 shell.go:CommandPath:614 → /usr/bin/git
[TRACE] 13:10:03.696 shell.go:CommandPath(git) - 35.656µs
[TRACE] 13:10:03.696 shell.go:HasCommand(git) - 42.458µs
[TRACE] 13:10:03.696 shell.go:Pwd() - 96ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 42ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 37ns
[ERROR] 13:10:03.696 shell.go:HasParentFilePath:748 → stat .git: no such file or directory
[TRACE] 13:10:03.696 shell.go:PathSeparator() - 69ns
[TRACE] 13:10:03.696 shell.go:PathSeparator() - 30ns
[TRACE] 13:10:03.696 shell.go:HasParentFilePath(.git) - 25.707µs
[TRACE] 13:10:03.696 shell.go:GOOS() - 31ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 31ns
[TRACE] 13:10:03.696 shell.go:PathSeparator() - 31ns
[DEBUG] 13:10:03.696 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 13:10:03.696 shell.go:GOOS() - 30ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 29ns
[TRACE] 13:10:03.696 shell.go:PathSeparator() - 31ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 30ns
[TRACE] 13:10:03.696 shell.go:GOOS() - 29ns
[TRACE] 13:10:03.696 shell.go:PathSeparator() - 29ns
[TRACE] 13:10:03.696 shell.go:Pwd() - 53ns
[DEBUG] 13:10:03.696 shell_unix.go:IsWsl:35 → false
[TRACE] 13:10:03.696 shell_unix.go:IsWsl() - 5.413µs
[TRACE] 13:10:03.696 shell.go:StackCount() - 83ns
[TRACE] 13:10:03.696 shell_unix.go:DirIsWritable(/home/milad) - 5.779µs
[TRACE] 13:10:03.696 shell.go:TemplateCache() - 237ns
[TRACE] 13:10:03.696 shell.go:TemplateCache() - 202ns
[DEBUG] 13:10:03.696 properties.go:GetBool:22 → always_enabled: true
[TRACE] 13:10:03.696 shell.go:TemplateCache() - 81ns
[DEBUG] 13:10:03.696 shell.go:RunCommand:593 → NO DATA
[TRACE] 13:10:03.696 shell.go:RunCommand(who am i) - 690.106µs
[TRACE] 13:10:03.696 shell.go:TemplateCache() - 208ns
[DEBUG] 13:10:03.696 text.go:Render:70 → Rendering template:  {{ if gt .Code 0 }}{{ else }}{{ end }} 
[DEBUG] 13:10:03.696 text.go:Render:70 → Rendering template:   {{ path .Path .Location }} 
[DEBUG] 13:10:03.696 text.go:Render:70 → Rendering template:  {{ if .SSHSession }}󰢩 {{ .HostName}}{{ end }} 
[TRACE] 13:10:03.697 shell.go:TemplateCache() - 174ns
[TRACE] 13:10:03.697 shell.go:TemplateCache() - 427ns
[TRACE] 13:10:03.697 shell.go:Shell() - 133ns
[TRACE] 13:10:03.697 shell.go:TemplateCache() - 224ns
[TRACE] 13:10:03.697 shell.go:TemplateCache() - 105ns
[TRACE] 13:10:03.697 shell.go:Shell() - 56ns
[TRACE] 13:10:03.697 shell.go:Shell() - 144ns
[DEBUG] 13:10:03.697 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:10:03.697 text.go:Render:70 → Rendering template: powerline
[DEBUG] 13:10:03.697 text.go:Render:70 → Rendering template: powerline
[DEBUG] 13:10:03.697 text.go:Render:70 → Rendering template: powerline
[DEBUG] 13:10:03.697 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 13:10:03.697 shell.go:TemplateCache() - 100ns
[DEBUG] 13:10:03.697 text.go:Render:70 → Rendering template: diamond
[TRACE] 13:10:03.697 shell.go:Shell() - 60ns
[TRACE] 13:10:03.697 shell.go:Shell() - 53ns
[TRACE] 13:10:03.697 shell.go:Flags() - 67ns
[TRACE] 13:10:03.697 shell.go:Shell() - 29ns
[TRACE] 13:10:03.697 shell.go:Shell() - 33ns
[TRACE] 13:10:03.697 shell.go:Flags() - 28ns
[DEBUG] 13:10:03.697 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.697 shell.go:Getenv(OMP_CACHE_DIR) - 3.002µs
[DEBUG] 13:10:03.697 shell.go:Getenv:398 → NO DATA
[TRACE] 13:10:03.697 shell.go:Getenv(XDG_CACHE_HOME) - 2.15µs
[TRACE] 13:10:03.697 shell_unix.go:CachePath() - 18.203µs
[TRACE] 13:10:03.697 shell.go:Flags() - 54ns
JanDeDobbeleer commented 10 months ago

@mil-ad You need to use a the Atlas renderer when using Windows Terminal. Available in their settings.

mil-ad commented 10 months ago

@JanDeDobbeleer I'm using Kitty terminal on Arch Linux

JanDeDobbeleer commented 10 months ago

@mil-ad in that case find out if they have a setting for this, otherwise it's a bug on their end with inverted ANSI. Not something I can fix.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.