[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_4_BRANCH: kdenetwork/kopete/libkopete
From: Olivier Goffart <ogoffart () kde ! org>
Date: 2005-04-07 11:21:55
Message-ID: 20050407112155.0D05263E () office ! kde ! org
[Download RAW message or body]
CVS commit by ogoffart:
Backport the 85% gray offline icon patch, because more people report the bug 103278
M +4 -10 kopeteonlinestatusmanager.cpp 1.13.2.1
--- kdenetwork/kopete/libkopete/kopeteonlinestatusmanager.cpp #1.13:1.13.2.1
@@ -190,9 +190,10 @@ QPixmap* OnlineStatusManager::renderIcon
*basis = KIconEffect().apply( *basis, KIconEffect::Colorize, 1, \
color, 0);
- // Apply standard Disabled effect to generate account-offline icons
// Note that we do this before compositing the overlay, since we want
// that to be colored in this case.
- if ( statusFor.internalStatus() == Kopete::OnlineStatus::AccountOffline )
- *basis = KIconEffect().apply( *basis, KIcon::Small, \
KIcon::DisabledState ); + if ( statusFor.internalStatus() == \
Kopete::OnlineStatus::AccountOffline || statusFor.status() == \
Kopete::OnlineStatus::Offline ) + {
+ *basis = KIconEffect().apply( *basis, KIconEffect::ToGray , 0.85, \
QColor() , false ); + }
//composite the iconOverlay for this status and the supplied baseIcon
@@ -219,11 +220,4 @@ QPixmap* OnlineStatusManager::renderIcon
}
- // Apply standard Disabled effect to generate Offline icons
- // This will probably look crap on the Unknown icon
- // FIXME This won't return icons that are not installed using Martijn's
- // automake magic so we'd have to use UserIcon instead of SmallIcon
- if ( statusFor.status() == OnlineStatus::Offline )
- *basis = KIconEffect().apply( *basis, KIcon::Small, \
KIcon::DisabledState );
-
// no need to scale if the icon is already of the required size (assuming \
height == width!) if ( basis->width() != size )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic