Add link to Android app

This commit is contained in:
redphx
2024-03-16 17:17:45 +07:00
parent af5e92057d
commit b2adc5b365

View File

@@ -1142,10 +1142,10 @@ const Translations = {
"Emuluj kontroler za pomocą myszy i klawiatury",
"Emular controlador com mouse e teclado",
"Эмулировать контроллер с помощью мыши и клавиатуры",
"Klavye ve fare desteğini aktive et",
"Klavye ve fareyle oyun kumandasını taklit et",
"Емуляція контролера за допомогою миші та клавіатури",
"Giả lập tay cầm bằng Chuột và Bàn phím",
"启用鼠标和键盘支持",
"使用键鼠模拟手柄输入",
],
"enable-quick-glance-mode": [
"\"Kurzer Blick\"-Modus aktivieren",
@@ -1385,6 +1385,23 @@ const Translations = {
"Nhập",
"导入",
],
"install-android": [
"\"Better xCloud\" App für Android installieren",
,
"Install Better xCloud app for Android",
,
,
,
"Android用のBetter xCloudをインストール",
,
,
"Instalar o aplicativo Better xCloud para Android",
"Установите приложение Better xCloud для Android",
,
"Встановити додаток Better xCloud для Android",
"Cài đặt ứng dụng Better xCloud cho Android",
"安装Better xCloud安卓客户端",
],
"keyboard-shortcuts": [
"Tastatur-Shortcuts",
"Pintasan keyboard",
@@ -8410,6 +8427,10 @@ a.bx-button {
white-space: nowrap;
}
a.bx-button.bx-full-width {
text-align: center;
}
.bx-remote-play-button {
height: auto;
margin-right: 8px !important;
@@ -10229,6 +10250,20 @@ function injectSettingsButton($parent) {
$updateAvailable.classList.remove('bx-gone');
}
// Show link to Android app
if (!window.AppInterface) {
const userAgent = UserAgent.getDefault().toLowerCase();
if (userAgent.includes('android')) {
const $btn = createButton({
label: '🔥 ' + t('install-android'),
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE,
url: 'https://better-xcloud.github.io/android',
});
$wrapper.appendChild($btn);
}
}
// Render settings
const SETTINGS_UI = {
'Better xCloud': {