Option to use the native window title bar

(#1017) Feature Shipped desktop

Thread

Comment by @GH0STP4WZ
RexSystem 1 vote originally by @GH0STP4WZ on GitHub 1 reply
IIRC Discord does not natively offer the window decorations to be toggled, and from my experience, such requires a mod like Shelter, Vencord, Equicord or BetterDiscord. Just a small nitpick about the initial issue, not too big of a deal. I have already locally fixed the issue with a small CSS override, as I use hyprland, and dont really like any window decorations other than an outline on the currently active app, and the titlebar included with a plugin that enables them on hyprland.
/* Remove the electron titlebar and window management buttons */
:root {
    /* Removes the top-margin for the titlebar from the entire app */
    --native-titlebar-height: 0!important;
}
.NativeTitlebar\.module__titlebar___ZWZkOD {
    /* Hides the titlebar */
    display: none!important;
}
image The above is merely a bandaid fix, however. And I believe a native toggle would be the better approach, even if it internally just applies the snippet above; as it would make it more approachable of a solution for users of desktop environments that rely a lot on (the lack of) window decorations, such as Hyprland, i3WM, Sway, and Niri, but also KDE, Cinnamon and Budgie, just to name a few examples.
  • 553446044-50820520-ca67-4dda-af85-7309cc1c3629.png

    553446044-50820520-ca67-4dda-af85-7309cc1c3629.png

    1919×196 | 114 kB

Comment by @DKMellow
RexSystem 1 vote originally by @DKMellow on GitHub
I see, interesting, I am on Linux native app: stable (5b0afb2), 2026-02-21 14:40:38 UTC Electron 39.2.7 Linux 6.19.3-2-cachyos (x64) desktop stable 0.0.8