st: Stop using Clutter cairo helpers

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2808>
This commit is contained in:
Bilal Elmoussaoui
2023-07-18 15:50:48 +02:00
parent ef9113da43
commit 198dde2696
6 changed files with 24 additions and 19 deletions

View File

@ -422,13 +422,13 @@ export const BoxPointer = GObject.registerClass({
const [hasColor, bgColor] =
themeNode.lookup_color('-arrow-background-color', false);
if (hasColor) {
Clutter.cairo_set_source_color(cr, bgColor);
cr.setSourceColor(bgColor);
cr.fillPreserve();
}
if (borderWidth > 0) {
let borderColor = themeNode.get_color('-arrow-border-color');
Clutter.cairo_set_source_color(cr, borderColor);
cr.setSourceColor(borderColor);
cr.setLineWidth(borderWidth);
cr.stroke();
}