summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kstars/kstars/kspopupmenu.cpp4
-rw-r--r--kstars/kstars/kstars.cpp8
-rw-r--r--kstars/kstars/kstarssplash.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/kstars/kstars/kspopupmenu.cpp b/kstars/kstars/kspopupmenu.cpp
index 80125fbe..63858a69 100644
--- a/kstars/kstars/kspopupmenu.cpp
+++ b/kstars/kstars/kspopupmenu.cpp
@@ -239,8 +239,8 @@ void KSPopupMenu::initPopupMenu( SkyObject *obj, TQString s1, TQString s2, TQStr
pmTitle = new TQLabel( s1, this );
pmTitle->setAlignment( AlignCenter );
TQPalette pal( pmTitle->palette() );
- pal.setColor( TQPalette::Normal, TQColorGroup::Background, pal.color( TQPalette::Normal, TQColorGroup::Base ) );
- pal.setColor( TQPalette::Normal, TQColorGroup::Foreground, pal.color( TQPalette::Normal, TQColorGroup::Text ) );
+ pal.setColor( TQPalette::Active, TQColorGroup::Background, pal.color( TQPalette::Active, TQColorGroup::Base ) );
+ pal.setColor( TQPalette::Active, TQColorGroup::Foreground, pal.color( TQPalette::Active, TQColorGroup::Text ) );
pmTitle->setPalette( pal );
insertItem( pmTitle );
diff --git a/kstars/kstars/kstars.cpp b/kstars/kstars/kstars.cpp
index e75199d4..a637a1b7 100644
--- a/kstars/kstars/kstars.cpp
+++ b/kstars/kstars/kstars.cpp
@@ -81,10 +81,10 @@ KStars::KStars( bool doSplash, bool clockrun, const TQString &startdate ) :
//set up Dark color scheme for application windows
DarkPalette = TQPalette(TQColor("red4"), TQColor("DarkRed"));
- DarkPalette.setColor( TQPalette::Normal, TQColorGroup::Base, TQColor( "black" ) );
- DarkPalette.setColor( TQPalette::Normal, TQColorGroup::Text, TQColor( "red2" ) );
- DarkPalette.setColor( TQPalette::Normal, TQColorGroup::Highlight, TQColor( "red2" ) );
- DarkPalette.setColor( TQPalette::Normal, TQColorGroup::HighlightedText, TQColor( "black" ) );
+ DarkPalette.setColor( TQPalette::Active, TQColorGroup::Base, TQColor( "black" ) );
+ DarkPalette.setColor( TQPalette::Active, TQColorGroup::Text, TQColor( "red2" ) );
+ DarkPalette.setColor( TQPalette::Active, TQColorGroup::Highlight, TQColor( "red2" ) );
+ DarkPalette.setColor( TQPalette::Active, TQColorGroup::HighlightedText, TQColor( "black" ) );
//store original color scheme
OriginalPalette = TQApplication::palette();
diff --git a/kstars/kstars/kstarssplash.cpp b/kstars/kstars/kstarssplash.cpp
index 4867c0fd..6c0414dd 100644
--- a/kstars/kstars/kstarssplash.cpp
+++ b/kstars/kstars/kstarssplash.cpp
@@ -54,9 +54,9 @@ KStarsSplash::KStarsSplash( TQWidget *parent, const char* name )
//initialize the "Welcome to KStars message label
label = new TQLabel( page, "label1" );
TQPalette pal( label->palette() );
- pal.setColor( TQPalette::Normal, TQColorGroup::Background, TQColor( "Black" ) );
+ pal.setColor( TQPalette::Active, TQColorGroup::Background, TQColor( "Black" ) );
pal.setColor( TQPalette::Inactive, TQColorGroup::Background, TQColor( "Black" ) );
- pal.setColor( TQPalette::Normal, TQColorGroup::Foreground, TQColor( "White" ) );
+ pal.setColor( TQPalette::Active, TQColorGroup::Foreground, TQColor( "White" ) );
pal.setColor( TQPalette::Inactive, TQColorGroup::Foreground, TQColor( "White" ) );
label->setPalette( pal );
label->setAlignment( AlignHCenter );