Bug 118397

Summary: Widgets don't change with kde colors
Product: [Applications] konversation Reporter: Franklin Belew <frbsbn>
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Franklin Belew 2005-12-15 19:50:14 UTC
Version:           Konversation 0.18 #3016 (Using KDE 3.5.0 Level "a" SUSE 10.0 UNSUPPORTED) (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs
OS:                Linux

To see behaviour:

1> Run konversation
2> open KDE Control Center
3> Under Appearance & Themes -> Colors, Select a scheme different than what you have.
4> Look at konversation scrollbars and borders, they are the original colors.
Comment 1 Eike Hein 2006-01-05 04:25:34 UTC
SVN commit 494445 by hein:

Correctly update widget colors when KDE tells us to.
BUG:118397


 M  +4 -0      channel.cpp  
 M  +2 -0      query.cpp  
 M  +2 -1      statuspanel.cpp  


--- trunk/extragear/network/konversation/src/channel.cpp #494444:494445
@@ -1850,10 +1850,12 @@
         abg=abgCache;
     }
 
+    channelInput->unsetPalette();
     channelInput->setPaletteForegroundColor(fg);
     channelInput->setPaletteBackgroundColor(bg);
     channelInput->setFont(Preferences::textFont());
 
+    limit->unsetPalette();
     limit->setPaletteForegroundColor(fg);
     limit->setPaletteBackgroundColor(bg);
     limit->setFont(Preferences::textFont());
@@ -1862,6 +1864,7 @@
     //topicLine->lineEdit()->setPaletteBackgroundColor(bg);
     topicLine->setFont(Preferences::textFont());
 
+    getTextView()->unsetPalette();
     getTextView()->setFont(Preferences::textFont());
 
     if(Preferences::showBackgroundImage())
@@ -1877,6 +1880,7 @@
 
     nicknameListView->resort();
 
+    nicknameListView->unsetPalette();
     nicknameListView->setPaletteForegroundColor(fg);
     nicknameListView->setPaletteBackgroundColor(bg);
     nicknameListView->setAlternateBackground(abg);
--- trunk/extragear/network/konversation/src/query.cpp #494444:494445
@@ -216,6 +216,7 @@
         bg=colorGroup().base();
     }
 
+    queryInput->unsetPalette();
     queryInput->setPaletteForegroundColor(fg);
     queryInput->setPaletteBackgroundColor(bg);
     queryInput->setFont(Preferences::textFont());
@@ -224,6 +225,7 @@
     //  queryHostmask->setPaletteBackgroundColor(bg);
     //  queryHostmask->setFont(Preferences::textFont());
 
+    getTextView()->unsetPalette();
     getTextView()->setFont(Preferences::textFont());
 
     if(Preferences::showBackgroundImage())
--- trunk/extragear/network/konversation/src/statuspanel.cpp #494444:494445
@@ -162,11 +162,12 @@
         bg=colorGroup().base();
     }
 
-
+    statusInput->unsetPalette();
     statusInput->setPaletteForegroundColor(fg);
     statusInput->setPaletteBackgroundColor(bg);
     statusInput->setFont(Preferences::textFont());
 
+    getTextView()->unsetPalette();
     getTextView()->setFont(Preferences::textFont());
 
     if(Preferences::showBackgroundImage())