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/include/fwl/theme/monthcalendartp.h" | 7 #include "xfa/include/fwl/theme/monthcalendartp.h" |
8 | 8 |
9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/basewidget/ifwl_monthcalendar.h" |
| 11 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 12 #include "xfa/fwl/core/cfwl_themetext.h" |
| 13 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 14 #include "xfa/fwl/core/ifwl_widget.h" |
10 #include "xfa/fxgraphics/cfx_color.h" | 15 #include "xfa/fxgraphics/cfx_color.h" |
11 #include "xfa/fxgraphics/cfx_path.h" | 16 #include "xfa/fxgraphics/cfx_path.h" |
12 #include "xfa/include/fwl/basewidget/fwl_monthcalendar.h" | |
13 #include "xfa/include/fwl/core/fwl_widget.h" | |
14 | 17 |
15 #define FWL_THEMECAPACITY_MC_HEADER_WIDTH 200 | 18 #define FWL_THEMECAPACITY_MC_HEADER_WIDTH 200 |
16 #define FWL_THEMECAPACITY_MC_HEADER_HEIGHT 30 | 19 #define FWL_THEMECAPACITY_MC_HEADER_HEIGHT 30 |
17 #define FWL_THEMECAPACITY_MC_HEADER_BTN_WIDTH 18 | 20 #define FWL_THEMECAPACITY_MC_HEADER_BTN_WIDTH 18 |
18 #define FWL_THEMECAPACITY_MC_HEADER_BTN_HEIGHT 16 | 21 #define FWL_THEMECAPACITY_MC_HEADER_BTN_HEIGHT 16 |
19 #define FWL_THEMECAPACITY_MC_HEADER_BTN_HMARGIN 5 | 22 #define FWL_THEMECAPACITY_MC_HEADER_BTN_HMARGIN 5 |
20 #define FWL_THEMECAPACITY_MC_HEADER_BTN_VMARGIN \ | 23 #define FWL_THEMECAPACITY_MC_HEADER_BTN_VMARGIN \ |
21 (FWL_THEMECAPACITY_MC_HEADER_HEIGHT - \ | 24 (FWL_THEMECAPACITY_MC_HEADER_HEIGHT - \ |
22 FWL_THEMECAPACITY_MC_HEADER_BTN_HEIGHT) / \ | 25 FWL_THEMECAPACITY_MC_HEADER_BTN_HEIGHT) / \ |
23 2 | 26 2 |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } else { | 578 } else { |
576 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0); | 579 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0); |
577 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64); | 580 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64); |
578 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191); | 581 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191); |
579 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183); | 582 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183); |
580 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0); | 583 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0); |
581 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); | 584 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); |
582 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); | 585 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); |
583 } | 586 } |
584 } | 587 } |
OLD | NEW |