From 6cfac2be982f192280649ba8f51ee09bd9ba7aa4 Mon Sep 17 00:00:00 2001 From: natjms Date: Sun, 28 Feb 2021 11:21:35 -0400 Subject: [PATCH] Replace the download button with a bookmark --- .../post-actions/bookmark-active.png | Bin 0 -> 8764 bytes .../post-actions/bookmark-inactive.png | Bin 0 -> 10128 bytes src/components/posts/post-action-bar.js | 33 +++++++++++------- 3 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 assets/eva-icons/post-actions/bookmark-active.png create mode 100644 assets/eva-icons/post-actions/bookmark-inactive.png diff --git a/assets/eva-icons/post-actions/bookmark-active.png b/assets/eva-icons/post-actions/bookmark-active.png new file mode 100644 index 0000000000000000000000000000000000000000..123d321117c0750693903e28149246b8dbc6a755 GIT binary patch literal 8764 zcmeHMXIPWjwvI}Zs)7_n1f(hc>3Sxb5jsSqq=<}bf zZ;D8=BX_L2r9$iM6+$M{U$sjGmwk%5>ttk3UVDPUL})io%Re*_Gp+xY6?}3H6qK<3 zfe>%uUz(Zqniw0#(XXmH-O8A?wE4}~ZfXZV&=kuOZ+aE&H*R7#Ju%zaL-z#rsW?D+ z$j|1d3ETG@@Ze34+;#qh(uXP^U30fnCAw$TeGI{w?i-_N0WDV=vhrFfPcv1W@C|`Y z^C!1?a&KRm&F7^s_kI>I4d9NO2i3zCBirrJ_LFeir8#ys0b7Aj%lmJN+h!S& zV$P}1O{h3@H|9d3vAl%U0SUmt+5SAjfvupx9dy0eAt|}O8*J>VS(1(iK^}auPw5em za?bz)FsfBd5UJEu&byu&c26kTB2i{a?n2)sot}(?D5d#} zysoI|nuVp(9};~oa&~waP;$Mz{bVm2`;7!W>4Im%1&Z#;>SIbrjw7D329e8Ew$wD-eEoR z)~xp^f-EnqX|^WpD=B5@efmt2=78GP6iHm(PY1M%6ht*q%?XQ*c}4sXN% z{CYJf>L$`wiPhy*Y^4Y~o1Ooz7k_oj&sy8H;ps!e#YRk86PuGeJ_dA6x*n#|W|%Kb zDbirqgfnt{j*aOTqc2Tb%C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`+?ey%`a?A?^yW2^%&-7*}ydt5POim;T6+bMoTI&;S18V{v>697)jcww0N?+n1mW|u6G+E#u8!Wo90O$*` z4<4b<5F0c+kZOlQjs!58+&pt!;&`8`Rl3uLda&*+HWy&9%Gi`MKU&GwaKQA-lCjh9 zz1wU2R(AX>lJW0HU;Ey5U0ofKQZO3WKbmBl>hX0WgnAZqQF^%^G#$BYT*kpU^V!R@kla;bH2JcoXIe2b#}{?Zny&$jQzC=<&w z*~zG1rAw%hc^J{|}Sx BNKOC% literal 0 HcmV?d00001 diff --git a/assets/eva-icons/post-actions/bookmark-inactive.png b/assets/eva-icons/post-actions/bookmark-inactive.png new file mode 100644 index 0000000000000000000000000000000000000000..142f644e007cb58b81ee664476754bcb4b8d502e GIT binary patch literal 10128 zcmeHtc|6qJ+y7XKBt<0=jgjnTFt)K|4cW;~j9C~N!x%edONuO!B0~0EWM8sV*2t1Q zyX;$(?KgBU-M{DleV^a`dOgp7_sna?=UnG~y|3$B=eo{u&TAfNX(*kcVx$590B2N` z6?BMyy^lWUP7=Q(a;pLX02%}L+lB-kxC_u8k3(Z@Q9y#5Jqn0&#h?KI*TLRslPCli zjpE^D#j_;mI==vXi`-92?Ttg@lCU4;_Brb~u~>Hx8J7 zD0+71@ho`j)8x47M(0>*d~MpU+u`W*ox|rF%ad|bk@k`OWYbQEyPi7?tt zl#e54D<>NatfE3EH9H^f)qn5zUM}D1X)BOMAK;}=+`nhqvFjBg;?i+XUsR_yWx6PR zTW49+E|!{o`%PWedWUD;cCVW-h5IE|gLivVMRI3p&Evy-186k{woB{k8ZNkGUqP6X zf9Md-c+<>2N}Gtxv$uT4&;4YFuZ}17$<<Qb++DrstVqU+Hk?|FsGw99!(EwP7~fuKz7dpluGVv8*l>JxX0BCy~>hJR`+Q2&%A*$rV~2((}-(viPxCdz|F@fLSkq)t%ySh|jGd(kIj zlO-o8CSzLP7~5VndNb4v*gUM7SG6_TY|&lY;+IAt8Z0mw8I690>idk2N07un)4zl2 z?H&G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+FBV}mL{+7W(;p4gWzQqIm zwrIW%(OA8XD)UbYae+3$nT5kjTyy}x4=~T2ZUQ^Vt<)^(} zsAq8+0%fjoX6qbq&8Q!%Hkb|Wz&RW5j!s?JZ}kgvNF-y3rAcVDhQ!=>f=Idg*+=G~ z423 { @@ -41,7 +39,12 @@ const PostActionJsx = (props) => { source = { activeOrNot(props.state[props.field], props.pack) } - style = { styles.icon } /> + style = { + [ + styles.icon, + props.last ? styles.lastIcon : {} + ] + } /> ) } @@ -51,7 +54,7 @@ const PostActionBarJsx = (props) => { favourited: props.favourited, commenting: false, reblogged: props.reblogged, - downloaded: false + bookmarked: false }); const icons = { @@ -67,9 +70,9 @@ const PostActionBarJsx = (props) => { active: require("assets/eva-icons/post-actions/reblog-active.png"), inactive: require("assets/eva-icons/post-actions/reblog-inactive.png") }, - download: { - active: require("assets/eva-icons/post-actions/download-active.png"), - inactive: require("assets/eva-icons/post-actions/download-inactive.png") + bookmark: { + active: require("assets/eva-icons/post-actions/bookmark-active.png"), + inactive: require("assets/eva-icons/post-actions/bookmark-inactive.png") } } return ( @@ -93,10 +96,11 @@ const PostActionBarJsx = (props) => { callback = { () => reblogCallback(state, setState) } /> downloadCallback(state, setState) } /> + callback = { () => bookmarkCallback(state, setState) } /> ) } @@ -111,7 +115,10 @@ const styles = { width: 30, height: 30, marginRight: Dimensions.get("window").width / 20 + }, + lastIcon: { + marginLeft: "auto" } } -export default PostActionBarJsx; \ No newline at end of file +export default PostActionBarJsx;