macOS transparency

This commit is contained in:
booploops 2022-02-17 22:45:59 -08:00
parent dd879b46c5
commit 231936c0c7
4 changed files with 26 additions and 4 deletions

View file

@ -452,7 +452,7 @@ const app = new Vue({
history.forward()
},
getHTMLStyle() {
document.querySelector("html").style.background = "#222";
// document.querySelector("html").style.background = "#222";
document.querySelector("body").classList.add("notransparency")
},
resetState() {

View file

@ -0,0 +1,17 @@
body[platform="darwin"] {
html {
background: transparent!important;
}
&.notransparency::before {
display: none;
}
#app {
&.simplebg {
background: transparent;
}
&::before {
display: none;
}
}
}

View file

@ -3110,5 +3110,6 @@ body[platform='darwin'] {
}
@import url("less/macos.less");
@import url("less/linux.less");
@import url("less/compact.less");