Replace color '#define' strings with actual values

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 17a8fd0ec2)
pull/271/head
Michele Calgaro 1 year ago
parent 89c8032171
commit cf7f8e74af
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -2441,13 +2441,13 @@ TQPalette TDEApplication::createApplicationPalette( TDEConfig *config, int contr
TQColor trinity4VisitedLink( 82, 24, 139 );
TQColor background = config->readColorEntry( "background", &trinity4Background );
TQColor foreground = config->readColorEntry( "foreground", tqblackptr );
TQColor foreground = config->readColorEntry( "foreground", &TQt::black );
TQColor button = config->readColorEntry( "buttonBackground", &trinity4Button );
TQColor buttonText = config->readColorEntry( "buttonForeground", tqblackptr );
TQColor buttonText = config->readColorEntry( "buttonForeground", &TQt::black );
TQColor highlight = config->readColorEntry( "selectBackground", &trinity4Blue );
TQColor highlightedText = config->readColorEntry( "selectForeground", tqwhiteptr );
TQColor base = config->readColorEntry( "windowBackground", tqwhiteptr );
TQColor baseText = config->readColorEntry( "windowForeground", tqblackptr );
TQColor highlightedText = config->readColorEntry( "selectForeground", &TQt::white );
TQColor base = config->readColorEntry( "windowBackground", &TQt::white );
TQColor baseText = config->readColorEntry( "windowForeground", &TQt::black );
TQColor link = config->readColorEntry( "linkColor", &trinity4Link );
TQColor visitedLink = config->readColorEntry( "visitedLinkColor", &trinity4VisitedLink );

@ -356,7 +356,7 @@ TQColor TDEGlobalSettings::activeTextColor()
return qt_colorref2qrgb(GetSysColor(COLOR_CAPTIONTEXT));
#else
TDEConfigGroup g( TDEGlobal::config(), "WM" );
return g.readColorEntry( "activeForeground", tqwhiteptr );
return g.readColorEntry( "activeForeground", &TQt::white );
#endif
}
@ -377,7 +377,7 @@ TQColor TDEGlobalSettings::buttonBackground()
TQColor TDEGlobalSettings::buttonTextColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
return g.readColorEntry( "buttonForeground", tqblackptr );
return g.readColorEntry( "buttonForeground", &TQt::black );
}
// IMPORTANT:
@ -386,7 +386,7 @@ TQColor TDEGlobalSettings::buttonTextColor()
TQColor TDEGlobalSettings::baseColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
return g.readColorEntry( "windowBackground", tqwhiteptr );
return g.readColorEntry( "windowBackground", &TQt::white );
}
// IMPORTANT:
@ -395,7 +395,7 @@ TQColor TDEGlobalSettings::baseColor()
TQColor TDEGlobalSettings::textColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
return g.readColorEntry( "windowForeground", tqblackptr );
return g.readColorEntry( "windowForeground", &TQt::black );
}
// IMPORTANT:
@ -404,7 +404,7 @@ TQColor TDEGlobalSettings::textColor()
TQColor TDEGlobalSettings::highlightedTextColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
return g.readColorEntry( "selectForeground", tqwhiteptr );
return g.readColorEntry( "selectForeground", &TQt::white );
}
// IMPORTANT:

Loading…
Cancel
Save