Fixed theme bug. 

When double clicking the background always was white with black text regardless what the $background and $code_plain was set to.