Theming¶
Theme controls the light/dark appearance, orthogonal to skins (design language).
Switching theme¶
from prismqml import setTheme, Theme
setTheme(Theme.LIGHT) # light
setTheme(Theme.DARK) # dark
setTheme(Theme.AUTO) # follow system
Custom accent color¶
from prismqml import setAccentColor, getAccentColor
setAccentColor("#0078d4")
print(getAccentColor()) # "#0078d4"
Accent colors under non-Fluent skins
Neobrutalism, Vintage Ticket, and Neumorphism each have their own primary
color system. accentColor resolves to the active skin's primary color, so
setAccentColor custom values mainly apply to the Fluent skin.