Hopefully this code will work, paste it into the footer section of the custom code page in Project Settings
<style>
.colorswap { border-color: black; !important }
</style>
<script>
$('.icon-line').click(function(){
$(this).toggleClass('colorswap');
});
</script>
Haven’t tested this, but it should work, I think