Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/src/mocks/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function getTheme() {
textDayHeaderFontSize: 12,
textDayHeaderFontFamily: 'HelveticaNeue',
textDayHeaderFontWeight: 'normal' as const,
textDayHeaderStyle: {},
// dates
dayTextColor: themeColor,
todayTextColor: '#af0078',
Expand Down
3 changes: 2 additions & 1 deletion src/agenda/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/calendar/header/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/expandableCalendar/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface Theme {
textDayFontWeight?: TextStyle['fontWeight'];
textMonthFontWeight?: TextStyle['fontWeight'];
textDayHeaderFontWeight?: TextStyle['fontWeight'];
textDayHeaderStyle?: TextStyle;
textDayFontSize?: number;
textMonthFontSize?: number;
textDayHeaderFontSize?: number;
Expand Down