diff --git a/appStyle.css b/appStyle.css index 8e620ab..c343181 100644 --- a/appStyle.css +++ b/appStyle.css @@ -4,6 +4,7 @@ body{ height: 100vh; margin: 0px; background-color: none; + color:white !important; } @font-face { font-family: "lucide"; @@ -12,6 +13,7 @@ body{ } *{ font-family: system-ui, 'lucide'; + color:white !important; } navRail{ width: 100vw; @@ -38,4 +40,28 @@ forward::after{ padding-left:0.5em; font-size: 1.3em; color:white; +} +.fileMan li{ + list-style-type: ""; +} +.fileMan li.folder::before { + content: "\e333"; + border-radius: 0ch; + padding-inline: 0.5ch; + margin-inline-end: 0ch; + margin-left: -32.5px; +} +.fileMan li.fileGeneric::before { + content: "\e0c1"; + border-radius: 0ch; + padding-inline: 0.5ch; + margin-inline-end: 0ch; + margin-left: -32.5px; +} +.fileMan li.parentDir::before { + content: "\e04e"; + border-radius: 0ch; + padding-inline: 0.5ch; + margin-inline-end: 0ch; + margin-left: -32.5px; } \ No newline at end of file diff --git a/applications/fm.nvapp.html b/applications/fm.nvapp.html index 55a3c1c..3e947ae 100644 --- a/applications/fm.nvapp.html +++ b/applications/fm.nvapp.html @@ -1,19 +1,52 @@ - - - - - - - - - - -
- -
- - - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SymbolsNerdFont-Regular.ttf b/assets/SymbolsNerdFont-Regular.ttf new file mode 100644 index 0000000..c9263cc Binary files /dev/null and b/assets/SymbolsNerdFont-Regular.ttf differ diff --git a/libraries/foxyfs.js b/libraries/foxyfs.js index 19e3c61..3e73e48 100644 --- a/libraries/foxyfs.js +++ b/libraries/foxyfs.js @@ -72,9 +72,9 @@ window.foxyfs = { return el != ''; }); if (path.length == 0) { - var content = {}; + var content = []; for await (let [name, handle] of opfsRoot.entries()) { - content[name] = handle.kind + content.push({name: name, kind:handle.kind}) } return content; } @@ -87,15 +87,15 @@ window.foxyfs = { dirHandle = await dirHandle.getDirectoryHandle(item) } } - var content = {}; + var content = []; for await (let [name, handle] of dirHandle.entries()) { - content[name] = handle.kind + content.push({name: name, kind:handle.kind}) } return content; } else if (path.length == 1) { - var content = {}; + var content = []; for await (let [name, handle] of dirHandle.entries()) { - content[name] = handle.kind + content.push({name: name, kind:handle.kind}) } return content; } diff --git a/libraries/foxywincontent.js b/libraries/foxywincontent.js new file mode 100644 index 0000000..1703de2 --- /dev/null +++ b/libraries/foxywincontent.js @@ -0,0 +1,14 @@ +document.addEventListener("mousemove", function (e) { + setTimeout(function () { + window.parent.document.querySelector(".cur").style.top = `${e.clientY}px` + // console.log(e) + window.parent.document.querySelector(".cur").style.left = `${e.clientX}px` + if (e.srcElement.classList.contains("clickable")) { + window.parent.document.querySelector(".cur").style.background = "#0000FF"; + } + else { + window.parent.document.querySelector(".cur").style.background = "#FFFFFF" + } + console.log("hi") + }, 0) +}) \ No newline at end of file diff --git a/libraries/foxywm.js b/libraries/foxywm.js index a0919f9..625a594 100644 --- a/libraries/foxywm.js +++ b/libraries/foxywm.js @@ -110,14 +110,18 @@ export default function fwmInit() { } }, setName: function setName(id, name) { + console.log(window) if (id == "fwm.current") { console.log(lastWin) document.querySelector("[aria-describedby='" + lastWin.id + "'] wmcontent").dataset.title = name - document.querySelector("[aria-describedby='" + lastWin.id + "'] wmcontent").childeren[0].innerText = name + document.querySelector("[aria-describedby='" + lastWin.id + "']").children[0].innerText = name } else { - document.querySelector("[aria-describedby='" + id + "'] wmcontent").dataset.title = name - document.querySelector("[aria-describedby='" + id + "'] wmcontent").childeren[0].innerText = name + if(window.frameElement !== null){ + window.parent.alert("bogos binted") + } else { + window.document.querySelector("[aria-describedby='" + id + "'] wmcontent").dataset.title = name + window.document.querySelector("[aria-describedby='" + id + "']").children[0].innerText = name} } }, killAll: function (id){ diff --git a/script.js b/script.js index 05fb56b..a8fda00 100644 --- a/script.js +++ b/script.js @@ -62,4 +62,6 @@ topBar[0].addEventListener("mouseleave", function () { $("#WindowTitle")[0].innerText = "NovaOS"; $("#wb")[0].setAttribute("class", "noWin") }, 2000); -}) \ No newline at end of file +}) + +wm.windows.default("fm") \ No newline at end of file diff --git a/style.css b/style.css index 682a6b0..9bfeb07 100644 --- a/style.css +++ b/style.css @@ -127,3 +127,6 @@ body, html{ .ui-resizable-handle{ scale: 1.2; } +.ui-dialog-title{ + font-size:1.1em; +} \ No newline at end of file