electron-tabs icon indicating copy to clipboard operation
electron-tabs copied to clipboard

How to set the css style of the background of the tab bar?

Open spherical-stone opened this issue 1 year ago • 1 comments

I want the empty space of the tab bar to be draggable (so that I can have some space to drag the window around). I want to set the css -webkit-app-region: drag; for the tab bar. However, I do not know the class name of the tab bar.

Could anyone explain how to do that?

spherical-stone avatar Dec 05 '23 18:12 spherical-stone

image

The class name is .tabs, but it will focus the whole bar including its children (the tabs), so I guess you won't be able to drag tabs anymore. I think you will need to find a workaround.

Also please be aware of this explanation about electron-tabs styles: https://github.com/brrd/electron-tabs#custom-styles I have no idea about how -webkit-app-region: drag; behave inside web components.

brrd avatar Dec 06 '23 09:12 brrd