add alerts dark theme
This commit is contained in:
parent
2de6cc11cf
commit
c2a75319dc
|
@ -7,7 +7,6 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="icon" type="image/png" href="../assets/logo.png" />
|
<link rel="icon" type="image/png" href="../assets/logo.png" />
|
||||||
<link href="../assets/mdb.min.css" rel="stylesheet" />
|
<link href="../assets/mdb.min.css" rel="stylesheet" />
|
||||||
<link href="../assets/sweetalert2.dark.css" rel="stylesheet" />
|
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
|
@ -22,16 +22,16 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
if (success) {
|
if (success) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Success!',
|
title: 'Success!',
|
||||||
text: 'osu! folder set!',
|
text: 'osu! folder set.',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
confirmButtonText: 'Cool'
|
confirmButtonText: 'Cool'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Uh oh!',
|
title: 'Uh oh!',
|
||||||
text: 'failed to set osu! folder.',
|
text: 'The selected folder is not a osu! directory.',
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
confirmButtonText: 'Cool'
|
confirmButtonText: 'Oops.. my bad!'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -46,6 +46,11 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
$("#launch-btn").attr('disabled', false);
|
$("#launch-btn").attr('disabled', false);
|
||||||
$('#launch-btn').html('Update');
|
$('#launch-btn').html('Update');
|
||||||
break;
|
break;
|
||||||
|
case "missing-folder":
|
||||||
|
$('#launch-btn').html('Please set your osu folder!');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// workaround for the dark theme
|
||||||
|
$('head').append($('<link href="../assets/sweetalert2.dark.css" rel="stylesheet" />'));
|
||||||
})
|
})
|
Loading…
Reference in New Issue
Block a user