| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "xfa/fwl/theme/cfwl_monthcalendartp.h" | 7 #include "xfa/fwl/theme/cfwl_monthcalendartp.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/cfwl_monthcalendar.h" | 10 #include "xfa/fwl/cfwl_monthcalendar.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 void CFWL_MonthCalendarTP::DrawBackground(CFWL_ThemeBackground* pParams) { | 62 void CFWL_MonthCalendarTP::DrawBackground(CFWL_ThemeBackground* pParams) { |
| 63 if (!pParams) | 63 if (!pParams) |
| 64 return; | 64 return; |
| 65 | 65 |
| 66 switch (pParams->m_iPart) { | 66 switch (pParams->m_iPart) { |
| 67 case CFWL_Part::Border: { | 67 case CFWL_Part::Border: { |
| 68 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); | 68 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); |
| 69 break; | 69 break; |
| 70 } | 70 } |
| 71 case CFWL_Part::Edge: { | |
| 72 DrawEdge(pParams->m_pGraphics, pParams->m_pWidget->GetStyles(), | |
| 73 &pParams->m_rtPart, &pParams->m_matrix); | |
| 74 break; | |
| 75 } | |
| 76 case CFWL_Part::Background: { | 71 case CFWL_Part::Background: { |
| 77 DrawTotalBK(pParams, &pParams->m_matrix); | 72 DrawTotalBK(pParams, &pParams->m_matrix); |
| 78 break; | 73 break; |
| 79 } | 74 } |
| 80 case CFWL_Part::Header: { | 75 case CFWL_Part::Header: { |
| 81 DrawHeadBk(pParams, &pParams->m_matrix); | 76 DrawHeadBk(pParams, &pParams->m_matrix); |
| 82 break; | 77 break; |
| 83 } | 78 } |
| 84 case CFWL_Part::LBtn: { | 79 case CFWL_Part::LBtn: { |
| 85 FWLTHEME_STATE eState = GetState(pParams->m_dwStates); | 80 FWLTHEME_STATE eState = GetState(pParams->m_dwStates); |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 | 537 |
| 543 void CFWL_MonthCalendarTP::SetThemeData() { | 538 void CFWL_MonthCalendarTP::SetThemeData() { |
| 544 m_pThemeData->clrCaption = ArgbEncode(0xff, 0, 153, 255); | 539 m_pThemeData->clrCaption = ArgbEncode(0xff, 0, 153, 255); |
| 545 m_pThemeData->clrSeperator = ArgbEncode(0xff, 141, 161, 239); | 540 m_pThemeData->clrSeperator = ArgbEncode(0xff, 141, 161, 239); |
| 546 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 193, 211, 251); | 541 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 193, 211, 251); |
| 547 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 173, 188, 239); | 542 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 173, 188, 239); |
| 548 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 103, 144, 209); | 543 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 103, 144, 209); |
| 549 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); | 544 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); |
| 550 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); | 545 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); |
| 551 } | 546 } |
| OLD | NEW |