Skip to content

Commit 8429bc8

Browse files
committed
hotfix
1 parent 2305617 commit 8429bc8

File tree

5 files changed

+45
-13
lines changed

5 files changed

+45
-13
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import createBareServer from "@tomphttp/bare-server-node";
22
import http from "node:http";
3+
import nodeStatic from "node-static";
34

45
const httpServer = http.createServer();
6+
const serve = new nodeStatic.Server('static/');
57

68
const bareServer = createBareServer("/", {
79
logErrors: false,

static/index.css

-4
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
/* shell */
120120
--shell-background: #1e1e1e;
121121
--shell-outline-color: #272727;
122-
--shell-border-color: #1e1e1e;
123122
--shell-color: #cecece;
124123
--button-app-close-color: #ffaaaa;
125124
--button-app-close-hover-background: #da4343;
@@ -218,7 +217,6 @@
218217
/* shell */
219218
--shell-background: #161062;
220219
--shell-outline-color: #efe688;
221-
--shell-border-color: #161062;
222220
--shell-color: #fff7a5;
223221
--button-app-close-color: #ffaaaa;
224222
--button-app-close-hover-background: #da4343;
@@ -317,7 +315,6 @@
317315
/* shell */
318316
--shell-background: #313131;
319317
--shell-outline-color: #ff40f7;
320-
--shell-border-color: #313131;
321318
--shell-color: #ff40f7;
322319
--button-app-close-color: #ffaaaa;
323320
--button-app-close-hover-background: #da4343;
@@ -977,7 +974,6 @@ li {
977974
background-color: var(--shell-background);
978975
border-bottom-left-radius: 13px;
979976
border-bottom-right-radius: 13px;
980-
border-bottom: 1px solid var(--shell-border-color);
981977
font-size: 21px;
982978
font-family: prod;
983979
z-index: 4;

static/index.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,14 @@ appsOpen.onclick = () => {
384384
shell.classList.add("noShadow");
385385
document.querySelector("#appSearch").value = "";
386386
for(let i = 0; i < apps.length; i++) {
387-
apps[i].classList.remove("appShow")
388-
apps[i].classList.remove("appHide")
387+
apps[i].classList.remove("appShow");
388+
apps[i].classList.remove("appHide");
389389
}
390+
let pos = appsOpen.getBoundingClientRect();
391+
let posTop = pos.top + 6;
392+
let posLeft = pos.left + 6;
393+
appsClose.style.top = posTop + "px";
394+
appsClose.style.left = posLeft + "px";
390395
}
391396

392397
appsClose.onclick = () => {
@@ -425,7 +430,6 @@ if(localStorage.getItem("powd") == null) {
425430

426431
if(localStorage.getItem("dockPos").toLowerCase() == "left") {
427432
const acs = document.querySelectorAll(".activeSpan");
428-
console.log(acs);
429433
for (let i = 0; i < acs.length; i++) {
430434
const element = acs[i];
431435
element.classList.add(`left`);

static/js/windows.js

+32-2
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ function windows(link, icn, title, browser = Boolean, os = Boolean, fullscreen =
919919
localStorage.setItem(appName, a++);
920920
newwin.querySelector('.mini').onclick = () => {
921921
newwin.classList.add("winmini");
922+
document.querySelector(`[data-appid="${windowID}"]`).classList.remove("active");
922923
if(maxState === true) {
923924
newwin.classList.remove("maxiY");
924925
}
@@ -1224,8 +1225,34 @@ var availableApps = ["browser", "hypertabs", "code", "youtube", "apple music", "
12241225

12251226
window.addEventListener("keydown", (e) => {
12261227
if(e.altKey && e.key === "w") {
1227-
const openApps = document.querySelector("#appsOpen");
1228-
openApps.click();
1228+
if(document.querySelector("#main").classList.contains("closedA")) {
1229+
document.querySelector(".appsDesk").classList.toggle("openA");
1230+
main.classList.toggle("open");
1231+
main.classList.toggle("closedA");
1232+
document.querySelector(".showDesk").classList.add("noBorderRadius");
1233+
shell.classList.add("noShadow");
1234+
document.querySelector("#appSearch").value = "";
1235+
for(let i = 0; i < apps.length; i++) {
1236+
apps[i].classList.remove("appShow");
1237+
apps[i].classList.remove("appHide");
1238+
}
1239+
let pos = appsOpen.getBoundingClientRect();
1240+
let posTop = pos.top + 6;
1241+
let posLeft = pos.left + 6;
1242+
appsClose.style.top = posTop + "px";
1243+
appsClose.style.left = posLeft + "px";
1244+
} else if(!document.querySelector("#main").classList.contains("closedA")) {
1245+
document.querySelector(".appsDesk").classList.toggle("openA");
1246+
main.classList.toggle("open");
1247+
main.classList.toggle("closedA");
1248+
document.querySelector(".showDesk").classList.remove("noBorderRadius");
1249+
shell.classList.remove("noShadow");
1250+
document.querySelector("#appSearch").value = "";
1251+
for(let i = 0; i < apps.length; i++) {
1252+
apps[i].classList.remove("appShow")
1253+
apps[i].classList.remove("appHide")
1254+
}
1255+
}
12291256
}
12301257
if(e.ctrlKey && e.altKey && e.key == "q") {
12311258
e.preventDefault();
@@ -1295,6 +1322,9 @@ window.addEventListener("keydown", (e) => {
12951322
currentWindow.classList.add("winNotFocus");
12961323
nextWindow.classList.remove("winNotFocus");
12971324
nextWindow.classList.add("winFocus");
1325+
if(nextWindow.classList.contains("winmini")) {
1326+
nextWindow.classList.remove("winmini");
1327+
}
12981328
const appItem = document.querySelectorAll(".appItem");
12991329
for (let i = 0; i < appItem.length; i++) {
13001330
const element = appItem[i];

static/styles/settings.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
--cat-background: #0e0a40;
7272
--title-border-color: #ffe688;
7373
--white: #ffe688;
74-
--button-background: #0e0a40;
74+
--button-background: #3b3497;
7575
--button-boxShadow: none;
7676
--button-boxShadow-hover: 0 0 8px 4px #ffe688;
7777
--button-color: #ffe688;
@@ -83,7 +83,7 @@
8383
--switch-back: #332c84;
8484
--switch-back-shadow: #ffe6887d;
8585
--dropdown-boxShadow-hover: #ffe688;
86-
--dropdown-button-background: #0e0a40;
86+
--dropdown-button-background: #19126c;
8787
--dropdown-button-background-hover: #ffe688;
8888
--dropdown-button-color-hover: #0e0a40;
8989
}
@@ -264,7 +264,7 @@ body {
264264
}
265265

266266
.btn.night {
267-
background-color: #0e0a40;
267+
background-color: #3b3497;
268268
box-shadow: none;
269269
color: #ffe688;
270270
border-radius: 4px;
@@ -425,7 +425,7 @@ input[type=number] {
425425
}
426426

427427
.dropbtn {
428-
background-color: #ff3ff5;
428+
background-color: var(--dropdown-button-background-hover);
429429
box-shadow: 0 0 8px 2px var(--dropdown-boxShadow-hover);
430430
color: var(--dropdown-button-color-hover);
431431
border: none;

0 commit comments

Comments
 (0)