mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Added disable launch attached when close on launch is checked.
This commit is contained in:
parent
22102da217
commit
c595d3461b
@ -26,7 +26,7 @@
|
|||||||
* *
|
* *
|
||||||
* Element Styles *
|
* Element Styles *
|
||||||
* *
|
* *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
/* Reset body, html, and div presets. */
|
/* Reset body, html, and div presets. */
|
||||||
body, html, div {
|
body, html, div {
|
||||||
@ -1360,6 +1360,11 @@ body, button {
|
|||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
border: 1px solid rgba(126, 126, 126, 0.57);
|
border: 1px solid rgba(126, 126, 126, 0.57);
|
||||||
}
|
}
|
||||||
|
input:disabled + .toggleSwitchSlider {
|
||||||
|
background-color: rgb(77, 77, 77);
|
||||||
|
/* box-shadow: inset 2px 1px 20px black; */
|
||||||
|
border: 1px solid rgb(30, 31, 30)
|
||||||
|
}
|
||||||
.toggleSwitchSlider:before {
|
.toggleSwitchSlider:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "";
|
content: "";
|
||||||
@ -1372,6 +1377,11 @@ body, button {
|
|||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
transition: .4s;
|
transition: .4s;
|
||||||
}
|
}
|
||||||
|
input:checked:disabled + .toggleSwitchSlider {
|
||||||
|
background-color: rgb(74, 95, 71);
|
||||||
|
/* box-shadow: inset 2px 1px 20px black; */
|
||||||
|
border: 1px solid rgb(74, 83, 72)
|
||||||
|
}
|
||||||
input:checked + .toggleSwitchSlider {
|
input:checked + .toggleSwitchSlider {
|
||||||
background-color: rgb(31, 140, 11);
|
background-color: rgb(31, 140, 11);
|
||||||
/* box-shadow: inset 2px 1px 20px black; */
|
/* box-shadow: inset 2px 1px 20px black; */
|
||||||
|
@ -89,6 +89,19 @@ bindFileSelectors()
|
|||||||
* will be disabled until the value is corrected. This is an automated
|
* will be disabled until the value is corrected. This is an automated
|
||||||
* process. More complex UI may need to be bound separately.
|
* process. More complex UI may need to be bound separately.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
closeOnLaunchCheckbox = document.querySelector('input[cValue="CloseOnLaunch"]')
|
||||||
|
launchDetachedCheckbox = document.querySelector('input[cValue="LaunchDetached"]')
|
||||||
|
|
||||||
|
closeOnLaunchCheckbox.addEventListener('change', function() {
|
||||||
|
if (this.checked) {
|
||||||
|
launchDetachedCheckbox.disabled = true
|
||||||
|
launchDetachedCheckbox.checked = true
|
||||||
|
} else {
|
||||||
|
launchDetachedCheckbox.disabled = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
function initSettingsValidators(){
|
function initSettingsValidators(){
|
||||||
const sEls = document.getElementById('settingsContainer').querySelectorAll('[cValue]')
|
const sEls = document.getElementById('settingsContainer').querySelectorAll('[cValue]')
|
||||||
Array.from(sEls).map((v, index, arr) => {
|
Array.from(sEls).map((v, index, arr) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user