From 14c02f614a1f23899d589fd8501f7c9bb6bf5316 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 13 May 2023 16:22:07 -0700 Subject: [PATCH] SETTINGS: Default values; bottom border on inputs. --- settings.html | 2 -- src/assets/index.css | 9 +++++++-- src/settings.js | 19 ++++++++++++++----- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/settings.html b/settings.html index e63703b..f7f2121 100644 --- a/settings.html +++ b/settings.html @@ -31,7 +31,6 @@ Minimum value:
-
@@ -41,7 +40,6 @@ Maximum distance:
-
diff --git a/src/assets/index.css b/src/assets/index.css index 3c09268..e971337 100755 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -173,11 +173,16 @@ div b.active.landable { border-color: transparent; border-radius: 0; 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 { - border-color: var(--main); + border-bottom: 1px solid var(--main); } .draggable { diff --git a/src/settings.js b/src/settings.js index fcc22fd..d09c4a1 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,9 +1,13 @@ -import 'bootstrap/dist/css/bootstrap.css' -import './assets/index.css' +import 'bootstrap/dist/css/bootstrap.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 ---- */ @@ -15,4 +19,9 @@ $('#closeBtn').on('click', () => { $('.backBtn').on('click', () => { ipcRenderer.send('LOAD_MAIN') -}) \ No newline at end of file +}) + +/* ------------------------------------------------------------------- insert current values ---- */ + +$('#minValue').attr('value', settings.minValue); +$('#maxDistance').attr('value', settings.maxDistance); \ No newline at end of file