lg: Replace remaining Color.init_from_4ub usage

Fixes cd33baff7d285af26475777fab1f59537c517cb5

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3197>
This commit is contained in:
Bilal Elmoussaoui 2024-02-16 23:41:38 +01:00 committed by Marge Bot
parent 3b0e1a6b5a
commit 5ce991749d

View File

@ -539,7 +539,7 @@ class RedBorderEffect extends Clutter.Effect {
const coglContext = framebuffer.get_context();
let color = new Cogl.Color();
color.init_from_4ub(0xff, 0, 0, 0xc4);
color.init_from_4f(1.0, 0.0, 0.0, 196.0 / 255.0);
this._pipeline = Cogl.Pipeline.new(coglContext);
this._pipeline.set_color(color);