Closed slaygun closed 9 months ago
hi,
we don't currently have an option for this but you can update _setText()
in extensions.js
manually around row 485 as follows (example here with red font using hex code):
_setText() {
try{
if(this.player == null || undefined)
this.label.set_text("")
else {
this.label.set_text(buildLabel(this.players,this.settings));
this.label.set_style('color: #FF0000');
}
}
catch(err){
log("Mpris Label: " + err);
this.label.set_text("");
}
}
Then logout/ log back in:
omg thank u so much im not well versed with javascript so i was having a pretty hard time
it works!
No problem, it's a good suggestion and I was actually thinking this weekend about an option to change the font.
I'll see if I can integrate an option in the Preferences to allow the user to pick a colour easily.
@slaygun could you please test the solution in #94 ?
@Batwam what is the command to get that branch
Sorry, first git clone the other repo:
git clone https://github.com/Batwam/gnome-mpris-label-batwam
then change to the testing branch by doing git checkout font_colour
or directly git clone -b font_colour https://github.com/Batwam/gnome-mpris-label-batwam
the rest of the installation instructions is the same
yes its working!
ok, that's great. This should allow you to try different colours without having to manually change the code and without having to restart the extension all the time.
Let me see if I can integrate a nice button to select a colour more easily...
@slaygun I have updated the Preferences to include a button to select the colour. Would you be able to download the latest code and try it?
i did and its working :+1:
Ok, that's great to hear.
i'll give it a couple of days to let things settle and merge if all goes well. Let me know if you face any issues. Are you using gnome 45?
Okaaay will do. Yes, I'm using gnome 45
Closing this as the requested feature has now been implemented in #94
hey can u lmk how i could change the color of the label text which gets displayed