General settings
-
-
+
+
+
+
+
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