Skip to content

Commit

Permalink
updages :3
Browse files Browse the repository at this point in the history
  • Loading branch information
novafurry committed May 13, 2024
1 parent 0e62b57 commit 30a3790
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 8 deletions.
20 changes: 13 additions & 7 deletions appStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ body {
color: white !important;
cursor: none;
}


@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:ital,wght@0,400..700;1,400..700&display=swap');

* {
font-family: 'lucide', system-ui;
color: white !important;
font-family: "lucide","Familjen Grotesk", sans-serif;
font-optical-sizing: auto;
font-weight: normal;
font-style: normal;
font-size: 1em;
user-select: none;
transition: transform 0.15s ease;
-webkit-user-drag: none;
color: white;
}

navRail {
Expand Down Expand Up @@ -107,11 +113,11 @@ button {
}

*::-webkit-scrollbar-track {
background: var(--scroll-bar-bg-color);
background: red;
}

*::-webkit-scrollbar-thumb {
background-color: var(--scroll-bar-color);
background-color: red;
border-radius: 20px;
border: 3px solid var(--scroll-bar-bg-color);
border: 3px solid red;
}
1 change: 1 addition & 0 deletions assets/.~lock.Thermoregulation-1.docx#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,fox,fox-uwuntu,13.05.2024 12:36,file:///home/fox/.config/libreoffice/4;
Binary file added assets/Thermoregulation-1.docx
Binary file not shown.
Binary file added assets/Untitled.mblock
Binary file not shown.
Binary file added assets/allscroll.cur
Binary file not shown.
Binary file added assets/hscroll.cur
Binary file not shown.
Binary file added assets/mLink-1.2.0-amd64.deb
Binary file not shown.
Binary file added assets/vscroll.cur
Binary file not shown.
16 changes: 16 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,25 @@ wm.events.setOnEnter(
$("#wb")[0].setAttribute("class", "");
clearTimeout(timeout);
})
function isScrollable(element) {
if(element.scrollWidth > element.clientWidth && element.scrollHeight > element.clientHeight){
return "all"
} else if(element.scrollWidth > element.clientWidth){
return "hor"
} else if(element.scrollHeight > element.clientHeight){
return "vert"
} else {
return "no"
}
};
wm.events.setOnClose(function () { $("#WindowTitle")[0].innerText = "NovaOS"; $("#wb")[0].setAttribute("class", "noWin") })
document.addEventListener("mousemove", function (e) {
setTimeout(function () {
if(isScrollable(e.srcElement) == "vert"){
e.srcElement.style.cursor = "url ('../assets/vscroll.cur')"
} else if(isScrollable(e.srcElement) == "hor"){
e.srcElement.style.cursor = "url ('../assets/hscroll.cur')"
} else if(isScrollable(e.srcElement) == "all"){}
document.querySelector(".cur").style.top = `${e.clientY}px`
// console.log(e)
document.querySelector(".cur").style.left = `${e.clientX}px`
Expand Down
7 changes: 6 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ html {
border-radius: 20px;
border: 3px solid var(--scroll-bar-bg-color);
}

*::-webkit-scrollbar:vertical{
cursor:url("assets/vscroll.cur")
}
*::-webkit-scrollbar:horizontal{
cursor:url("assets/hscroll.cur")
}
#logo {
vertical-align: middle;
}
Expand Down

0 comments on commit 30a3790

Please sign in to comment.