INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Tab Padlock colour  (Read 554 times)

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Tab Padlock colour
« on: June 23, 2023, 07:54:34 am »

Is it possible to change the colour of the tab lock padlock?  It clashes with my view skin...

Logged

markf2748

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 819
Re: Tab Padlock colour
« Reply #1 on: June 24, 2023, 01:39:04 pm »

Is it possible to change the colour of the tab lock padlock?  It clashes with my view skin...
You cannot easily change just the padlock colour AFAIK, but you can customize the entire Lock icon (including colour) by changing the skin's SmallIcons.png Lock entry or changing that file in the folder .../Data/Custom Art.

Sounds unfamilar?  Then to pursue this you'll have to learn a little about MC skinning.  A good starting point is the wiki tutorial:
https://wiki.jriver.com/index.php/Standard_View_Skinning_Tutorial

There are many Interact forum posts on MC Standard View skinning; here is the most recent re the Lock icon in particular:
https://yabb.jriver.com/interact/index.php/topic,135855.0.html

The idea of making easily selected icon sets available with different color themes has been mentioned in the past, but is not implemented:
https://yabb.jriver.com/interact/index.php/topic,133908.msg929804.html#msg929804
https://yabb.jriver.com/interact/index.php/topic,133908.msg934286.html#msg934286
That same MC 29 thread (sticky in MC 30) contains detailed instructions, references, and a variety of "large" icons for deployment in the folder Media Center xx/Custom Art as well as "small" icons for incorporation into a SmallIcons.png file.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Tab Padlock colour
« Reply #2 on: June 25, 2023, 02:27:50 am »

Thanks.  Updated the colour.  Dropped into ../Data/Custom Art folder.  No change.

If I replace the icons in the ../Data/Default Art folder the colour changes come through.

Am I missing a step?
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Tab Padlock colour
« Reply #3 on: June 25, 2023, 02:41:23 am »

When you save a smallicons file into "...\Custom Art" you also need a corresponding "images.xml" file in a "Custom Resources" folder.

MC merges the two (custom + default), so, the theory is, that you only need the custom lock icon image in the 'Custom' folder, along with the 'images.xml' to reference it in the 'Custom Resources' folder.

The benfit here is, that if, in the future, there's a change to the default icons, you won't miss out just because you copied the entire smallicons file into the 'custom' folder.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Tab Padlock colour
« Reply #4 on: June 25, 2023, 02:59:05 am »

To demonstrate...

The attached contains a magenta 'lock' and an xml file to reference it. Place the png in the custom art folder and the xml in the custom resources folder. Restart MC.

Hopefully that's enough to get you up and running.

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Tab Padlock colour
« Reply #5 on: June 25, 2023, 03:16:56 am »

Right.  It was the <lock> entry that I needed.  I copied this

<Lock>145</Lock>

from the MC entry into my custom entry and it now works will the full smallicons.png

But I can see from your example how to simplify further, so thanks for that.
Logged
Pages: [1]   Go Up