config->setGroup( "Global" );
config->writeEntry( "Font", KitaConfig::font() );
config->writeEntry( "ThreadFont", KitaConfig::threadFont() );
+
+ config->setGroup( "Color" );
+ config->writeEntry( "Popup", KitaConfig::popupColor() );
+ config->writeEntry( "PopupBackground", KitaConfig::popupBackgroundColor() );
}
void KitaMainWindow::saveProperties( KConfig* config )
KitaConfig::setThreadFont( config->readFontEntry( "ThreadFont" ) );
setFont( KitaConfig::font() );
+
+ config->setGroup( "Color" );
+
+ QColor popupColor = config->readColorEntry( "Popup" );
+ if ( popupColor.isValid() ) {
+ KitaConfig::setPopupColor( popupColor );
+ }
+
+ QColor popupBackgroundColor = config->readColorEntry( "PopupBackground" );
+ if ( popupColor.isValid() ) {
+ KitaConfig::setPopupBackgroundColor( popupBackgroundColor );
+ }
}
void KitaMainWindow::readProperties( KConfig* config )
colorList->insertItem( backPixmap, "background" );*/
QPixmap popupTextPixmap( 30, 10 );
- popupTextPixmap.fill( Qt::black );
+ popupTextPixmap.fill( KitaConfig::popupColor() );
colorList->insertItem( popupTextPixmap, "popup text" );
QPixmap popupBackPixmap( 30, 10 );
- popupBackPixmap.fill( Qt::yellow );
+ popupBackPixmap.fill( KitaConfig::popupBackgroundColor() );
colorList->insertItem( popupBackPixmap, "popup background" );
connect( changeButton, SIGNAL( clicked() ),