quick-toggle: Make the subtitle the a11y description of the toggle

By doing that, more info is read by default, like the
connected bluetooth device and likely more.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3484>
This commit is contained in:
Lukáš Tyrychtr 2024-09-24 12:08:47 +02:00
parent 58f8987c07
commit 9fc5396742

View File

@ -104,6 +104,7 @@ export const QuickToggle = GObject.registerClass({
x_align: Clutter.ActorAlign.START,
x_expand: true,
});
this.get_accessible().add_relationship(Atk.RelationType.DESCRIBED_BY, this._subtitle.get_accessible());
const titleBox = new St.BoxLayout({
y_align: Clutter.ActorAlign.CENTER,