Let's assume we have a program A that is shareware and closed source. Albeit it being the most popular of its kind, it suffers from a lack of updates and some annoying, yet long-outstanding bugs.
This prompts developer M to start an open source clone B of said program A. To make switching from A to B as easy as possible, M is going to make B's program dialogs (menus, settings...) resemble A's as much as possible.
The question that arises now is whether this is a legal undertaking or not. M of course won't copy any code or another resources from A, but he is going to model the GUI to look and feel very similar (at least to a certain point, from where on the project is going to evolve on its own path).
I searched the net for examples, but didn't find anything of substance. Any ideas? Thanks!