JBrowser Source Docs

jbrowser.ui.theme

Generated from the source code of JBrowser 1.5.4.

jbrowser/ui/theme.py · 343 lines

Theme engine: dark/light palettes with alpha-layered surfaces over Mica / Acrylic.

Constants#

Name Value
UI_FONT 'Segoe UI'
FALLBACK_FONT 'Segoe UI'
DARK {'window': '#1b1b1f', 'text': '#f2f2f5', 'text2': 'rgba(255,255,255,0.66)', 'text3': 'r…
LIGHT {'window': '#f3f3f3', 'text': '#1a1a1d', 'text2': 'rgba(0,0,0,0.62)', 'text3': 'rgba(0,…
TINTS {'rose': ('Rose', '#e8577a'), 'coral': ('Coral', '#ff7a59'), 'amber': ('Amber', '#f0a83…

Theme#

class Theme(QObject)source
Theme(settings: Settings, parent: QObject | None=None)

Signals

Signal Arguments
changed ()

Theme.set_incognito#

set_incognito(on: bool) -> Nonesource

The active space is incognito: switch to the black look (and back).

Theme.refresh#

refresh() -> Nonesource

Theme.c#

c(token: str) -> QColorsource

Theme.accent_text#

accent_text() -> QColorsource

Theme.accent_alpha#

accent_alpha(alpha: float) -> QColorsource

Theme.card_outline#

card_outline(alpha: float=0.9) -> QColorsource

Outline of the active card: a washed (paler, slightly see-through) version of the colour tint, or grey with No colour and in incognito spaces.

Theme.backdrop_wash#

backdrop_wash() -> QColor | Nonesource

Colour laid over the Acrylic / Mica backdrop of the main window: the tint, black for incognito, or None for the plain material.

Theme.surface#

surface(token: str) -> QColorsource

Surface color honoring the solid (no Mica) material.

Theme.font_family#

font_family() -> strsource

Theme.apply#

apply() -> Nonesource

Theme.stylesheet#

stylesheet() -> strsource

Functions#

mix#

mix(base: QColor, other: QColor, amount: float) -> QColorsource

base moved amount (0…1) of the way towards other; keeps base's alpha.

parse_color#

parse_color(value: str) -> QColorsource

theme#

theme() -> Themesource