Forum Discussion

cstone's avatar
8 years ago

How to edit skin properties via the SDK

I am developing our community using the SDK.

 

I notice in Studio, the ability to modify "Max. Avatar width (Message (px))", for example, like this:

 

This seems to result in the image itself being sized this way, rather than being controlled by CSS alone:

 

This means, if I apply CSS to make the image larger, it becomes somewhat blurred, even though the source image is actually larger than 40px x 40px.

 

Is it possible to edit this "Max. avatar width" value through the SDK? The "Skins" folder only contains my custom skin and nothing from the parent "Responsive Peak". Am I looking in the right place?

  • Hello,

     

    You can do this by adding following code to your skin.properties:

    size.pixel.avatar_message_w = your avatar size (int)
    size.pixel.avatar_message_h = your avatar size (int)

     

    Kind regards,

    Bart

  • Hello,

     

    You can do this by adding following code to your skin.properties:

    size.pixel.avatar_message_w = your avatar size (int)
    size.pixel.avatar_message_h = your avatar size (int)

     

    Kind regards,

    Bart