KDE contrast


set_region(region: object<wl_region>)
Argument
Type
Description
regionobject<wl_region>allow null
set_contrast(contrast: fixed)
Argument
Type
Description
contrastfixed
set_intensity(intensity: fixed)
Argument
Type
Description
intensityfixed
set_saturation(saturation: fixed)
Argument
Type
Description
saturationfixed
release()
Release the contrast object
set_frost(red: int, green: int, blue: int, alpha: int)
Argument
Type
Description
redint
greenint
blueint
alphaint
Opt into frost effect w/ given colour

enables 'frost' variant of contrast effect.

'frost' is an enhanced version of the contrast effect that uses different colour arithmetic to get backgrounds simultaneously higher in contrast and (apparent) transparency.

r, g, b, a are channels from 0-255, indicating a colour to use in contrast calculation. should be based off of the "main" background colour of the surface.

unset_frost()
Opts out of frost effect

Compositor Support

MutterMutter
8/31/2023
KWinKWin
11/13/2023
SwaySway
1/7/2023
WestonWeston
9/27/2023
MirMir
7/22/2023
gamescopegamescope
12/14/2023
org_kde_kwin_contrast_manager
x
2
x
x
x
x

SPDX-FileCopyrightText: 2015 Martin Gräßlin SPDX-FileCopyrightText: 2015 Marco Martin

SPDX-License-Identifier: LGPL-2.1-or-later