JBrowser Source Docs

jbrowser.ui.chrome_window

Generated from the source code of JBrowser 1.5.4.

jbrowser/ui/chrome_window.py · 166 lines

Translucent tool windows (Settings, History, Downloads, ...).

They use the same technique as the main window: the whole window is client area, the Windows 11 system backdrop (Acrylic / Mica) shows through transparent pixels, and a slim custom caption provides drag, Snap Layouts and minimise / maximise / close.

Constants#

Name Value
CAPTION_H 40

ChromeWindow#

class ChromeWindow(QWidget)source
ChromeWindow(title: str, parent: QWidget | None=None, size: tuple[int, int]=(900, 620), nav_width: int=0)

Top-level window with a system backdrop. Subclasses populate self.root.

ChromeWindow.apply_backdrop#

apply_backdrop() -> Nonesource

Qt overrides: nativeEvent, showEvent, event, changeEvent, keyPressEvent, paintEvent