suggests that
even great pleasure may contain an element of sorrow, worry or disappointment. Alloy is used figuratively for something that reduces purity.
Imagine a case where there is no joy without consequences or a price to pay for it; there is a trace of trouble or difficulty in every pleasure.; then “No joy without alloy” fits well.