Last Updated: February 25, 2016
·
1.448K
· dive

Fix the size of avatars in the Skype conversation screen for Retina Macbook Pro screen

<a href="https://gist.github.com/3259488">GitHub gist</a>

#!/bin/bash

# by Artyom Loenko aka dive (artyom.loenko@mac.com)

# Usage:
#   - download this script
#   - open Terminal.app
#   - goto to Folder where script downloaded
#   - run 'chmod +x fix_skype_conversation_icons_retina.sh'
#   - then run './fix_skype_conversation_icons_retina.sh'
#   - restart Skype and select PanamericanaRetina Style from Skype Settings on Messaging tab

if [ ! -d "${HOME}/Library/Application Support/Skype/ChatStyles" ]
then
    echo "+ create ${HOME}/Library/Application Support/Skype/ChatStyles folder"
    mkdir "${HOME}/Library/Application Support/Skype/ChatStyles"
fi

echo "+ copy Panamericana.SkypeChatStyle to Application Support"
cp -R \
    /Applications/Skype.app/Contents/Resources/ChatStyles/Panamericana.SkypeChatStyle \
    ~/Library/Application\ Support/Skype/ChatStyles/PanamericanaRetina.SkypeChatStyle

echo "+ rename Panamericana to PanamericanaRetina"
defaults write \
     ~/Library/Application\ Support/Skype/ChatStyles/PanamericanaRetina.SkypeChatStyle/Contents/Info.plist CFBundleIdentifier com.skype.skype.panamericanaretina.style

echo "+ fix conversation avatars size for Retina screen"

echo "<div class=\"item message in %messageStatus%\" id=\"%itemId%\"> \
    <div class=\"container\"> \
        <div class=\"head\"> \
            <span class=\"sender\"><span class=\"profile\" \ data-sender=\"%senderScreenName%\"></span><img src=\"%userIconPath%\" class=\"avatar\" alt=\"\" data-sender=\"%senderScreenName%\" width=\"35\" /><a href=\"%senderLinkURL%\">%sender%</a></span> \
            <span class=\"time\">%time%</span> \
            <button class=\"actions\" title=\"%tooltipActions%\">    </button> \
        </div> \
        <div class=\"body\">%message%</div> \
    </div> \
</div>" > ~/Library/Application\     Support/Skype/ChatStyles/PanamericanaRetina.SkypeChatStyle/Contents/Resources/templates/InMessage.html

echo "+ Done. PLEASE, RESTART YOUR SKYPE AND SELECT PanamericanaRetina FROM 'STYLE' -> 'MESSAGING' SETTINGS OF SKYPE"