diff options
| author | Bix <bix@bixed.xyz> | 2025-08-16 17:32:18 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-08-16 17:32:18 +0200 |
| commit | 4cc4d315f00df1c1447b7a5ba3404d3c2000f98c (patch) | |
| tree | fca029e353606eec69e1c42f86470a8e86848eb9 /src/android | |
| parent | d96da5104bf7eb1385ce0fb3088efef71e059940 (diff) | |
[Frontend] add X links to About and Help (#272)
Based off the recent addition of revolt links.
Authored-by: Bix bix@bixed.xyz
Signed-off-by: Bix bix@bixed.xyz
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/272
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: Bix <bix@bixed.xyz>
Co-committed-by: Bix <bix@bixed.xyz>
Diffstat (limited to 'src/android')
5 files changed, 34 insertions, 0 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt index 6f0493cbf8..88ec13dd4c 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt @@ -96,6 +96,7 @@ class AboutFragment : Fragment() { binding.buttonDiscord.setOnClickListener { openLink(getString(R.string.discord_link)) } binding.buttonRevolt.setOnClickListener { openLink(getString(R.string.revolt_link)) } + binding.buttonX.setOnClickListener { openLink(getString(R.string.x_link)) } binding.buttonWebsite.setOnClickListener { openLink(getString(R.string.website_link)) } binding.buttonGithub.setOnClickListener { openLink(getString(R.string.github_link)) } diff --git a/src/android/app/src/main/res/drawable/ic_x.xml b/src/android/app/src/main/res/drawable/ic_x.xml new file mode 100644 index 0000000000..d93c8d6b63 --- /dev/null +++ b/src/android/app/src/main/res/drawable/ic_x.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="120" + android:viewportHeight="120"> + <path + android:fillColor="#000000" + android:pathData="M95.26,0H113L72.12,51.27L120,120H82.83L53.89,78.31L20.57,120H2.7L45.74,65.01L0,0H38.18L65.22,38.9Z" /> + </vector> diff --git a/src/android/app/src/main/res/layout-w600dp/fragment_about.xml b/src/android/app/src/main/res/layout-w600dp/fragment_about.xml index f6de2f590e..9d9cf10bf8 100644 --- a/src/android/app/src/main/res/layout-w600dp/fragment_about.xml +++ b/src/android/app/src/main/res/layout-w600dp/fragment_about.xml @@ -231,6 +231,17 @@ app:iconPadding="0dp" /> <com.google.android.material.button.MaterialButton + android:id="@+id/button_x" + style="@style/EdenButton.Secondary" + android:layout_width="56dp" + android:layout_height="56dp" + android:layout_marginEnd="12dp" + app:icon="@drawable/ic_x" + app:iconGravity="textStart" + app:iconSize="24dp" + app:iconPadding="0dp" /> + + <com.google.android.material.button.MaterialButton android:id="@+id/button_website" style="@style/EdenButton.Secondary" android:layout_width="56dp" diff --git a/src/android/app/src/main/res/layout/fragment_about.xml b/src/android/app/src/main/res/layout/fragment_about.xml index 67ad553036..aa8365608a 100644 --- a/src/android/app/src/main/res/layout/fragment_about.xml +++ b/src/android/app/src/main/res/layout/fragment_about.xml @@ -227,6 +227,18 @@ <com.google.android.material.button.MaterialButton style="@style/EdenButton.Secondary" + android:id="@+id/button_x" + android:layout_width="0dp" + android:layout_height="56dp" + android:layout_weight="1" + android:layout_marginEnd="8dp" + app:icon="@drawable/ic_x" + app:iconSize="24dp" + app:iconGravity="textStart" + app:iconPadding="0dp" /> + + <com.google.android.material.button.MaterialButton + style="@style/EdenButton.Secondary" android:id="@+id/button_website" android:layout_width="0dp" android:layout_height="56dp" diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml index d649ba08ac..f1991fee1b 100644 --- a/src/android/app/src/main/res/values/strings.xml +++ b/src/android/app/src/main/res/values/strings.xml @@ -444,6 +444,7 @@ <string name="user_data_import_failed_description">Make sure the user data folders are at the root of the zip folder and contain a config file at config/config.ini and try again.</string> <string name="discord_link" translatable="false">https://discord.gg/kXAmGCXBGD</string> <string name="revolt_link" translatable="false">https://rvlt.gg/qKgFEAbH</string> + <string name="x_link" translatable="false">https://x.com/edenemuofficial</string> <string name="website_link" translatable="false">https://eden-emu.dev</string> <string name="github_link" translatable="false">https://git.eden-emu.dev/eden-emu</string> |
