From 11cce42f40bfe5bd4eacd605839affffb8e0de21 Mon Sep 17 00:00:00 2001 From: peunsu <44690893+peunsu@users.noreply.github.com> Date: Mon, 12 Feb 2024 05:12:39 +0000 Subject: [PATCH] Change the download url of distribution.json. Modify css style and image extension. --- README.md | 4 ++-- app/assets/css/launcher.css | 5 +++-- app/assets/js/distromanager.js | 2 +- app/assets/js/scripts/uibinder.js | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 00ac07898a..fe8d22ec48 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ If you download from the [Releases](https://github.com/peunsu/MRSLauncher/releas | Platform | File | | -------- | ---- | | Windows x64 | `MRS-Launcher-setup-VERSION.exe` | -| macOS x64 | `MRS-Launcher-setup-VERSION-x64.dmg` | -| macOS arm64 | `MRS-Launcher-setup-VERSION-arm64.dmg` | +| ~~macOS x64~~ | ~~`MRS-Launcher-setup-VERSION-x64.dmg`~~ | +| ~~macOS arm64~~ | ~~`MRS-Launcher-setup-VERSION-arm64.dmg`~~ | | Linux x64 | `MRS-Launcher-setup-VERSION.AppImage` | ## Console diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css index 1c4856cb42..585f97012a 100644 --- a/app/assets/css/launcher.css +++ b/app/assets/css/launcher.css @@ -2680,6 +2680,7 @@ input:checked + .toggleSwitchSlider:before { #newsArticleContentScrollable img, #newsArticleContentScrollable iframe { max-width: 95%; + height: auto; display: block; margin: 0 auto; } @@ -2858,9 +2859,9 @@ input:checked + .toggleSwitchSlider:before { height: 70px; width: auto; position: relative; - border: 2px solid white; + /* border: 2px solid white; */ box-sizing: border-box; - border-radius: 50%; + /* border-radius: 50%; */ } /* Logo container styles. */ diff --git a/app/assets/js/distromanager.js b/app/assets/js/distromanager.js index 92d4f81323..ea66fb3bc3 100644 --- a/app/assets/js/distromanager.js +++ b/app/assets/js/distromanager.js @@ -4,7 +4,7 @@ const ConfigManager = require('./configmanager') // Old WesterosCraft url. // exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json' -exports.REMOTE_DISTRO_URL = 'https://launcher.mysticred.space/distribution.json' +exports.REMOTE_DISTRO_URL = 'https://cdn.mysticred.space/launcher/distribution.json' const api = new DistributionAPI( ConfigManager.getLauncherDirectory(), diff --git a/app/assets/js/scripts/uibinder.js b/app/assets/js/scripts/uibinder.js index 5fe79df5e7..59650eaf30 100644 --- a/app/assets/js/scripts/uibinder.js +++ b/app/assets/js/scripts/uibinder.js @@ -69,7 +69,7 @@ async function showMainUI(data){ refreshServerStatus() setTimeout(() => { document.getElementById('frameBar').style.backgroundColor = 'rgba(0, 0, 0, 0.5)' - document.body.style.backgroundImage = `url('assets/images/backgrounds/${document.body.getAttribute('bkid')}.jpg')` + document.body.style.backgroundImage = `url('assets/images/backgrounds/${document.body.getAttribute('bkid')}.png')` $('#main').show() const isLoggedIn = Object.keys(ConfigManager.getAuthAccounts()).length > 0