From d75a0ecdffb02b4652c23e67cf659ba3c64d7470 Mon Sep 17 00:00:00 2001 From: GabiZar Date: Fri, 16 Jan 2026 15:52:00 +0100 Subject: [PATCH] update css --- renderer/index.html | 7 +++++-- renderer/renderer.js | 3 +++ renderer/style.css | 44 ++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 50 insertions(+), 4 deletions(-) diff --git a/renderer/index.html b/renderer/index.html index b5be715..beef266 100644 --- a/renderer/index.html +++ b/renderer/index.html @@ -82,8 +82,11 @@ diff --git a/renderer/renderer.js b/renderer/renderer.js index 9200056..a7193d2 100644 --- a/renderer/renderer.js +++ b/renderer/renderer.js @@ -57,5 +57,8 @@ async function autoDetectGamePath() { const defaultSilksongPath = "C:/Program Files (x86)/Steam/steamapps/common/Hollow Knight Silksong/Hollow Knight Silksong.exe" if (files.fileExists(defaultSilksongPath)) { await save.saveSilksongPath(defaultSilksongPath) + if (document.getElementById("silksong-path-input")) { + document.getElementById("silksong-path-input").value = await save.loadSilksongPath() + } } } \ No newline at end of file diff --git a/renderer/style.css b/renderer/style.css index a07d823..6a55ab0 100644 --- a/renderer/style.css +++ b/renderer/style.css @@ -135,10 +135,50 @@ input[type="range"] { width: 100%; } +.silksong-path-div { + display: flex; + align-items: center; + gap: 20px; +} + +.silksong-path-input { + flex: 1; + height: 30px; + padding: 0 12px; + background: rgba(0, 0, 0, 0.4); + border: 1px solid #ff6b6b; + border-radius: 4px; + color: #eee; + font-size: 13px; + outline: none; + transition: all 0.2s ease; +} + +.silksong-path-input:hover { + background: rgba(0, 0, 0, 0.55); + border-color: rgba(255, 25, 0, 0.3); +} + +.silksong-path-input:focus { + background: rgba(0, 0, 0, 0.65); + border-color: rgba(255, 25, 0, 0.3); + box-shadow: 0 0 0 1px rgba(255, 25, 0, 0.2); +} + .default-button { - + width: 40px; + height: 40px; + background: rgba(0, 0, 0, 0.4); + border: 1px solid #ff6b6b; + border-radius: 4px; + color: #eee; + cursor: pointer; + text-align: left; + font-size: 10px; + transition: all 0.2s ease; } .default-button:hover { - + background: rgba(255, 72, 0, 0.2); + border-color: rgba(255, 25, 0, 0.3); } \ No newline at end of file