checkBox: Reimplement styles in CSS

Stop using SVG assets other than the actual check icon. This will help
making it recolorable.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2717>
This commit is contained in:
Alice Mikhaylenko
2023-03-23 02:25:40 +04:00
committed by Florian Müllner
parent 92063e5e46
commit e75839bd5d
11 changed files with 49 additions and 452 deletions

View File

@ -23,6 +23,11 @@ class CheckBox extends St.Button {
this._box = new St.Bin({y_align: Clutter.ActorAlign.START});
container.add_child(this._box);
this._check = new St.Icon({
icon_name: 'check-symbolic',
});
this._box.set_child(this._check);
this._label = new St.Label({y_align: Clutter.ActorAlign.CENTER});
this._label.clutter_text.set_line_wrap(true);
this._label.clutter_text.set_ellipsize(Pango.EllipsizeMode.NONE);