mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-07-23 19:50:18 +00:00
Added Mastodon link to navigation drawer (bitfireAT/davx5#179)
* Added mastodon icon Signed-off-by: Arnau Mora <arnyminer.z@gmail.com> * Added mastodon link to drawer Signed-off-by: Arnau Mora <arnyminer.z@gmail.com> * Added mastodon link action Signed-off-by: Arnau Mora <arnyminer.z@gmail.com> * Mastodon icon tint Signed-off-by: Arnau Mora <arnyminer.z@gmail.com> * Added Mastodon icon to main Signed-off-by: Arnau Mora <arnyminer.z@gmail.com> Signed-off-by: Arnau Mora <arnyminer.z@gmail.com>
This commit is contained in:
parent
1f4398b21e
commit
53bd4866c3
|
@ -31,6 +31,11 @@ class OseAccountsDrawerHandler @Inject constructor(): BaseAccountsDrawerHandler(
|
|||
activity,
|
||||
Uri.parse("https://twitter.com/" + activity.getString(R.string.twitter_handle))
|
||||
)
|
||||
R.id.nav_mastodon ->
|
||||
UiUtils.launchUri(
|
||||
activity,
|
||||
Uri.parse("https://fosstodon.org/@davx5app")
|
||||
)
|
||||
|
||||
R.id.nav_webdav_mounts ->
|
||||
activity.startActivity(Intent(activity, WebdavMountsActivity::class.java))
|
||||
|
|
8
app/src/main/res/drawable/mastodon.xml
Normal file
8
app/src/main/res/drawable/mastodon.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!-- drawable/mastodon.xml -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path android:fillColor="@color/mastodon" android:pathData="M20.94,14C20.66,15.41 18.5,16.96 15.97,17.26C14.66,17.41 13.37,17.56 12,17.5C9.75,17.39 8,16.96 8,16.96V17.58C8.32,19.8 10.22,19.93 12.03,20C13.85,20.05 15.47,19.54 15.47,19.54L15.55,21.19C15.55,21.19 14.27,21.87 12,22C10.75,22.07 9.19,21.97 7.38,21.5C3.46,20.45 2.78,16.26 2.68,12L2.67,8.57C2.67,4.23 5.5,2.96 5.5,2.96C6.95,2.3 9.41,2 11.97,2H12.03C14.59,2 17.05,2.3 18.5,2.96C18.5,2.96 21.33,4.23 21.33,8.57C21.33,8.57 21.37,11.78 20.94,14M18,8.91C18,7.83 17.7,7 17.15,6.35C16.59,5.72 15.85,5.39 14.92,5.39C13.86,5.39 13.05,5.8 12.5,6.62L12,7.5L11.5,6.62C10.94,5.8 10.14,5.39 9.07,5.39C8.15,5.39 7.41,5.72 6.84,6.35C6.29,7 6,7.83 6,8.91V14.17H8.1V9.06C8.1,8 8.55,7.44 9.46,7.44C10.46,7.44 10.96,8.09 10.96,9.37V12.16H13.03V9.37C13.03,8.09 13.53,7.44 14.54,7.44C15.44,7.44 15.89,8 15.89,9.06V14.17H18V8.91Z" />
|
||||
</vector>
|
|
@ -25,6 +25,11 @@
|
|||
android:icon="@drawable/twitter"
|
||||
android:title="\@davx5app"
|
||||
tools:ignore="HardcodedText"/>
|
||||
<item
|
||||
android:id="@+id/nav_mastodon"
|
||||
android:icon="@drawable/mastodon"
|
||||
android:title="\@davx5app\@fosstodon.org"
|
||||
tools:ignore="HardcodedText"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
<color name="backgroundColor">@color/grey200</color>
|
||||
<color name="errorColor">@color/red700</color>
|
||||
|
||||
<color name="mastodon">#6364FF</color>
|
||||
|
||||
<!-- app theme -->
|
||||
|
||||
<style name="AppTheme.Base" parent="Theme.MaterialComponents.DayNight"/>
|
||||
|
|
Loading…
Reference in a new issue