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:
Bilal Elmoussaoui
2024-01-24 17:49:51 +01:00
committed by Marge Bot
parent 55027bb084
commit 7f0b1e98cf
25 changed files with 136 additions and 132 deletions

View File

@ -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,