Fix QColor import
Use a grid layout for the detail dialog
Rerender the detail dialog when the data changes