ide: theme: fix theme formats filling

The bug was introduced by the following patch:
  ide: themes: remove General and Syntax categories
ide: theme: support for legacy theme

This patch adds the ability to the theme management to look for a previous
custom theme and if available import it into a new theme called "My old theme".