Merge pull request #692 from microsoft/joypal/calendarTheming

Theming fixes for Calendar view
This commit is contained in:
Joyeeta Pal 2024-09-25 11:50:06 +05:30 коммит произвёл GitHub
Родитель bff6281c5e 19a1400d4d
Коммит cb945c63fa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 21 добавлений и 20 удалений

Просмотреть файл

@ -51,14 +51,6 @@
<item name="FluentuiButtonOutlinedStrokePressedColor">@color/fluentui_communication_tint_40</item>
<item name="FluentuiButtonOutlinedStrokeDisabledColor">@color/fluentui_gray_800</item>
<!--CalendarView-->
<item name="fluentuiCalendarBackgroundColor">?attr/fluentuiBackgroundSecondaryColor</item>
<item name="fluentuiCalendarWeekHeadingBackgroundColor">?attr/fluentuiBackgroundSecondaryColor</item>
<item name="fluentuiCalendarOtherMonthBackgroundColor">@color/fluentui_gray_700</item>
<item name="fluentuiCalendarDayTodayBackgroundColor">?attr/fluentuiBackgroundSecondaryColor</item>
<item name="fluentuiCalendarDayTextActiveColor">?attr/fluentuiForegroundColor</item>
<item name="fluentuiCalendarWeekHeadingWeekendTextColor">@color/fluentui_gray_600</item>
<!--ContextualCommandBar-->
<item name="fluentuiContextualCommandBarBackgroundColor">@color/fluentui_gray_600</item>
<item name="fluentuiContextualCommandBarBackgroundColorPressed">@color/fluentui_gray_900</item>

Просмотреть файл

@ -95,18 +95,6 @@
<item name="fluentuiCompoundButtonTintDefaultColor">?attr/fluentuiForegroundSecondaryIconColor</item>
<item name="fluentuiCompoundButtonTintCheckedColor">?attr/fluentuiForegroundSelectedColor</item>
<!--CalendarView-->
<item name="fluentuiCalendarBackgroundColor">?attr/fluentuiBackgroundColor</item>
<item name="fluentuiCalendarWeekHeadingBackgroundColor">?attr/fluentuiBackgroundColor</item>
<item name="fluentuiCalendarWeekHeadingWeekDayTextColor">?attr/fluentuiForegroundSecondaryColor</item>
<item name="fluentuiCalendarWeekHeadingWeekendTextColor">@color/fluentui_gray_400</item>
<item name="fluentuiCalendarMonthOverlayBackgroundColor">?attr/fluentuiBackgroundColor</item>
<item name="fluentuiCalendarMonthOverlayTextColor">?attr/fluentuiForegroundColor</item>
<item name="fluentuiCalendarOtherMonthBackgroundColor">@color/fluentui_gray_25</item>
<item name="fluentuiCalendarSelectedColor">?attr/fluentuiForegroundSelectedColor</item>
<item name="fluentuiCalendarDayTodayBackgroundColor">?attr/fluentuiColorPrimaryLighter</item>
<item name="fluentuiCalendarDayKeyboardFocusTextColor">@color/fluentui_gray_600</item>
<!--ContextualCommandBar-->
<item name="fluentuiContextualCommandBarBackgroundColor">@color/fluentui_gray_50</item>
<item name="fluentuiContextualCommandBarBackgroundColorPressed">@color/fluentui_gray_100</item>

Просмотреть файл

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
-->
<resources>
<style name="Theme.FluentUI.Calendar" parent="Theme.FluentUI.Calendar.Base">
<!--CalendarView-->
<item name="fluentuiCalendarBackgroundColor">?attr/fluentuiBackgroundSecondaryColor</item>
<item name="fluentuiCalendarWeekHeadingBackgroundColor">?attr/fluentuiBackgroundSecondaryColor</item>
<item name="fluentuiCalendarWeekHeadingWeekDayTextColor">@color/fluentui_gray_300</item>
<item name="fluentuiCalendarWeekHeadingWeekendTextColor">@color/fluentui_gray_400</item>
<item name="fluentuiCalendarOtherMonthBackgroundColor">@color/fluentui_gray_700</item>
<item name="fluentuiCalendarDayTodayBackgroundColor">?attr/fluentuiBackgroundSecondaryColor</item>
<item name="fluentuiCalendarDayTextActiveColor">?attr/fluentuiForegroundColor</item>
</style>
</resources>

Просмотреть файл

@ -28,6 +28,7 @@
<item name="fluentuiCalendarDayTextActiveCheckedColor">?attr/fluentuiForegroundOnPrimaryColor</item>
<item name="fluentuiCalendarDayTextInactiveCheckedColor">?attr/fluentuiForegroundOnPrimaryColor</item>
<item name="fluentuiCalendarDayTextDefaultColor">?attr/fluentuiForegroundSecondaryColor</item>
<item name="fluentuiCalendarDayKeyboardFocusTextColor">@color/fluentui_gray_600</item>
<!--DateTimePicker-->
<item name="fluentuiDateTimePickerToolbarTitleTextColor">?attr/colorPrimary</item>