When a palette of QT is customized (through a KDE theme for example), python shell is not readable on a dark background. This MR fix this issue using the default colors when possible.