socket icon indicating copy to clipboard operation
socket copied to clipboard

Ability to fully customize window titlebar section (called "frameless window" feature by some frameworks)

Open jaymakes11 opened this issue 2 years ago • 2 comments

Relevant docs on this with alternative frameworks:

Tauri: https://tauri.app/v1/guides/features/window-customization/#creating-a-custom-titlebar Electron: https://www.electronjs.org/docs/latest/tutorial/window-customization

Features that would be great with this:

  • keeping the native window controls
  • removing the native window controls
  • setting a section of the window the be the window's "drag region" (click and drag on it to move the window) (e.g. via an html data attribute such as window-drag-region)

Example of what this would enable (from Obsidian, which is built on Electron):

CleanShot 2023-09-08 at 12 58 10@2x

jaymakes11 avatar Sep 08 '23 10:09 jaymakes11

Any chance the priority of this could be bumped? This is pretty much the only thing preventing me from choosing SSC for an upcoming project.

jaymakes11 avatar Feb 24 '24 03:02 jaymakes11

FWIW in Tauri I remember hitting this issue and maybe some other quirks with the window buttons that were ultimately super frustrating. It was one of the things that contributed for me to consider alternatives (ultimately helping me find SS). When seeing that it was possible to achieve exactly the positioning and such that I was needing in Electron it was a breath of fresh air.

So if the implementation here in SS could be sure to avoid this and other quirks that'd be sweet (just sayin). It'd be yet another thing to help it stand out ("look ma, SS can do this just as good as Electron!").

jaymakes11 avatar Mar 02 '24 01:03 jaymakes11