forked from wix-incubator/wml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(style): correct theming for unit-day
fixes wix-incubator#4
- Loading branch information
Tautvilas
committed
May 11, 2017
1 parent
6dca033
commit b1cfbd5
Showing
3 changed files
with
99 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,71 @@ | ||
import {StyleSheet} from 'react-native'; | ||
import * as appStyle from '../../style'; | ||
import * as defaultStyle from '../../style'; | ||
|
||
const FILLER_HEIGHT = 34; | ||
|
||
export default StyleSheet.create({ | ||
wrapper: { | ||
flex: 1, | ||
alignItems: 'center', | ||
alignSelf: 'stretch', | ||
marginLeft: -1 | ||
}, | ||
base: { | ||
//borderWidth: 1, | ||
width: 38, | ||
height: FILLER_HEIGHT, | ||
alignItems: 'center' | ||
}, | ||
fillers: { | ||
position: 'absolute', | ||
height: FILLER_HEIGHT, | ||
flexDirection: 'row', | ||
left: 0, | ||
right: 0 | ||
}, | ||
leftFiller: { | ||
height: FILLER_HEIGHT, | ||
flex: 1 | ||
}, | ||
rightFiller: { | ||
height: FILLER_HEIGHT, | ||
flex: 1 | ||
}, | ||
text: { | ||
marginTop: 7, | ||
fontSize: 16, | ||
fontWeight: '300', | ||
color: '#2d4150', | ||
backgroundColor: 'rgba(255, 255, 255, 0)' | ||
}, | ||
todayText: { | ||
fontWeight: '500', | ||
//color: appStyle.textLinkColor | ||
}, | ||
disabledText: { | ||
color: appStyle.textDisabledColor | ||
}, | ||
quickAction: { | ||
backgroundColor: 'white', | ||
borderWidth: 1, | ||
borderColor: '#c1e4fe' | ||
}, | ||
quickActionText: { | ||
marginTop: 6, | ||
color: appStyle.textColor | ||
}, | ||
firstQuickAction: { | ||
backgroundColor: appStyle.textLinkColor | ||
}, | ||
firstQuickActionText: { | ||
color: 'white' | ||
}, | ||
naText: { | ||
color: '#b6c1cd' | ||
} | ||
}); | ||
export default function styleConstructor(theme={}) { | ||
const appStyle = {...defaultStyle, ...theme}; | ||
return StyleSheet.create({ | ||
wrapper: { | ||
flex: 1, | ||
alignItems: 'center', | ||
alignSelf: 'stretch', | ||
marginLeft: -1 | ||
}, | ||
base: { | ||
//borderWidth: 1, | ||
width: 38, | ||
height: FILLER_HEIGHT, | ||
alignItems: 'center' | ||
}, | ||
fillers: { | ||
position: 'absolute', | ||
height: FILLER_HEIGHT, | ||
flexDirection: 'row', | ||
left: 0, | ||
right: 0 | ||
}, | ||
leftFiller: { | ||
height: FILLER_HEIGHT, | ||
flex: 1 | ||
}, | ||
rightFiller: { | ||
height: FILLER_HEIGHT, | ||
flex: 1 | ||
}, | ||
text: { | ||
marginTop: 7, | ||
fontSize: 16, | ||
fontWeight: '300', | ||
color: appStyle.dayTextColor || '#2d4150', | ||
backgroundColor: 'rgba(255, 255, 255, 0)' | ||
}, | ||
todayText: { | ||
fontWeight: '500', | ||
color: appStyle.todayTextColor || '#2d4150', | ||
//color: appStyle.textLinkColor | ||
}, | ||
disabledText: { | ||
color: appStyle.textDisabledColor | ||
}, | ||
quickAction: { | ||
backgroundColor: 'white', | ||
borderWidth: 1, | ||
borderColor: '#c1e4fe' | ||
}, | ||
quickActionText: { | ||
marginTop: 6, | ||
color: appStyle.textColor | ||
}, | ||
firstQuickAction: { | ||
backgroundColor: appStyle.textLinkColor | ||
}, | ||
firstQuickActionText: { | ||
color: 'white' | ||
}, | ||
naText: { | ||
color: '#b6c1cd' | ||
} | ||
}); | ||
} | ||
|