mpris: Switch text in title and body
Most media players have a media player that shows the title of a song and artists in the song. In those media players the title is highlighted (bold text) and the list of artists is under the title. Shell does the exact opposite in the player in the notification area. Example media players: Spotify, Rhythmbox, GNOME Music https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1480
This commit is contained in:
parent
012af56b37
commit
d318bf539d
@ -66,8 +66,8 @@ class MediaMessage extends MessageList.Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_update() {
|
_update() {
|
||||||
this.setTitle(this._player.trackArtists.join(', '));
|
this.setTitle(this._player.trackTitle);
|
||||||
this.setBody(this._player.trackTitle);
|
this.setBody(this._player.trackArtists.join(', '));
|
||||||
|
|
||||||
if (this._player.trackCoverUrl) {
|
if (this._player.trackCoverUrl) {
|
||||||
let file = Gio.File.new_for_uri(this._player.trackCoverUrl);
|
let file = Gio.File.new_for_uri(this._player.trackCoverUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user