Implements the 'guiopacity' ('gop') option for the Win32 GUI version of Vim, allowing users to adjust the transparency of the main GUI window.
Use float instead of number to independ from platforms.
default.png (view on web)It seems that TUI also has opacity. Should I rename it as 'opacity' or 'backgroundopacity'?
https://github.com/vim/vim/pull/18918
(7 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@mao-yining pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@mao-yining pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@mao-yining pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@mao-yining pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
Since this is my first time implementing an 'option', there might be some unavoidable mistakes. If so, please point them out.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
although this is marked as "float" but it is implement as "char_u*". The advantage is that it handles input very well, such as it won't overflow, but there can be issues when outputting variable values, e.g., let a = &guiopacity. a is a string.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@mao-yining pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
change it to a 'number' option
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@mao-yining pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
Thanks, but I feel that goes a bit too far.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Emacs has similar thing from 2022: https://kristofferbalintona.me/posts/202206071000/
However alpha-background in emacs only adds transparency to background, not to all window elements, making it similar to what modern terminal emulators do. I don't think current implementation where toolbar, menubar and title bar are affected by transparency is what gvim needs.
I would support it otherwise.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
It seems to me we should just do what's needed, if anything, to allow this to be controlled by other tools rather than offer a specific option to configure it from within Vim.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()