Skip to content

feat: add osc transparency options#373

Merged
Samillion merged 2 commits intoSamillion:mainfrom
Hellboy00000:main
Apr 7, 2025
Merged

feat: add osc transparency options#373
Samillion merged 2 commits intoSamillion:mainfrom
Hellboy00000:main

Conversation

@Hellboy00000
Copy link
Contributor

@Hellboy00000 Hellboy00000 commented Apr 6, 2025

Add two new options:

  • fade_transparency_strength
  • window_fade_transparency_strength

This adds more customization to the fade options and can be used to create a transparency box for the top and bottom of the OSC.

Edit: Config settings example

Botton box

# alpha of the OSC background box 
# This sets the size of the box. The higher the number, the larger the box
fade_alpha=80
# blur strength for the OSC alpha fade. caution: high values can take a lot of CPU time to render
# Set this to 0 to create the box
fade_blur_strength=0
# use with "fade_blur_strength=0" to create a transparency box
# This sets the amount of transparency
fade_transparency_strength=75

Top box

# alpha of the window title bar (0 to disable)
# This sets the size of the box. The higher the number, the larger the box
window_fade_alpha=152
# blur strength for the window title bar. caution: high values can take a lot of CPU time to render
# Set this to 0 to create the box
window_fade_blur_strength=0
# use with "window_fade_blur_strength=0" to create a transparency box
# This sets the amount of transparency
window_fade_transparency_strength=75

Add two new options: fade_transparency_strength and window_fade_transparency_strength
Add transparency options to USER_OPTS
@Samillion
Copy link
Owner

Great work, thank you very much.

If I may, in the PR post, could you include an example config on creating a box. So that others can refer to the PR for reference in the future.

@Samillion Samillion changed the title Add transparency options feat: add osc transparency options Apr 7, 2025
@Samillion Samillion linked an issue Apr 7, 2025 that may be closed by this pull request
@Hellboy00000
Copy link
Contributor Author

@Samillion

I added an example of the configuration with a small explanation.

@Samillion
Copy link
Owner

Much appreciated.

@Samillion Samillion merged commit aca1be5 into Samillion:main Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add transparent black box options

2 participants