cleanup: Adapt to removed ClutterColor
It was replaced by CoglColor Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3142>
This commit is contained in:

committed by
Marge Bot

parent
55027bb084
commit
7f0b1e98cf
@ -1,6 +1,7 @@
|
||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
import Clutter from 'gi://Clutter';
|
||||
import Cogl from 'gi://Cogl';
|
||||
import Gio from 'gi://Gio';
|
||||
import GLib from 'gi://GLib';
|
||||
import GObject from 'gi://GObject';
|
||||
@ -149,7 +150,7 @@ class WindowDimmer extends Clutter.BrightnessContrastEffect {
|
||||
|
||||
setDimmed(dimmed, animate) {
|
||||
let val = 127 * (1 + (dimmed ? 1 : 0) * DIM_BRIGHTNESS);
|
||||
const color = new Clutter.Color({
|
||||
const color = new Cogl.Color({
|
||||
red: val,
|
||||
green: val,
|
||||
blue: val,
|
||||
|
Reference in New Issue
Block a user