Skip to content

Commit

Permalink
color adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-mausch committed Jan 19, 2015
1 parent a77a646 commit 0ae7f08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions resources/chat_export.html.template
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}

.incoming_message > .text > span {
background-color: #CCDDFF;
background-color: #CCD9FF;
}

.outgoing_message {
Expand All @@ -73,7 +73,7 @@
}

.outgoing_message > .text > span {
background-color: #DDFFBB;
background-color: #BAE691;
}

%EMOTICON_STYLES%
Expand Down
6 changes: 4 additions & 2 deletions source/Platforms/Win32/GUI/ChatControl/ChatControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,16 @@ void ChatControl::createBackbuffer()

void ChatControl::paintBackbuffer()
{
COLORREF backgroundColor = RGB(228, 228, 228);

HANDLE oldFont = SelectObject(backbuffer, GetStockObject(DEFAULT_GUI_FONT));
SetTextColor(backbuffer, RGB(0, 0, 0));
SetBkColor(backbuffer, GetSysColor(COLOR_3DFACE));
SetBkColor(backbuffer, backgroundColor);

RECT clientRect;
GetClientRect(window, &clientRect);

Brush brush(CreateSolidBrush(GetSysColor(COLOR_3DFACE)));
Brush brush(CreateSolidBrush(backgroundColor));
FillRect(backbuffer, &clientRect, brush.get());

if (lock.tryLock())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ void BuildMessagesThread::run()

if (message.isFromMe())
{
color = RGB(190, 240, 150);
color = RGB(186, 230, 145);
}
else
{
color = RGB(230, 230, 240);
color = RGB(204, 217, 255);
}

switch (message.getMediaWhatsappType())
Expand Down

0 comments on commit 0ae7f08

Please sign in to comment.