SETTINGS: Default values; bottom border on inputs.

This commit is contained in:
punkfairie 2023-05-13 16:22:07 -07:00
parent e519bdbcdf
commit 14c02f614a
3 changed files with 21 additions and 9 deletions

View file

@ -31,7 +31,6 @@
Minimum value: Minimum value:
</label> </label>
<div class="col-2 system charted p-0"> <div class="col-2 system charted p-0">
<!-- TODO INSERT CURRENT VALUE -->
<input type="text" class="form-control" id="minValue"> <input type="text" class="form-control" id="minValue">
</div> </div>
</div> </div>
@ -41,7 +40,6 @@
Maximum distance: Maximum distance:
</label> </label>
<div class="col-2 system charted p-0"> <div class="col-2 system charted p-0">
<!-- TODO INSERT CURRENT VALUE -->
<input type="text" class="form-control" id="maxDistance"> <input type="text" class="form-control" id="maxDistance">
</div> </div>
</div> </div>

View file

@ -173,11 +173,16 @@ div b.active.landable {
border-color: transparent; border-color: transparent;
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
color: inherit;
font-size: inherit;
font-family: inherit;
font-style: inherit;
text-shadow: inherit;
text-align: center;
} }
/* SET THIS TO PARENT VIA CSS */
.form-control:focus { .form-control:focus {
border-color: var(--main); border-bottom: 1px solid var(--main);
} }
.draggable { .draggable {

View file

@ -1,9 +1,13 @@
import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap/dist/css/bootstrap.css';
import './assets/index.css' import './assets/index.css';
import './assets/ldom.min' import './assets/ldom.min';
const { ipcRenderer } = require('electron') const { ipcRenderer } = require('electron');
import { Settings } from './models/Settings';
const settings = Settings.get();
/* -------------------------------------------------------------------- close window handler ---- */ /* -------------------------------------------------------------------- close window handler ---- */
@ -16,3 +20,8 @@ $('#closeBtn').on('click', () => {
$('.backBtn').on('click', () => { $('.backBtn').on('click', () => {
ipcRenderer.send('LOAD_MAIN') ipcRenderer.send('LOAD_MAIN')
}) })
/* ------------------------------------------------------------------- insert current values ---- */
$('#minValue').attr('value', settings.minValue);
$('#maxDistance').attr('value', settings.maxDistance);