Trasparency/opacity should not be a part of the theme.
It should be a separate setting that could be applied to any theme, instead of creating transparent version like base16_transparent. Otherwise users have to customize every single theme if they want to try it on transparent terminal.
Since #3067, you can inherit any theme and unset the ui.background scope:
# ~/.config/helix/themes/dracula_transparent.toml
inherits = "dracula"
"ui.background" = {}
I don't like the idea of adding an extra config option for this.
This is the first thing I ran into with setting up helix because I have tmux changing the background for the active pane.
We could add the equivalent of base16_transparent.toml for every theme instead, but at that point why not support global overrides?
This suggestion does not work for some reason.
First the file is only detected if it is not ~/.config/helix/dracula_transparent.toml, but in themes subdirectory. I assume it is a typo. Also I use onedark, if it makes a difference.
Then the failure is "Invalid theme: 'ui.selection` required". Probably like https://github.com/helix-editor/helix/issues/2247
OS - OpenBSD 7.2, helix is installed from a repo. These are the standard OS patches from the stock source - https://github.com/openbsd/ports/tree/master/editors/helix/patches
hx --version
helix 22.08.1
hx --health
Config file: /home/user/.config/helix/config.toml
Language file: default
Log file: /home/user/.cache/helix/helix.log
Runtime directory: /usr/local/share/helix/runtime
Clipboard provider: none
....
Ah yeah, that's a typo, it should be under ~/.config/helix/themes. I'll edit the original post.
Theme inheritance is a new feature in 22.12 but you're running on 22.08.1. It looks like OpenBSD ports hasn't updated to 22.12 yet: https://repology.org/project/helix/versions
Alright, thanks. In that case I will attempt to just copy a theme and edit it. Thanks.
On Fri 9 Dec 2022, 17:25 Michael Davis, @.***> wrote:
Ah yeah, that's a typo, it should be under ~/.config/helix/themes. I'll edit the original post.
Theme inheritance is a new feature in 22.12 but you're running on 22.08.1. It looks like OpenBSD ports hasn't updated to 22.12 yet: https://repology.org/project/helix/versions
— Reply to this email directly, view it on GitHub https://github.com/helix-editor/helix/issues/4740#issuecomment-1344570636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKZGIE3O7OPHJKN6WJHULTWMNTRZANCNFSM6AAAAAAR7SS4EU . You are receiving this because you authored the thread.Message ID: @.***>
Is there a way to get the transparency value from the terminal environment and apply it automatically to the background colour of whichever theme is active?
AFAIK there isn't a cross-terminal way to figure out how the terminal opacity is configured. Even if we could find out, there's no way to tell the terminal how opaque to draw a background color: all colors are solid. The way that transparency works for themes like base16_transparent is that the theme unsets the ui.background scope so that we don't draw a background color at all.
@the-mikedavis overriding a theme is good but it is hard to move between the themes while keeping the overrides. Helix's way of making changing themes so easy is great but cannot be used if the user override things.
I'd like to contribute this feature if it would be implemented. Something like an override.toml file that applies to whatever theme is active. If a user changes cursor colour or applies transparency, chances are they'd like that on every theme.