ChatControl: Switch colors, less spacing, fix message box
This commit is contained in:
@@ -433,12 +433,12 @@ Public Class ChatControl
|
||||
|
||||
' Eigene Nachrichten
|
||||
If oIsOwnMessage Then
|
||||
e.Appearance.BackColor = Color.PaleTurquoise
|
||||
e.Appearance.BackColor = Color.White
|
||||
End If
|
||||
|
||||
' Andere Nachrichten
|
||||
If Not oIsOwnMessage Then
|
||||
e.Appearance.BackColor = Color.White
|
||||
e.Appearance.BackColor = Color.PaleTurquoise
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -451,28 +451,19 @@ Public Class ChatControl
|
||||
|
||||
' Eigene Nachrichten
|
||||
If oIsOwnMessage Then
|
||||
' Benutzername
|
||||
If e.Column.FieldName = IdentificationColumn Then
|
||||
e.Appearance.ForeColor = Color.Purple
|
||||
End If
|
||||
|
||||
e.Appearance.BackColor = Color.PaleTurquoise
|
||||
e.Appearance.BackColor = Color.White
|
||||
End If
|
||||
|
||||
' Andere Nachrichten
|
||||
If Not oIsOwnMessage Then
|
||||
If e.Column.FieldName = IdentificationColumn Then
|
||||
e.Appearance.ForeColor = Color.Red
|
||||
End If
|
||||
|
||||
If Not (IsNothing(oToUser) Or IsDBNull(oToUser)) Then
|
||||
If oToUser = Username Or oToUser = ConversationIdentification Then
|
||||
e.Appearance.BackColor = Color.LightSalmon
|
||||
Else
|
||||
e.Appearance.BackColor = Color.White
|
||||
e.Appearance.BackColor = Color.PaleTurquoise
|
||||
End If
|
||||
Else
|
||||
e.Appearance.BackColor = Color.White
|
||||
e.Appearance.BackColor = Color.PaleTurquoise
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user