To me, "that's decent of you" doesn't sound very friendly. I would say that, for example, if someone did what society expects of them in a given situation. It could also be used ironically, so be careful. "That's nice of you" is a safer expression, which expresses that someone has done something, well yes, nice!