public static Color textHighlight(int type){

            //if the message is encrypted, compressed or both, add different backgrounds
            switch(type){
                case 1:
                    //compress
                    return new Color(206, 255, 185);
                case 2:
                    //crypt
                    return new Color(255, 252, 130);
                case 3:
                    //compress + crypt
                    return new Color(255, 169, 170);
            }
        return new Color(255, 255, 255);
    }