These pictures are from a Canadian state funeral that happened this past week.
At the visitation, the widow should be sad of mien, but emphasize her marital status change through her dress, which ought to suggest a need for consolation and...partying?

Men at the funeral are encouraged to indicate, through their tie, whether they thought the ceremony was a business function, a social occasion, a celebration or, if you have a strong aversion to ties, a chance to make a personal statement. If you really don't have a stance on this, then wear something dark and somber.

Sarcasm aside, I don't think there was any disrespect intended by anyone who attended the funeral. I agree that it's the thought that counts, but when one strays from the traditional modes of dress people might wonder what you are thinking.