Author Topic: Hide last.fm scrobble button - fluenx skin  (Read 152 times)

coldhanded

  • Newbie
  • *
  • Posts: 10
Continuing this discussion here as to not hijack the original skin thread.

As the title states I am trying to hide the last.fm button on the fluenx skin by diego. I have managed to hide the button with the flag:
Code
<element id="HideScrobbleButtonSupported">true</element>
However this causes the wavebar to overlap with the right buttons as shown here:

What I have tried so far

Replacing the tracklove element with:
Code
<element id="TrackLove" parent="TrackInfoPanel">
  <left relativeTo="EqualiserButton.Left" offset="-73" />
Copying the entirety of the skin.xml to the skin_wavebar.xml

Copying the entirety of the skin_wavebar.xml to the skin.xml

All of which either had no effect on the alignment or gave an error upon compiling with SkinCreator. Any help is appreciated links to the skin files are above.

EDIT:

Solved see Reply #2
Last Edit: July 29, 2022, 07:49:45 PM by coldhanded

hiccup

  • Hero Member
  • *****
  • Posts: 6080
I'm sorry coldhanded, I now see that I overlooked some things in my previous instructions. So that's probably why things didn't work for you.

Here are new instructions that should work for all cases.

1. in Fluenx-BASE.xml
    Add these two lines in the <settings> category:

Code
<element id="HideScrobbleButtonSupported">true</element>
<element id="HideScrobbleButtonOffset">0</element>
(it enables the user to hide the Scrobble button)


2. in skin.xml :
    Find the element for TrackLove, and replace the line that positions it horizontally to this:

Code
<element id="TrackLove" parent="TrackInfoPanel">
<left relativeTo="EqualiserButton.Left" offset="-73" />
(it makes it that the 'Love' button gets anchored to the EQ button instead of to the right side of the panel, making its positioning dynamic)


3. also in skin.xml
    At the bottom of the xml, replace the replacement element for TrackLove with:

Code
<replacementElement id="TrackLove" replaceWith="EqualiserButton.Right" offsetAdjustment="-36" />
(it makes it that when the 'Love' button is disabled, other elements get anchored to the EQ button instead)


4. There is no need to change anything in the wavebar.xml
(because there is no element in it that affects or overrules the above changes)


Let me know if this works as expected for you?
 
Last Edit: July 28, 2022, 04:14:03 PM by hiccup

coldhanded

  • Newbie
  • *
  • Posts: 10
Thank you for all of your help hiccup these instructions worked perfectly!

My issue now is there is a gap in the space where the button was. I have tried adjusting the <right relativeTo="TrackRating.Left" offset="-6" /> line in the wavebar section of the skin_wavebar.xml however this only moves the wavebar itself (no changes to progress bar) and ends up overlapping with the timestamp as shown here:


EDIT:
Did some digging in the skin.xml and skin_wavebar.xml and found the offsets that needed adjusting.





The edited skin can be downloaded here
Last Edit: July 28, 2022, 10:08:09 PM by coldhanded

hiccup

  • Hero Member
  • *****
  • Posts: 6080
The edited skin can be downloaded here
That one gives me this:


I think it can best be done using the offset in the main skin.xml
(I completely forgot and overlooked that earlier)

A new plan:

In Fluenx-BASE.xml
Code
<element id="HideScrobbleButtonSupported">true</element>
  <element id="HideScrobbleButtonOffset">-223</element>
 
In skin.xml
Code
<element id="TrackLove" parent="TrackInfoPanel">
  <left relativeTo="LastFmButton.Right" offset="-68" />
   and at the bottom
Code
<replacementElement id="TrackLove" replaceWith="LastFmButton.Right" offsetAdjustment="0" />
(as it was from the beginning)

Leave the wavebar.xml original

coldhanded

  • Newbie
  • *
  • Posts: 10
The edited skin can be downloaded here
That one gives me this:


Not sure what's going on there are you sure that is the correct skin? The screenshots above the download link are what it looks like for me.

hiccup

  • Hero Member
  • *****
  • Posts: 6080
Not sure what's going on there are you sure that is the correct skin? The screenshots above the download link are what it looks like for me.
What does it look like for you when you don't have the 'Love' and/or the LastFM button hidden?

coldhanded

  • Newbie
  • *
  • Posts: 10
Oh right haha that would make sense I always keep those turned off so that is not an issue for me however if you are so inclined please feel free to post a version with support for those buttons, I am sure somebody would appreciate it.