【dark模式】简单毛玻璃 #1813
Replies: 9 comments 11 replies
-
请问为啥独立面板的主题会不一样 |
Beta Was this translation helpful? Give feedback.
-
please help me with dark mode for pdf. Thanks in advance. 请帮助我使用 pdf 的暗模式。 提前致谢 Please build a dark mode for pdf option. Thank you. I love Saladict. |
Beta Was this translation helpful? Give feedback.
-
Okay Thanks
…On Mon, Oct 24, 2022, 07:16 CRIMX ***@***.***> wrote:
It seems not possible by default. This workaround
<mozilla/pdf.js#2071 (comment)>
works but *bookmarklet* is not supported on Browser Extensions. Saladict
has to implement it as a new option.
If you want to try it now, press F12 on the PDF page, paste below on the
console input and press ↵
document.getElementById('viewer').style.filter = 'invert(64%) contrast(228%) brightness(80%) hue-rotate(180deg)'
—
Reply to this email directly, view it on GitHub
<#1813 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWGOFCVIN2PD3DNRZP3YSTTWEXWONANCNFSM56ON2KKQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
.menuBar {
} |
Beta Was this translation helpful? Give feedback.
-
但是不知道博主有没有方法将独立窗口也变透明啊 |
Beta Was this translation helpful? Give feedback.
-
分享 + 备份一下我改的效果 : ) .menuBar {
background-color: #00000000;
}
.dictPanel-Root {
--color-brand: #F9690E !important;
--color-rgb-background: #00000000 !important;
--color-font: #ddd !important;
--color-divider: #4d4748 !important;
--darkreader-bg--color-background: #00000000;
--darkreader-border--color-font: #333333 !important;
--darkreader-bg--color-divider: #333333 !important;
--darkreader-border--color-divider: #333333 !important;
background: linear-gradient(145deg, #00000000, #00000000) !important;
background-image: linear-gradient(145deg, #00000000, #00000000);
background: #0000009c !important;
border: 1px solid #33333333;
border-radius: 7px;
/*box-shadow: rgb(0 0 0) 0 0px 30px 10px;*/
backdrop-filter: blur(25px);
}
.darkMode .saladict-theme {
background-color: #00000000 !important;
--color-background: #00000000 !important;
}
.mtaBox-DrawerBtn {
background-color: #00000000;
} |
Beta Was this translation helpful? Give feedback.
-
目前只适配了「黑暗模式」
适合常看黑色背景网页(比如我是使用 Dark Reader 插件强制转换没有黑色模式的网页)的情况
问题:独立面板和白色背景情况下,由于面板本身的白色底色,显示为灰色, 可以调整
background: #1818189c !important;
->background: #181818cc !important;
,三种情况下的效果都是接近的黑色,但是黑色网页时透明效果变差,自行选择。「目前暂无更好的解决方式」旧 2022/8/13
Beta Was this translation helpful? Give feedback.
All reactions