Skip to content

Commit

Permalink
chore(ios): in app purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jan 13, 2025
1 parent 6630621 commit 0eb0ba9
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions app/components/settings/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -933,39 +933,31 @@
</Template>
<Template key="header" let:item>
<gridlayout rows="auto,auto">
{#if __ANDROID__ || inAppAvailable}
<gridlayout columns="*,auto,auto" margin="10 16 0 16">
<stacklayout
backgroundColor="#ea4bae"
borderRadius={10}
orientation="horizontal"
padding={10}
<gridlayout columns="*,auto,auto" margin="10 16 0 16">
<stacklayout
backgroundColor="#ea4bae"
borderRadius={10}
orientation="horizontal"
padding={10}
rippleColor="white"
verticalAlignment="center"
on:tap={(event) => onTap({ id: 'sponsor' }, event)}>
<label color="white" fontFamily={$fonts.mdi} fontSize={26} marginRight={10} text="mdi-heart" verticalAlignment="center" />
<label color="white" fontSize={12} text={item.title} textWrap={true} verticalAlignment="center" />
</stacklayout>
{#if __ANDROID__}
<image
borderRadius={6}
col={1}
height={40}
margin="0 10 0 10"
rippleColor="white"
src="~/assets/images/librepay.png"
verticalAlignment="center"
on:tap={(event) => onTap({ id: 'sponsor' }, event)}>
<label color="white" fontFamily={$fonts.mdi} fontSize={26} marginRight={10} text="mdi-heart" verticalAlignment="center" />
<label color="white" fontSize={12} text={item.title} textWrap={true} verticalAlignment="center" />
</stacklayout>
{#if __ANDROID__}
<image
borderRadius={6}
col={1}
height={40}
margin="0 10 0 10"
rippleColor="white"
src="~/assets/images/librepay.png"
verticalAlignment="center"
on:tap={(event) => onTap({ id: 'sponsor', type: 'librepay' }, event)} />
<image
borderRadius={6}
col={2}
height={40}
rippleColor="#f96754"
src="~/assets/images/patreon.png"
on:tap={(event) => onTap({ id: 'sponsor', type: 'patreon' }, event)} />
{/if}
</gridlayout>
{/if}
on:tap={(event) => onTap({ id: 'sponsor', type: 'librepay' }, event)} />
<image borderRadius={6} col={2} height={40} rippleColor="#f96754" src="~/assets/images/patreon.png" on:tap={(event) => onTap({ id: 'sponsor', type: 'patreon' }, event)} />
{/if}
</gridlayout>

<gridlayout columns="*,auto,*" marginTop={20} paddingLeft={16} paddingRight={16} row={1} verticalAlignment="center">
<image borderRadius={25} col={1} height={50} horizontalAlignment="center" marginBottom={20} src="res://icon" width={50} />
Expand Down

0 comments on commit 0eb0ba9

Please sign in to comment.