Skip to content

Commit

Permalink
Increase font sizes of header and footer text
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Jan 15, 2025
1 parent 0df5892 commit 55869dd
Show file tree
Hide file tree
Showing 7 changed files with 156 additions and 8 deletions.
28 changes: 23 additions & 5 deletions app/src/main/java/com/hiddenramblings/tagmo/DonationManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -354,23 +354,41 @@ class DonationManager internal constructor(private val activity: BrowserActivity
}

if (!BuildConfig.GOOGLE_PLAY) {
addView(activity.layoutInflater.inflate(R.layout.button_sponsor, null).apply {
addView(activity.layoutInflater.inflate(R.layout.button_paypal, null).apply {
setOnClickListener {
activity.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(
"https://github.com/sponsors/AbandonedCart"
"https://www.paypal.com/donate/?hosted_button_id=Q2LFH2SC8RHRN"
)))
donateDialog.cancel()
}
layoutParams = params
})

addView(activity.layoutInflater.inflate(R.layout.button_paypal, null).apply {
addView(activity.layoutInflater.inflate(R.layout.button_kofi, null).apply {
setOnClickListener {
activity.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(
"https://www.paypal.com/donate/?hosted_button_id=Q2LFH2SC8RHRN"
"https://ko-fi.com/abandonedcart"
)))
donateDialog.cancel()
}
layoutParams = params
})
addView(activity.layoutInflater.inflate(R.layout.button_coffee, null).apply {
setOnClickListener {
activity.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(
"https://www.buymeacoffee.com/abandonedcart"
)))
donateDialog.cancel()
}
layoutParams = params
})
addView(activity.layoutInflater.inflate(R.layout.button_sponsor, null).apply {
setOnClickListener {
activity.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(
"https://github.com/sponsors/AbandonedCart"
)))
donateDialog.cancel()
}
layoutParams = params
})
}
donateDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
Expand Down
48 changes: 48 additions & 0 deletions app/src/main/res/drawable/ic_bmc_logo_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16.59dp"
android:height="24dp"
android:viewportWidth="884"
android:viewportHeight="1279">
<path
android:pathData="M791.1,297.5L790.2,297L788.2,296.4C789,297.1 790,297.5 791.1,297.5V297.5Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M803.9,388.9L802.9,389.2L803.9,388.9Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M791.5,297.4C791.4,297.4 791.2,297.3 791.1,297.3C791.1,297.4 791.1,297.5 791.1,297.5C791.3,297.5 791.4,297.5 791.5,297.4V297.4Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M791.1,297.5H791.2V297.4L791.1,297.5Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M803.1,388.7L804.6,387.9L805.1,387.6L805.6,387C804.7,387.4 803.8,388 803.1,388.7V388.7Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M793.7,299.5L792.2,298.1L791.2,297.6C791.8,298.5 792.6,299.2 793.7,299.5V299.5Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M430,1186.2C428.9,1186.7 427.9,1187.5 427.1,1188.4L428,1187.9C428.6,1187.3 429.5,1186.6 430,1186.2Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M641.2,1144.6C641.2,1143.3 640.6,1143.6 640.7,1148.2C640.7,1147.8 640.9,1147.5 640.9,1147.1C641,1146.3 641.1,1145.5 641.2,1144.6Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M619.3,1186.2C618.1,1186.7 617.1,1187.5 616.3,1188.4L617.3,1187.9C617.9,1187.3 618.8,1186.6 619.3,1186.2Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M281.3,1196.1C280.4,1195.3 279.4,1194.8 278.2,1194.6C279.1,1195.1 280.1,1195.5 280.7,1195.8L281.3,1196.1Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M247.8,1164C247.7,1162.7 247.3,1161.3 246.6,1160.2C247.1,1161.4 247.5,1162.7 247.8,1163.9L247.8,1164Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M472.6,590.8C426.7,610.5 374.5,632.8 307,632.8C278.7,632.7 250.6,628.9 223.4,621.3L270.1,1101.1C271.7,1121.1 280.9,1139.8 295.7,1153.5C310.5,1167.1 329.9,1174.7 350,1174.7C350,1174.7 416.3,1178.1 438.4,1178.1C462.2,1178.1 533.5,1174.7 533.5,1174.7C553.6,1174.7 573,1167.1 587.8,1153.4C602.6,1139.8 611.8,1121.1 613.4,1101.1L663.5,570.9C641.1,563.2 618.5,558.2 593.1,558.2C549.1,558.1 513.6,573.3 472.6,590.8Z"
android:fillColor="#FFDD00"/>
<path
android:pathData="M78.7,386.1L79.5,386.9L80,387.2C79.6,386.8 79.2,386.4 78.7,386.1V386.1Z"
android:fillColor="#0D0C22"/>
<path
android:pathData="M879.6,341.8L872.5,306.4C866.2,274.5 851.9,244.4 819.2,232.9C808.7,229.2 796.8,227.6 788.8,220C780.8,212.4 778.4,200.6 776.5,189.6C773.1,169.4 769.8,149.3 766.3,129.1C763.3,111.8 760.9,92.4 752.9,76.6C742.6,55.3 721.2,42.8 699.9,34.6C689,30.5 677.8,27 666.5,24.2C613.3,10.2 557.3,5 502.6,2.1C436.9,-1.5 371,-0.4 305.4,5.4C256.6,9.8 205.2,15.2 158.9,32C141.9,38.2 124.4,45.6 111.6,58.7C95.7,74.8 90.6,99.7 102.1,119.8C110.3,134 124.2,144.1 139,150.7C158.2,159.3 178.3,165.8 198.8,170.2C256.1,182.9 315.5,187.9 374,190C438.9,192.6 503.9,190.5 568.4,183.6C584.4,181.9 600.3,179.8 616.3,177.3C635,174.4 647,149.9 641.5,132.9C634.9,112.5 617.1,104.5 597.1,107.6C594.1,108.1 591.2,108.5 588.2,108.9L586.1,109.3C579.3,110.1 572.5,110.9 565.7,111.7C551.6,113.2 537.5,114.4 523.4,115.4C491.8,117.6 460.1,118.6 428.4,118.6C397.2,118.6 366.1,117.8 335,115.7C320.8,114.8 306.7,113.6 292.6,112.2C286.1,111.5 279.7,110.8 273.3,110L267.2,109.2L265.9,109L259.6,108.1C246.7,106.2 233.8,104 221,101.3C219.7,101 218.6,100.2 217.8,99.2C216.9,98.2 216.5,96.9 216.5,95.6C216.5,94.3 216.9,93 217.8,92C218.6,90.9 219.7,90.2 221,89.9H221.3C232.3,87.6 243.5,85.6 254.7,83.8C258.4,83.2 262.1,82.6 265.9,82.1H266C273,81.6 280,80.4 287,79.5C347.6,73.2 408.6,71.1 469.5,73.1C499.1,74 528.7,75.7 558.1,78.7C564.4,79.3 570.7,80 577,80.8C579.5,81.1 581.9,81.4 584.3,81.7L589.2,82.4C603.4,84.6 617.6,87.1 631.7,90.2C652.6,94.7 679.4,96.2 688.7,119.1C691.7,126.3 693,134.4 694.6,142L696.7,151.8C696.8,151.9 696.8,152.1 696.9,152.3C701.8,175.2 706.7,198.2 711.6,221.1C712,222.8 712,224.6 711.7,226.3C711.3,228 710.6,229.6 709.6,231C708.6,232.4 707.4,233.6 705.9,234.5C704.4,235.4 702.8,236 701,236.2H700.9L697.9,236.6L694.9,237C685.5,238.3 676,239.4 666.6,240.5C648,242.6 629.3,244.4 610.6,246C573.5,249.1 536.4,251.1 499.1,252.1C480.1,252.6 461.1,252.8 442.2,252.8C366.6,252.7 291.2,248.3 216.2,239.6C208.1,238.7 199.9,237.6 191.8,236.6C198.1,237.4 187.2,236 185,235.7C179.9,234.9 174.7,234.2 169.5,233.4C152.2,230.8 135,227.6 117.7,224.8C96.8,221.4 76.8,223.1 57.9,233.4C42.4,241.9 29.8,254.9 21.9,270.7C13.7,287.6 11.3,306 7.6,324.1C4,342.2 -1.7,361.7 0.5,380.3C5.1,420.4 33.2,453.1 73.5,460.4C111.5,467.2 149.7,472.8 188,477.6C338.4,496 490.3,498.2 641.2,484.1C653.4,483 665.7,481.7 678,480.4C681.8,480 685.7,480.4 689.3,481.7C692.9,482.9 696.2,485 699,487.7C701.7,490.4 703.8,493.7 705.1,497.3C706.4,501 706.8,504.8 706.5,508.7L702.6,545.8C694.9,620.8 687.2,695.9 679.5,770.9C671.5,849.7 663.4,928.4 655.3,1007.2C653,1029.4 650.7,1051.6 648.4,1073.7C646.2,1095.6 645.9,1118.1 641.8,1139.7C635.2,1173.6 612.2,1194.4 578.7,1202.1C548,1209.1 516.7,1212.7 485.2,1213C450.2,1213.2 415.4,1211.7 380.4,1211.8C343.2,1212.1 297.5,1208.6 268.8,1180.9C243.5,1156.5 240,1118.4 236.5,1085.4C232,1041.7 227.4,998 222.9,954.4L197.6,711.6L181.2,554.5C181,551.9 180.7,549.4 180.4,546.8C178.5,528 165.2,509.7 144.3,510.6C126.4,511.4 106.1,526.6 108.2,546.8L120.3,663.2L145.4,904.1C152.5,972.5 159.7,1041 166.8,1109.4C168.1,1122.5 169.4,1135.7 170.9,1148.8C178.7,1220.4 233.5,1259 301.2,1269.9C340.8,1276.3 381.3,1277.6 421.5,1278.2C473,1279.1 525,1281.1 575.6,1271.7C650.7,1257.9 707,1207.8 715,1130.1C717.3,1107.7 719.6,1085.3 721.9,1062.8C729.5,988.6 737.1,914.3 744.7,840.1L769.6,597.5L781,486.3C781.6,480.7 783.9,475.6 787.6,471.5C791.4,467.4 796.4,464.6 801.8,463.6C823.3,459.4 843.8,452.2 859,435.9C883.3,409.9 888.2,376 879.6,341.8ZM72.4,365.8C72.8,365.7 72.2,368.5 71.9,369.8C71.8,367.8 71.9,366.1 72.4,365.8ZM74.5,381.9C74.7,381.8 75.2,382.5 75.7,383.3C74.9,382.6 74.4,382 74.5,381.9H74.5ZM76.6,384.6C77.3,385.9 77.7,386.7 76.6,384.6V384.6ZM80.7,388H80.8C80.8,388.1 81,388.2 81,388.3C80.9,388.2 80.8,388.1 80.7,388H80.7ZM800.8,383C793.1,390.3 781.5,393.7 770,395.4C641.3,414.5 510.7,424.2 380.6,419.9C287.5,416.7 195.3,406.4 103.1,393.4C94.1,392.1 84.3,390.5 78.1,383.8C66.4,371.2 72.2,345.9 75.2,330.8C78,316.9 83.3,298.3 99.9,296.4C125.7,293.3 155.6,304.2 181.2,308.1C211.9,312.8 242.8,316.5 273.7,319.4C405.9,331.4 540.3,329.5 671.9,311.9C695.9,308.7 719.8,304.9 743.6,300.7C764.8,296.9 788.4,289.7 801.2,311.7C810,326.7 811.1,346.7 809.8,363.6C809.4,371 806.1,377.9 800.8,383H800.8Z"
android:fillColor="#0D0C22"/>
</vector>
28 changes: 28 additions & 0 deletions app/src/main/res/drawable/ic_kofi_symbol_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="19.32dp"
android:viewportWidth="241"
android:viewportHeight="194">
<group>
<clip-path
android:pathData="M240.47,0.96H-0.01V193.92H240.47V0.96Z"/>
<path
android:pathData="M96.13,193.91C61.13,193.91 32.66,178.26 15.97,149.83C1.2,124.91 -0.01,97.92 -0.01,67.77C-0.01,49.89 5.37,34.32 15.54,22.75C24.89,12.12 38.13,5.23 52.83,3.35C70.29,1.14 91.98,0.96 114.54,0.96C151.26,0.96 161.63,1.41 176.07,2.85C195.29,4.76 211.46,11.93 222.82,23.6C234.37,35.44 240.47,51.26 240.47,69.36V73C240.47,103.89 219.82,129.73 191.05,136.76C188.9,141.83 186.24,146.87 183.09,151.84L183.01,151.96C172.87,167.63 149.04,193.92 103.4,193.92H96.13L96.13,193.91Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M174.57,17.98C160.93,16.62 151.38,16.16 114.55,16.16C90.91,16.16 70.9,16.39 54.76,18.43C33.39,21.16 15.21,37.53 15.21,67.77C15.21,98.01 16.8,121.42 29.07,142.11C42.94,165.75 66.13,178.71 96.14,178.71H103.41C140.24,178.71 160.25,159.16 170.25,143.7C174.57,136.87 177.75,130.06 179.8,123.23C205.95,120.96 225.27,99.36 225.27,72.99V69.36C225.27,40.94 206.63,21.16 174.57,17.98H174.57Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M15.2,67.77C15.2,37.53 33.39,21.16 54.76,18.43C70.9,16.39 90.91,16.16 114.54,16.16C151.37,16.16 160.92,16.62 174.56,17.98C206.62,21.16 225.26,40.94 225.26,69.36V72.99C225.26,99.37 205.93,120.97 179.79,123.23C177.74,130.06 174.56,136.87 170.24,143.7C160.24,159.16 140.23,178.71 103.4,178.71H96.13C66.12,178.71 42.93,165.75 29.06,142.11C16.78,121.42 15.19,98.46 15.19,67.77"
android:fillColor="#202020"/>
<path
android:pathData="M32.25,67.99C32.25,97.32 34.07,116.18 43.61,133.69C54.52,153.92 74.3,161.65 96.81,161.65H103.86C133.41,161.65 147.74,147.33 155.69,134.83C159.56,128.46 162.97,121.42 164.78,112.55L166.15,106.86H174.33C192.52,106.86 208.21,92.09 208.21,73.22V69.81C208.21,48.67 195.02,37.52 172.06,34.8C159.1,33.66 151.37,33.21 114.54,33.21C89.76,33.21 72.03,33.44 58.62,35.48C39.75,38.21 32.24,48.9 32.24,67.99"
android:fillColor="#ffffff"/>
<path
android:pathData="M166.16,83.68C166.16,86.41 168.2,88.46 171.84,88.46C183.43,88.46 189.8,81.86 189.8,70.95C189.8,60.04 183.43,53.22 171.84,53.22C168.2,53.22 166.16,55.27 166.16,58V83.69V83.68Z"
android:fillColor="#202020"/>
<path
android:pathData="M54.53,82.32C54.53,95.73 62.03,107.33 71.58,116.42C77.95,122.56 87.95,128.93 94.77,133.02C96.81,134.16 98.86,134.84 101.14,134.84C103.87,134.84 106.13,134.16 107.96,133.02C114.78,128.93 124.78,122.56 130.92,116.42C140.69,107.33 148.2,95.74 148.2,82.32C148.2,67.77 137.29,54.81 121.6,54.81C112.28,54.81 105.91,59.59 101.14,66.18C96.81,59.58 90.23,54.81 80.9,54.81C64.99,54.81 54.53,67.77 54.53,82.32"
android:fillColor="#FF5A16"/>
</group>
</vector>
26 changes: 26 additions & 0 deletions app/src/main/res/layout/button_coffee.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="12dp"
android:gravity="center"
android:layout_gravity="center_horizontal"
android:orientation="horizontal"
android:background="@drawable/rounded_view">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/imageview_icon"
app:srcCompat="@drawable/ic_bmc_logo_24dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
android:textColor="?android:textColorPrimary"
android:gravity="center_vertical"
android:text="@string/coffee_link" />
</LinearLayout>
26 changes: 26 additions & 0 deletions app/src/main/res/layout/button_kofi.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="12dp"
android:gravity="center"
android:layout_gravity="center_horizontal"
android:orientation="horizontal"
android:background="@drawable/rounded_view">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/imageview_icon"
app:srcCompat="@drawable/ic_kofi_symbol_24dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
android:textColor="?android:textColorPrimary"
android:gravity="center_vertical"
android:text="@string/kofi_link" />
</LinearLayout>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
android:layout_marginStart="8dp"
android:gravity="center_vertical"
android:textColor="?android:textColorPrimary"
android:textSize="12sp" />
android:textSize="16sp" />
</LinearLayout>

<TextView
Expand Down Expand Up @@ -424,7 +424,7 @@
android:layout_marginStart="8dp"
android:gravity="center_vertical"
android:textColor="?android:textColorPrimary"
android:textSize="12sp"
android:textSize="16sp"
android:text="@string/settings_donate" />
</LinearLayout>
</LinearLayout>
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,12 @@
<string name="report_problem">Report Problem</string>
<string name="logcat_crash">ERROR! Submit a log?</string>
<string name="send_donation">Send a Donation</string>
<string name="settings_donate">Support development with a donation</string>
<string name="settings_donate">Support TagMo with a donation</string>
<string name="google_link">Donate with Google Play</string>
<string name="sponsor_link">Sponsor on GitHub</string>
<string name="paypal_link">Donate with PayPal</string>
<string name="kofi_link">Support on Ko-fi</string>
<string name="coffee_link">Buy me a coffee</string>
<string name="cancel_link">Cancel Subscription</string>
<string name="subscription_terms">By subscribing to monthly donations, a special banner will appear in settings for the duration of your subscription.\n\nYou may cancel your subscription at any time by using the button on this donation page or through Google Play.</string>
<string name="clear_foomiibo_set">Clear Foomiibo</string>
Expand Down

0 comments on commit 55869dd

Please sign in to comment.