jbrowser.ui.frost
Generated from the source code of JBrowser 2.0.3.
Frosted: JBrowser's own translucent look.
Every JBrowser window is fully opaque. Under its content JBrowser paints a frosted picture of the desktop wallpaper: reduced to its colours, softly blurred and tinted dark or light. Windows' own materials (Mica, Acrylic) are not used at all, so nothing Windows draws (or fails to draw) can show through a JBrowser window.
The picture is fitted to the window, not to the screen, so moving a window never repaints it. It is built once per window size and look (tiny wallpaper → saturated and tinted → smoothly enlarged → a whisper of grain against banding) and then painted with plain 1:1 copies, which is as cheap as filling with one colour.
Constants#
| Name | Value |
|---|---|
SRC_W |
64 |
SMOOTH_W |
1024 |
SATURATION |
1.35 |
GRAIN |
0.028 |
CACHE_SIZES |
4 |
CACHE_LOOKS |
2 |
Frost#
class Frost(QObject)source
Frost(parent: QObject | None=None)
The frosted picture behind JBrowser's windows. changed fires when the wallpaper changes.
Signals
| Signal | Arguments |
|---|---|
changed |
() |
Frost.check#
check() -> Nonesource
Windows changed a setting (or JBrowser was activated): pick up a new wallpaper.
Frost.pixmap#
pixmap(size: QSize, dpr: float, look: tuple, overlay: int=0, owner: int=0) -> tuple[QPixmap, bool]source
The picture for a window of size: (pixmap, exact). While a window is being resized it gets the
closest picture already made (stretched) and only its final size is built, a moment later.
Qt overrides: paint
Functions#
frost#
frost() -> Frostsource