Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Alpha Channel of Background and Foreground over Resource Files #908

Open
1 task done
devsecur opened this issue May 29, 2024 · 3 comments · Fixed by #959
Open
1 task done

Support Alpha Channel of Background and Foreground over Resource Files #908

devsecur opened this issue May 29, 2024 · 3 comments · Fixed by #959
Labels
core Whim enhancement New feature or request

Comments

@devsecur
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Proposal

As a user, I would like to make the Bar background and other properties transparent to increase style and also to protect my OLED monitor from burn-in effects. I use wallpaper engine which animates my background and having a transparent bar would look stunning

Alternatives

No response

Additional context

No response

@devsecur devsecur added the enhancement New feature or request label May 29, 2024
@devsecur devsecur changed the title Support Alpha Channel of Background and Foreground Resource Files Support Alpha Channel of Background and Foreground over Resource Files May 29, 2024
@dalyIsaac dalyIsaac added the core Whim label May 30, 2024
@dalyIsaac
Copy link
Owner

Might be able to take inspiration from WinUIEx: https://dotmorten.github.io/WinUIEx/concepts/CustomBackdrops.html

@devsecur
Copy link
Author

Does this mean, I can just define a Custom Backdrop Type like

public class TransparentBackdrop : CompositionBrushBackdrop
{
    protected override Windows.UI.Composition.CompositionBrush CreateBrush(Windows.UI.Composition.Compositor compositor)
    {
      var brush = compositor.CreateColorBrush(Windows.UI.Color.FromArgb(255,255,0,0));
  }
}


barConfig.Backdrop = new(TransparentBackdrop)

and on Argb I can select Alpha channel as needed? Do I need to Import for CompositionBrushBackdrop?

@dalyIsaac
Copy link
Owner

Sorry, unfortunately not. That was more of a note for myself for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Whim enhancement New feature or request
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants