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:

committed by
Florian Müllner

parent
92063e5e46
commit
e75839bd5d
@ -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);
|
||||
|
Reference in New Issue
Block a user