From 4f3eaddfc73dd829a7495042e007f213438f14ee Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Sun, 23 Oct 2022 17:31:32 +0200 Subject: [PATCH] style sweetalert2 --- app.js | 1 - assets/launcher.css | 2 +- assets/sweetalert2.dark.css | 9 +++++++-- html/index.html | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index da4c12d..f69a66a 100644 --- a/app.js +++ b/app.js @@ -75,7 +75,6 @@ const run = () => { await tryLogin(mainWindow); await doUpdateCheck(mainWindow); if (platform === "linux") { - console.log("yes"); mainWindow.webContents.send('status_update', { type: "info", message: "We detected that you are running the Launcher under Linux. It's currently just compatible with Arch and the osu AUR package!" diff --git a/assets/launcher.css b/assets/launcher.css index 6a30c11..6a6105d 100644 --- a/assets/launcher.css +++ b/assets/launcher.css @@ -157,7 +157,7 @@ .btn-accent:hover { background: hsl(var(--main-accent), 93%, 42%); - color: #fff; + color: #fff ; } .btn-grey, diff --git a/assets/sweetalert2.dark.css b/assets/sweetalert2.dark.css index de00f11..a5544da 100644 --- a/assets/sweetalert2.dark.css +++ b/assets/sweetalert2.dark.css @@ -346,12 +346,17 @@ border: 0; border-radius: 0.25em; background: initial; - background-color: #7066e0; + background: hsl(var(--main-accent), 93%, 48%); color: #fff; + transition: all .35s ease; font-size: 1em; } + .swal2-styled.swal2-confirm:hover { + background: hsl(var(--main-accent), 93%, 42%); + color: #fff; + } .swal2-styled.swal2-confirm:focus { - box-shadow: 0 0 0 3px rgba(112, 102, 224, 0.5); + box-shadow: 0 0 0 0px rgba(112, 102, 224, 0.0); } .swal2-styled.swal2-deny { border: 0; diff --git a/html/index.html b/html/index.html index ca5887a..dc86598 100644 --- a/html/index.html +++ b/html/index.html @@ -25,7 +25,7 @@
-
+
- Not right? + Not correct?