neutralinojs / roadmap

The roadmap of Neutralinojs
MIT License
61 stars 2 forks source link

When will transparency come out. #1

Open Hunlongyu opened 3 years ago

Hunlongyu commented 3 years ago

Transparency level setting opacity: number.

danidre14 commented 2 years ago

It was planned for 2021 and currently is now planned for 2022, but honestly, it might not come about in the near future. This is because Neu heavily relies on webview (a cross platform library to running...a webview) and if you check their github, since 2017 they have been trying to get transparent backgrounds but have been unable to on all platforms and thus have not implemented it fully yet. https://github.com/webview/webview/issues/25 (its left as "help wanted")

prashantkr006 commented 2 years ago

hello @danidre14 I was looking for participating in GSOC 2022 and I saw this project and I found it interesting and somehow similar to the tech stack I work on, in GSOC readme I saw this project idea and the attached link dropped me here to this issue, I would like to work on this opacity feature.

danidre14 commented 2 years ago

Hi @prashantkr006

If you haven't already, join the discord and get acquainted with everyone and you can further discuss your options there!

coldino commented 2 years ago

On Windows this is certainly already possible when working directly with WebView2. An old test project I made to overlay Twitch chat over games has a very simple WPF wrapper and works well:

<Window x:Class="BrowserOverlay.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:wpf="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
        AllowsTransparency="True" Background="Transparent"
        Topmost="True" WindowStyle="None" Title="MainWindow" Width="600" Height="480">
    <Grid>
        <wpf:WebView2 x:Name="webView" DefaultBackgroundColor="Transparent"/>
    </Grid>
</Window>

Sure, this is WPF, but it shows it is very much achievable.

Unfortunately I have no knowledge about the viability on Linux or Mac.

riffly commented 1 year ago

I would like to try,, please assign me