• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28289 (tree)
Time2018-07-14 02:00:19
Authorstefankueng

Log Message

* Rename the fonts to indicate their use
* use two differently bold fonts, don't use italic because that makes the last char not show completely

Change Summary

Incremental Difference

--- trunk/src/TortoiseProc/LogDialog/LogDlg.cpp (revision 28288)
+++ trunk/src/TortoiseProc/LogDialog/LogDlg.cpp (revision 28289)
@@ -469,11 +469,11 @@
469469 LOGFONT lf = {0};
470470 font->GetLogFont(&lf);
471471
472+ lf.lfWeight = FW_DEMIBOLD;
473+ m_unreadFont.CreateFontIndirect(&lf);
474+
472475 lf.lfWeight = FW_BOLD;
473- m_boldFont.CreateFontIndirect(&lf);
474-
475- lf.lfItalic = TRUE;
476- m_boldItalicFont.CreateFontIndirect(&lf);
476+ m_wcRevFont.CreateFontIndirect(&lf);
477477 CAppUtils::CreateFontForLogs(m_logFont);
478478 }
479479
@@ -3509,7 +3509,7 @@
35093509 crText = GetSysColor(COLOR_GRAYTEXT);
35103510 if ((data->GetRevision() == m_wcRev) || data->GetUnread())
35113511 {
3512- SelectObject(pLVCD->nmcd.hdc, data->GetUnread() ? m_boldFont : m_boldItalicFont);
3512+ SelectObject(pLVCD->nmcd.hdc, data->GetUnread() ? m_unreadFont : m_wcRevFont);
35133513 // We changed the font, so we're returning CDRF_NEWFONT. This
35143514 // tells the control to recalculate the extent of the text.
35153515 *pResult = CDRF_NOTIFYSUBITEMDRAW | CDRF_NEWFONT;
@@ -4961,7 +4961,7 @@
49614961 {
49624962 HFONT hFont = (HFONT)m_LogList.SendMessage(WM_GETFONT);
49634963 // set the bold font and ask for the string width again
4964- m_LogList.SendMessage(WM_SETFONT, (WPARAM)m_boldItalicFont.GetSafeHandle(), NULL);
4964+ m_LogList.SendMessage(WM_SETFONT, (WPARAM)m_wcRevFont.GetSafeHandle(), NULL);
49654965 linewidth = m_LogList.GetStringWidth(m_LogList.GetItemText((int)index, col)) + 14;
49664966 // restore the system font
49674967 m_LogList.SendMessage(WM_SETFONT, (WPARAM)hFont, NULL);
@@ -4970,7 +4970,7 @@
49704970 {
49714971 HFONT hFont = (HFONT)m_LogList.SendMessage(WM_GETFONT);
49724972 // set the bold font and ask for the string width again
4973- m_LogList.SendMessage(WM_SETFONT, (WPARAM)m_boldFont.GetSafeHandle(), NULL);
4973+ m_LogList.SendMessage(WM_SETFONT, (WPARAM)m_unreadFont.GetSafeHandle(), NULL);
49744974 linewidth = m_LogList.GetStringWidth(m_LogList.GetItemText((int)index, col)) + 14;
49754975 // restore the system font
49764976 m_LogList.SendMessage(WM_SETFONT, (WPARAM)hFont, NULL);
--- trunk/src/TortoiseProc/LogDialog/LogDlg.h (revision 28288)
+++ trunk/src/TortoiseProc/LogDialog/LogDlg.h (revision 28289)
@@ -447,8 +447,8 @@
447447 ProjectProperties m_ProjectProperties;
448448 WORD m_wParam;
449449 private:
450- CFont m_boldFont;
451- CFont m_boldItalicFont;
450+ CFont m_unreadFont;
451+ CFont m_wcRevFont;
452452 CString m_sRelativeRoot;
453453 CString m_sRepositoryRoot;
454454 CString m_sURL;
Show on old repository browser