Hi,
I've attached a patch, that shoud implement the behaviour you wanted.
Alexander
Am Sonntag, 30. September 2007 17:15 schrieb Sune Mølgaard:
> Alexander Rieder wrote:
> > Hi,
>
> Hi Alexander, and welcome.
>
> > If you have some easy tasks, feel free to send it to me. I'd really like
> > to give something back to Kopete.
>
> I haven't gotten much feedback on my suggestion for this, but then I
> will assume that silence is acknowledgement. If you, like me, feel that
> the colouring of the nickname on the tab of the conversation window
> should be:
>
> Bright red, if a message has been received,
> Green if the contact is currently writing a message,
> and, most importantly:
> only be colured dark red (signifying status change) if none of the above
> applies,
>
> I should be most grateful.
>
> Best regards,
>
> Sune Mølgaard
Index: kopete/kopete/chatwindow/kopetechatwindow.cpp
===================================================================
--- kopete/kopete/chatwindow/kopetechatwindow.cpp (Revision 719178)
+++ kopete/kopete/chatwindow/kopetechatwindow.cpp (Arbeitskopie)
@@ -1224,20 +1224,20 @@ void KopeteChatWindow::updateChatState(
switch( newState )
{
case ChatView::Highlighted:
- // m_tabBar->setTabColor( cv, Qt::blue );
+ m_tabBar->setTabTextColor( m_tabBar->indexOf(cv), Qt::blue );
break;
case ChatView::Message:
- // m_tabBar->setTabColor( cv, Qt::red );
+ m_tabBar->setTabTextColor( m_tabBar->indexOf(cv), Qt::red );
break;
case ChatView::Changed:
- // m_tabBar->setTabColor( cv, Qt::darkRed );
+ m_tabBar->setTabTextColor( m_tabBar->indexOf(cv), Qt::darkRed );
break;
case ChatView::Typing:
- // m_tabBar->setTabColor( cv, Qt::darkGreen );
+ m_tabBar->setTabTextColor( m_tabBar->indexOf(cv), Qt::darkGreen );
break;
case ChatView::Normal:
default:
- // m_tabBar->setTabColor( cv, KGlobalSettings::textColor() );
+ m_tabBar->setTabTextColor( m_tabBar->indexOf(cv), KGlobalSettings::textColor() );
break;
}
}
Index: kopete/kopete/chatwindow/chatview.cpp
===================================================================
--- kopete/kopete/chatwindow/chatview.cpp (Revision 719178)
+++ kopete/kopete/chatwindow/chatview.cpp (Arbeitskopie)
@@ -381,8 +381,8 @@ void ChatView::updateChatState( KopeteTa
if ( newState == Undefined )
newState = m_tabState;
else if ( newState != Typing && ( newState != Changed || ( m_tabState != Message && m_tabState != Highlighted ) )
- && ( newState != Message || m_tabState != Highlighted ) )
- { //if the new state is not a typing state and we don't already have a message or a highlighted message
+ && ( newState != Message || m_tabState != Highlighted || m_remoteTypingMap.isEmpty() ) )
+ { //if the new state is not a typing state and we don't already have a message or a highlighted message or someone typing
//change the tab state
m_tabState = newState;
}
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel