KitaConfig::setUseStyleSheet( config->readBoolEntry( "UseStyleSheet", KitaConfig::defaultUseStyleSheet() ) );
{
+ // MIME list
QStringList mimeList = config->readListEntry( "PartMimeList" );
if ( ! mimeList.isEmpty() ) {
KitaConfig::setPartMimeList( mimeList );
config->setGroup( "Color" );
- QColor threadColor = config->readColorEntry( "Thread" );
- if ( threadColor.isValid() ) {
- KitaConfig::setThreadColor( threadColor );
- } else {
- KitaConfig::setThreadColor( KitaConfig::defaultThreadColor() );
+ {
+ // Thread text color
+ QColor threadColor = config->readColorEntry( "Thread" );
+ if ( threadColor.isValid() ) {
+ KitaConfig::setThreadColor( threadColor );
+ } else {
+ KitaConfig::setThreadColor( KitaConfig::defaultThreadColor() );
+ }
}
- QColor threadBackgroundColor = config->readColorEntry( "ThreadBackground" );
- if ( threadBackgroundColor.isValid() ) {
- KitaConfig::setThreadBackgroundColor( threadBackgroundColor );
- } else {
- KitaConfig::setThreadBackgroundColor( KitaConfig::defaultThreadBackgroundColor() );
+ {
+ // Thread background color
+ QColor threadBackgroundColor = config->readColorEntry( "ThreadBackground" );
+ if ( threadBackgroundColor.isValid() ) {
+ KitaConfig::setThreadBackgroundColor( threadBackgroundColor );
+ } else {
+ KitaConfig::setThreadBackgroundColor( KitaConfig::defaultThreadBackgroundColor() );
+ }
}
- QColor popupColor = config->readColorEntry( "Popup" );
- if ( popupColor.isValid() ) {
- KitaConfig::setPopupColor( popupColor );
- } else {
- KitaConfig::setPopupColor( KitaConfig::defaultPopupColor() );
+ {
+ // Popup text color
+ QColor popupColor = config->readColorEntry( "Popup" );
+ if ( popupColor.isValid() ) {
+ KitaConfig::setPopupColor( popupColor );
+ } else {
+ KitaConfig::setPopupColor( KitaConfig::defaultPopupColor() );
+ }
}
- QColor popupBackgroundColor = config->readColorEntry( "PopupBackground" );
- if ( popupBackgroundColor.isValid() ) {
- KitaConfig::setPopupBackgroundColor( popupBackgroundColor );
- } else {
- KitaConfig::setPopupBackgroundColor( KitaConfig::defaultPopupBackgroundColor() );
+ {
+ // Popup background color
+ QColor popupBackgroundColor = config->readColorEntry( "PopupBackground" );
+ if ( popupBackgroundColor.isValid() ) {
+ KitaConfig::setPopupBackgroundColor( popupBackgroundColor );
+ } else {
+ KitaConfig::setPopupBackgroundColor( KitaConfig::defaultPopupBackgroundColor() );
+ }
}
config->setGroup( "Account" );