Style is polished: intermediate commit
Move some logic from layerspalette into layerpanel