File tree Expand file tree Collapse file tree 4 files changed +15
-13
lines changed
Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1212 Customize your mobile experience through ReVanced <br /> by applying patches to your applications.
1313 </p >
1414 <div class =" hero-buttons" >
15- <Button type =" filled" href =" download" >
16- <TrayArrowDown size =" 20px" />
17- Download
18- </Button >
19- <Button type =" tonal" href =" patches" >
20- <FileDocumentOutline size =" 20px" />
21- View patches
22- </Button >
15+ <Button type ="filled" icon ={TrayArrowDown } href =" download" >Download</Button >
16+ <Button type ="tonal" icon ={FileDocumentOutline } href =" patches" >View patches</Button >
2317 </div >
2418 </div >
2519</section >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 export let type: ' filled' | ' tonal' | ' text' | ' outlined' ;
3+ export let icon: any | undefined = undefined ;
4+ export let iconSize = 20 ;
5+ export let iconColor = ' currentColor' ;
36 export let href: string = ' ' ;
47 export let target: string = ' ' ;
58 export let label: string = ' ' ;
69 </script >
710
811{#if href }
912 <a {href } {target } class ={` button-${type } ` } aria-label ={label }>
13+ <svelte:component this ={icon } size ={iconSize } color ={iconColor } />
1014 <slot />
1115 </a >
1216{:else }
1317 <button on:click class ={` button-${type } ` } aria-label ={label }>
18+ <svelte:component this ={icon } size ={iconSize } color ={iconColor } />
1419 <slot />
1520 </button >
1621{/if }
Original file line number Diff line number Diff line change 2525 <a href ={url } rel =" noreferrer" target =" _blank" on:click |stopPropagation >
2626 <h4 >{name }</h4 >
2727 </a >
28- <div id ="arrow" style:transform ={expanded ? ' rotate(0deg)' : ' rotate(- 180deg)' }>
28+ <div id ="arrow" style:transform ={expanded ? ' rotate(0deg)' : ' rotate(180deg)' }>
2929 <ChevronUp size =" 24px" color =" var(--surface-six)" />
3030 </div >
3131 </div >
Original file line number Diff line number Diff line change 9191 <div class =" buttons" >
9292 <Query {query } let:data >
9393 {#if ! isAndroid || androidVersion < 8 }
94- <Button on:click ={handleClick } type =" filled" >
95- <TrayArrowDown size =" 20px" />
94+ <Button on:click ={handleClick } icon ={TrayArrowDown } type =" filled" >
9695 {data .release .version }
9796 </Button >
9897 {:else }
99- <Button on:click ={handleClick } type ="filled" href ={data .release .download_url }>
100- <TrayArrowDown size =" 20px" />
98+ <Button
99+ on:click ={handleClick }
100+ icon ={TrayArrowDown }
101+ type =" filled"
102+ href ={data .release .download_url }
103+ >
101104 {data .release .version }
102105 </Button >
103106 {/if }
You can’t perform that action at this time.
0 commit comments