Compare commits
No commits in common. "4382b57e9eefaec0ef7d4d15215c8c726f4c7303" and "0b6507e52a48ca606e38491315b0f3497b2702a2" have entirely different histories.
4382b57e9e
...
0b6507e52a
@ -4,8 +4,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
// console.log(window.screen.width)
|
// console.log(window.screen.width)
|
||||||
wde = new WebDesktopEnvironment
|
wde = new WebDesktopEnvironment
|
||||||
if (!WebDesktopEnvironment.isMobile){
|
if (!WebDesktopEnvironment.isMobile){
|
||||||
// WebDesktopEnvironment.Open("finder", ["/home/user"])
|
WebDesktopEnvironment.Open("finder", ["/home/user"])
|
||||||
WebDesktopEnvironment.Open("blog-viewer", ["/home/user/blog/test-1.blog"])
|
// WebDesktopEnvironment.Open("blog-viewer", ["/home/user/blog/test-1.blog"])
|
||||||
// WebDesktopEnvironment.Open("personal-properties", ["kek"])
|
// WebDesktopEnvironment.Open("personal-properties", ["kek"])
|
||||||
} else {
|
} else {
|
||||||
WebDesktopEnvironment.Open("blog-viewer", ["/home/user/blog/test-1.blog"])
|
WebDesktopEnvironment.Open("blog-viewer", ["/home/user/blog/test-1.blog"])
|
||||||
@ -150,7 +150,7 @@ class WebDesktopEnvironment{
|
|||||||
newWindow.style.height = height.toString() + "px"
|
newWindow.style.height = height.toString() + "px"
|
||||||
|
|
||||||
document.body.querySelector('#windows-layer').appendChild(newWindow)
|
document.body.querySelector('#windows-layer').appendChild(newWindow)
|
||||||
// WindowsCompositor.bringWindowToFront(newWindow)
|
WindowsCompositor.bringWindowToFront(newWindow)
|
||||||
return newWindow
|
return newWindow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -274,13 +274,11 @@ class WindowsCompositor{
|
|||||||
* @param {HTMLElement} window
|
* @param {HTMLElement} window
|
||||||
*/
|
*/
|
||||||
static bringWindowToFront(window){ //FIXME
|
static bringWindowToFront(window){ //FIXME
|
||||||
let previousWindow = WindowsCompositor.windowsLayer.lastChild
|
|
||||||
if (window != previousWindow){
|
|
||||||
WindowsCompositor.windowsLayer.insertBefore(previousWindow, window)
|
|
||||||
}
|
|
||||||
if (!window.classList.contains("Focused")){
|
if (!window.classList.contains("Focused")){
|
||||||
|
let previousWindow = WindowsCompositor.windowsLayer.lastChild
|
||||||
previousWindow.classList.remove("Focused")
|
previousWindow.classList.remove("Focused")
|
||||||
window.classList.add("Focused")
|
window.classList.add("Focused")
|
||||||
|
WindowsCompositor.windowsLayer.insertBefore(WindowsCompositor.windowsLayer.lastChild, window)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
box-shadow: 2px 2px 0px #555555;
|
box-shadow: 2px 2px 0px #555555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.WindowFrameShadow.Focused {
|
.Focused .WindowFrameShadow {
|
||||||
box-shadow: 2px 2px 0px #000000;
|
box-shadow: 2px 2px 0px #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ConvexElement.Focused {
|
.Focused .ConvexElement {
|
||||||
box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.25),
|
box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.25),
|
||||||
inset -1px -1px 0px rgba(0, 0, 0, 0.27),
|
inset -1px -1px 0px rgba(0, 0, 0, 0.27),
|
||||||
inset 1px 1px 0px #FFFFFF;
|
inset 1px 1px 0px #FFFFFF;
|
||||||
@ -45,7 +45,7 @@
|
|||||||
border: 1px solid #555555;
|
border: 1px solid #555555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Focused .AdjectiveElement {
|
.Focused .AdjectiveElement {
|
||||||
border: 1px solid #000000;
|
border: 1px solid #000000;
|
||||||
box-shadow: -1px -1px 0px rgba(0, 0, 0, 0.25),
|
box-shadow: -1px -1px 0px rgba(0, 0, 0, 0.25),
|
||||||
1px 1px 0px #FFFFFF;
|
1px 1px 0px #FFFFFF;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="Drag" class="VisualDragArea"></div>
|
<div id="Drag" class="VisualDragArea"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ContentBorder AdjectiveElement">
|
<div class="ContentBorder">
|
||||||
<div class="blog-viewer ScrollContent">
|
<div class="blog-viewer ScrollContent">
|
||||||
{{ range $block := .blocks }}
|
{{ range $block := .blocks }}
|
||||||
<div class="{{$block.Type}}" >
|
<div class="{{$block.Type}}" >
|
||||||
|
Loading…
Reference in New Issue
Block a user