Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Custom titlebar support #13

Open
ThaUnknown opened this issue Jan 2, 2023 · 1 comment
Open

Custom titlebar support #13

ThaUnknown opened this issue Jan 2, 2023 · 1 comment
Labels
browser Related to browser enhancement New feature or request new api Requested new API

Comments

@ThaUnknown
Copy link

Chrome's window controls overlay defines 4 CSS env variables which are insanely useful for detecting the titlebar size, those are:

  left: env(titlebar-area-x, 0);
  /* Use the environment variable for the top anchoring with a fallback. */
  top: env(titlebar-area-y, 0);
  /* Use the environment variable for setting the width with a fallback. */
  width: env(titlebar-area-width, 100%);
  /* Use the environment variable for setting the height with a fallback. */
  height: env(titlebar-area-height, 33px);

currently gluton doesn't define these, would be cool if it did

@CanadaHonk
Copy link
Contributor

Looks interesting, didn't know that existed for PWAs. Hopefully possible easily via CDP.

@CanadaHonk CanadaHonk added the enhancement New feature or request label Jan 2, 2023
@CanadaHonk CanadaHonk changed the title Define CSS env variables for titlebar Custom titlebar support Jan 2, 2023
@CanadaHonk CanadaHonk added new api Requested new API browser Related to browser labels Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
browser Related to browser enhancement New feature or request new api Requested new API
Projects
None yet
Development

No branches or pull requests

2 participants