-
Notifications
You must be signed in to change notification settings - Fork 3
problem with background transparency #8
Comments
This is the step-by-step fix for the problem, I'll pin this issue and link it on the README 1. First make sure your terminal support transparency, Below are some terminals that supports it
Set the opacity of your terminal to the value you prefer (I recommend 2. Set your terminal to use the same colorscheme I've already ported daycula for kitty, alacritty, and Xresources. If it's not available yet (like iTerm2, xfce4-terminal, etc.), you can port it yourself and add a pull request to this repo. 3. Check if your compositor is already running This might not be the case for macOS and Windows. But on Linux, you need to run compositor that supports transparency (such as compton, picom, etc.) if you're not using a DE with built-in compositor (such as KWin) 4. Set the This will make Vim not using any color for its background. Instead, your terminal colorscheme background will be used ResultYou can see there's some see through flower in the background For now I'll close this issue. But if you're still having some problem after following the steps or maybe having some questions, feel free to mention me and leave a comment |
Hey there @ghifarit53! It is still not working for me. I tried both terminals that I have on my system. Namely |
@kunzaatko hey thanks for the reply. First, sorry for the inconvenience you got when using this colorscheme. I'll do my best to help you. I haven't tested alacritty and st yet (maybe later). By the way, looks like you haven't set your terminal to use daycula. Alacritty port is available here. I dont really know how to add port for st since st hardcodes colors from its source code. I'll think about it later Please send the screenshot here again after setting your terminal colors to daycula and termguicolors is set |
Hi there! An update. I used it with the alacritty terminal with the daycula colours and it still does not work. It works unsurprisingly without termguicolours set. Here is the cast and screenshots in order. I use the patch to load colours from Xresources, so I am covered in using st, but thank you! :) |
Hey @kunzaatko, I been busy this few days, but looks like I've finally found a solution. Although I still need to check some things, this is what I got for now. I'll write the details soon. Vim with Daycula colorscheme on alacritty with |
This is the relevant part of my vimrc file call plug#begin('~/.vim/plugged')
Plug 'ghifarit53/daycula-vim', {'branch':'main'}
call plug#end()
set termguicolors
if exists('+termguicolors')
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
let g:daycula_transparent_background = 1
colorscheme daycula At first, I thought it's alacritty issue with truecolor, so i googled it and found this: alacritty/alacritty#109 Also, there's apparently some bad formatting in the yml colorscheme, I'll replace it with the working one after this |
Unfortunately, this does not work for me either. I also tried launching picom with default configuration, which did not help. Thank you for the effort. If this works on your system, then it is probably an issue with my setup in particular, so you can close the issue if you want to. |
@kunzaatko That's sad. I wanna know why it isn't working for you. Can you post your config (vimrc, alacritty.yml) in a gist? I'll play with them in my free time and see whether I can reproduce and fix it or not. And if you don't mind, try running it with compton instead of picom |
I tried with compton and there is no change. Here is the gist. My vim configuration is in about 50 separate files so this is only the relevant part. https://gist.github.com/kunzaatko/17c912393aee852468f567669392bb9e |
Hi @kunzaatko! I'm really sorry for the very long wait because I've been busy these past months. So today when I revisit this issue again, I've likely found the solution. Apparently it has something to do with the ordering of your config. You need to set all the configuration for daycula (e.g. " This should be a fix for 24 byte colours on alacritty
" if exists('+termguicolors')
" let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
" let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
" set termguicolors
" endif
" Plugin: daycula {{{
" for transparent background
let g:daycula_transparent_background=1
let g:daycula_menu_selection_background='blue'
let g:daycula_enable_italic=1
let g:daycula_current_word='bold'
colorscheme daycula
"}}} I've also removed custom higlighting that you've set because it's already being set by the colorscheme. I hope its working after updating your relevant config with my changes above |
reported by u/kunzaatko on reddit
I can now see that you are not able to see whether the background is transparent or not, but it was, when I wrote so. My concern here is: Is this an issue in my config or is this on the colourscheme? I am not particularly informed about the workings of colours in vim. However I know why the background was transparent in the second case, but why was it not in the first? Also, I did not understand the help about termguicolors can someone explain please?
I want to know if this is an issue in order to determine if it is worth filing...
The text was updated successfully, but these errors were encountered: