diff --git a/example/src/mocks/theme.ts b/example/src/mocks/theme.ts index 974eeedc21..b2b0903918 100644 --- a/example/src/mocks/theme.ts +++ b/example/src/mocks/theme.ts @@ -22,6 +22,7 @@ export function getTheme() { textDayHeaderFontSize: 12, textDayHeaderFontFamily: 'HelveticaNeue', textDayHeaderFontWeight: 'normal' as const, + textDayHeaderStyle: {}, // dates dayTextColor: themeColor, todayTextColor: '#af0078', diff --git a/src/agenda/style.ts b/src/agenda/style.ts index 60176e3975..7323d9e3d2 100644 --- a/src/agenda/style.ts +++ b/src/agenda/style.ts @@ -40,7 +40,8 @@ export default function styleConstructor(theme: Theme = {}) { fontSize: appStyle.textDayHeaderFontSize, fontFamily: appStyle.textDayHeaderFontFamily, fontWeight: appStyle.textDayHeaderFontWeight, - color: appStyle.textSectionTitleColor + color: appStyle.textSectionTitleColor, + ...appStyle.textDayHeaderStyle }, reservations: { flex: 1, diff --git a/src/calendar/header/style.ts b/src/calendar/header/style.ts index 173546a133..e3d36335d4 100644 --- a/src/calendar/header/style.ts +++ b/src/calendar/header/style.ts @@ -63,7 +63,8 @@ export default function (theme: Theme = {}) { fontSize: appStyle.textDayHeaderFontSize, fontFamily: appStyle.textDayHeaderFontFamily, fontWeight: appStyle.textDayHeaderFontWeight, - color: appStyle.textSectionTitleColor + color: appStyle.textSectionTitleColor, + ...appStyle.textDayHeaderStyle }, disabledDayHeader: { color: appStyle.textSectionTitleDisabledColor diff --git a/src/expandableCalendar/style.ts b/src/expandableCalendar/style.ts index 883376a944..c099535fe9 100644 --- a/src/expandableCalendar/style.ts +++ b/src/expandableCalendar/style.ts @@ -84,7 +84,8 @@ export default function styleConstructor(theme: Theme = {}) { fontSize: appStyle.textDayHeaderFontSize, fontFamily: appStyle.textDayHeaderFontFamily, fontWeight: appStyle.textDayHeaderFontWeight, - color: appStyle.textSectionTitleColor + color: appStyle.textSectionTitleColor, + ...appStyle.textDayHeaderStyle }, monthView: { backgroundColor: appStyle.calendarBackground diff --git a/src/style.ts b/src/style.ts index a874d42482..34b71834c4 100644 --- a/src/style.ts +++ b/src/style.ts @@ -14,6 +14,7 @@ export const todayButtonFontFamily = 'System'; export const textDayFontWeight = '300'; export const textMonthFontWeight = '300'; export const textDayHeaderFontWeight = undefined; +export const textDayHeaderStyle = undefined; export const todayButtonFontWeight = '600'; export const textDayFontSize = 16; diff --git a/src/types.ts b/src/types.ts index b44e2dd0f7..8ff7602f76 100644 --- a/src/types.ts +++ b/src/types.ts @@ -52,6 +52,7 @@ export interface Theme { textDayFontWeight?: TextStyle['fontWeight']; textMonthFontWeight?: TextStyle['fontWeight']; textDayHeaderFontWeight?: TextStyle['fontWeight']; + textDayHeaderStyle?: TextStyle; textDayFontSize?: number; textMonthFontSize?: number; textDayHeaderFontSize?: number;