forked from vergnet/application-amicale
Improved game start screen gradient
This commit is contained in:
parent
b2ff90855f
commit
ae3d9310d6
1 changed files with 11 additions and 10 deletions
|
@ -379,15 +379,7 @@ class GameStartScreen extends React.Component<Props, State> {
|
||||||
|
|
||||||
getMainContent() {
|
getMainContent() {
|
||||||
return (
|
return (
|
||||||
<LinearGradient
|
|
||||||
style={{flex: 1}}
|
|
||||||
colors={[
|
|
||||||
this.props.theme.colors.background + "00",
|
|
||||||
this.props.theme.colors.background
|
|
||||||
]}
|
|
||||||
start={{x: 0, y: 0.1}}
|
|
||||||
end={{x: 0.1, y: 1}}
|
|
||||||
>
|
|
||||||
<View style={{flex: 1}}>
|
<View style={{flex: 1}}>
|
||||||
{
|
{
|
||||||
this.gameStats != null
|
this.gameStats != null
|
||||||
|
@ -415,7 +407,6 @@ class GameStartScreen extends React.Component<Props, State> {
|
||||||
</Button>
|
</Button>
|
||||||
{this.getTopScoresRender()}
|
{this.getTopScoresRender()}
|
||||||
</View>
|
</View>
|
||||||
</LinearGradient>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -425,6 +416,15 @@ class GameStartScreen extends React.Component<Props, State> {
|
||||||
return (
|
return (
|
||||||
<View style={{flex: 1}}>
|
<View style={{flex: 1}}>
|
||||||
{this.getPiecesBackground()}
|
{this.getPiecesBackground()}
|
||||||
|
<LinearGradient
|
||||||
|
style={{flex: 1}}
|
||||||
|
colors={[
|
||||||
|
this.props.theme.colors.background + "00",
|
||||||
|
this.props.theme.colors.background
|
||||||
|
]}
|
||||||
|
start={{x: 0, y: 0}}
|
||||||
|
end={{x: 0, y: 1}}
|
||||||
|
>
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
{this.getMainContent()}
|
{this.getMainContent()}
|
||||||
<MascotPopup
|
<MascotPopup
|
||||||
|
@ -443,6 +443,7 @@ class GameStartScreen extends React.Component<Props, State> {
|
||||||
emotion={MASCOT_STYLE.COOL}
|
emotion={MASCOT_STYLE.COOL}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
</LinearGradient>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue