VS Code 开启毛玻璃效果以及霓虹主题

效果:

必要插件

1、Custom CSS and JS Loader

首先安装插件:Custom CSS and JS Loader

用于自定义CSS和JS

2、SynthWare 84

关键字高亮主题、霓虹主题

vscode 设置

安装上述主题后,在 setting.json 里面加:

"terminal.integrated.rendererType": "dom"

样式配置

在任意位置新建两个文件(不会移动的位置,如桌面):

custom.css

:root{
--vibrancy-dark: rgba(0,0,0,.2);
--vibrancy-light: rgba(255,255,255,.2);
}
html {
background: transparent !important;
}.scroll-decoration {
box-shadow: none !important;
}.minimap {
opacity: 0.6;
background-color: transparent !important;
}.editor-container {
background: transparent !important;
}.search-view .search-widget .input-box, .search-view .search-widget .input-box .monaco-inputbox,
.monaco-workbench>.part.editor>.content>.one-editor-silo>.container>.title .tabs-container>.tab,
.monaco-editor-background,
.monaco-editor .margin,
.monaco-workbench>.part>.content,
.monaco-workbench>.editor>.content>.one-editor-silo.editor-one,
.monaco-workbench>.part.editor>.content>.one-editor-silo>.container>.title,
.monaco-workbench>.part>.title,
.monaco-workbench,
.monaco-workbench>.part,
body {
background: transparent !important;
}.editor-group-container>.tabs {
/* background-color: rgba(37, 37, 37,0.2) !important; */
background: transparent !important;
/* box-shadow: 0 1px 10px -2px gray; */
}.editor-group-container>.tabs .tab {
background-color: transparent !important;
}.editor-group-container>.tabs .tab.active * {
color: #fff !important;
background-color: transparent !important;
}.monaco-list.settings-toc-tree .monaco-list-row.focused {
outline-color: rgb(37, 37, 37,0.6) !important;
}.monaco-list.settings-toc-tree .monaco-list-row.selected,
.monaco-list.settings-toc-tree .monaco-list-row.focused,
.monaco-list .monaco-list-row.selected,
.monaco-list.settings-toc-tree:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) {
/* background-color: rgb(37, 37, 37,0.6) !important; */
color: #00aaee;
}.monaco-list.settings-editor-tree .monaco-list-row {
background-color: transparent !important;
outline-color: transparent !important;
}.monaco-inputbox {
background-color: rgba(41, 41, 41,0.2) !important;
}.monaco-editor .selected-text {
background-color: rgba(58, 61, 65,0.6) !important;
}.monaco-editor .focused .selected-text {
background-color: rgba(38, 79, 120,0.6) !important;
}.monaco-editor .view-overlays .current-line {
border-color: rgba(41, 41, 41,0.2) !important;
}.extension-editor,
.monaco-inputbox>.wrapper>.input,
.monaco-workbench>.part.editor>.content>.one-editor-silo>.container>.title .tabs-container>.tab.active,
.preferences-editor>.preferences-header,
.preferences-editor>.preferences-editors-container.side-by-side-preferences-editor .preferences-header-container,
.monaco-editor, .monaco-editor .inputarea.ime-input {
background: transparent !important;
}.editor-group-container>.tabs .tab {
border: none !important;
}
.panel.integrated-terminal,
.panel.integrated-terminal *{
background: transparent !important;
}

custom.js

nodeRequire('electron').remote.getCurrentWindow().setVibrancy('ultra-dark');

VsCode设置

在 vscode 的设置中添加如下代码:

"vscode_custom_css.imports": ["file:///Users/MyUserName/Documents/custom.css","file:///Users/MyUserName/Documents/custom.js"
],
"vscode_custom_css.policy": true

VsCode命令

在vscode 中执行命令(Commond+Shift+P):

Reload Custom CSS and JS

友情提示:这个效果只能在MacOS 上开启实现毛玻璃,因为electron 在 Windows上不支持透明窗体。

参考
https://www.fairyever.com/posts/vscode-beautify

今日寄语:

旅途中我们或许会丢失太阳,有的人选择继续寻找太阳,而有的人用别的东西取代了太阳。最后,有的人仍热活在白天,而有的人活在白夜。——《白夜行》

欢迎关注个人微信公众号:桃李报春

炫酷的VS Code毛玻璃效果相关推荐

  1. jquery 实现智能炫酷的翻页相册效果

    jquery 实现智能炫酷的翻页相册效果 巧妙的运用 Html 的文档属性,大大减少jquery 的代码量,实现了智能炫酷的翻页相册.兼容性很好,实现了代码与标签的完全分离 ​1. [代码]jquer ...

  2. 的图片怎么循环渲染_十分钟教你做个炫酷的图片切换过度效果

    做个炫酷的图片切换过度效果 首先,今天是520节日.到了520这类为情侣准备的节日,小编都会感到一万点暴击-- 首先酸一波,搞点事情(蹭波热度). 给大家分享一个520特效页面:看完记得回来为小编点个 ...

  3. 【每日一练】109—一款炫酷按钮的鼠标悬停效果

    文 | 杨小爱 写在前面 按钮,几乎是任何一个项目都会用到的一个组件,因此,今天,我们来练习一个好玩的鼠标效果,具体效果,请看下面的GIF截图: 我们看完了最终效果,现在,我们一起来看一下它的源码. ...

  4. 炫酷的汽车换色效果分享——X战警魔形女变身

    炫酷的汽车换色效果--X战警魔形女 原理: 1.使用ComputeShader在汽车网格上散布很多随机点,记下这些点的位置和法线. 2.使用DrawMeshInstancedIndirect在上面计算 ...

  5. 【CSS3】多款炫酷鼠标悬停图文动画效果

    演示效果: HTML代码如下: <!doctype html> <html lang="zh"> <head><meta charset= ...

  6. 炫酷canvas网页背景动画效果

    下载地址非常炫酷的网页背景旋转特效,基于canvas画布实现的网页背景动画效果 dd:

  7. js制作的炫酷3D太阳系行星运行效果

    想象着打开网页就能浏览太阳系行星的运行情况,促进我们更好的了解这个宇宙星空,于是找到了这样一段代码可以完美的实现这个功能,通过css和js就可以实现在网页上展示一个完美的太阳系行星的运行情况,效果炫酷 ...

  8. 炫酷的汽车幻化为粒子效果分享

    先上效果链接: https://www.bilibili.com/video/av75962636/ 之前在做动画的时候见到有人用Krakatoa粒子做过类似的效果,其中有些方法和技巧很值得借鉴,所以 ...

  9. mapv结合百度地图treejs实现炫酷三维大数据可视化效果

    随着大数据.云计算.物联网的诞生.大量的设备数据.传感器数据.行为数据.日志数据.基础画像数据.运行数据等等都对传统的数据展现提出了新的要求 .随着前端技术的不断成熟,客户对业务系统的要求也由原来的简 ...

最新文章

  1. 安卓开发笔记——自定义广告轮播Banner(实现无限循环)
  2. Hyperledger Fabric 1.0 实战开发系列 第⑤课 fabric 证书解析
  3. JAVA 的普通加法运算
  4. Spring Boot @Conditional 注解
  5. setsockopt设置socket状态
  6. 近期有哪些值得读的QA论文?
  7. C++ 超级玛丽制作揭秘(包含完整源文件与文档)
  8. 关于建站、服务器、云虚拟主机你想知道的都在这里!
  9. 台式计算机配置作业,大学计算机上机课作业.doc
  10. ubuntu16.04 安装 NVIDIA 显卡驱动 +cuda9.0+cudnn +tensorflow AND问题若干
  11. 2.8 zio入门——标准ZIO服务
  12. php 返回英文乱码,使用php 5时MySQL返回乱码的解决办法_php
  13. python账号怎么注销_登录后如何注销
  14. ubuntu开启键盘背光灯
  15. 数据仓库,数据集市,数据湖
  16. Windows注册表修改技巧
  17. db2 java 函数_DB2函数大全
  18. AD 绘图专题:无法切换中间层、无法中间层走线
  19. SQLServer MDF文件和LDF文件区别
  20. VLAN 数据帧的处理

热门文章

  1. vue脚手架基本使用
  2. 备受青睐的4D毫米波成像雷达,何以助力高阶自动驾驶落地?
  3. 一般人为什么不成功?(陈安之)--转载
  4. highcharts 点击事件
  5. wordpress主题 黑镜主题 2.0下载 卡片式主题 原创正版设计素材教程网站模板
  6. 想画一张版权属于你的图吗?AI作画,你也可以
  7. 计算机控制系统为什么会受到干扰,单片机控制系统受到干扰的主要原因和现象...
  8. phantomjs 配置和使用_PhantomJS 配置指南
  9. Chrome浏览器——复制网址+标题以及如何复制粘贴网页不能复制粘贴的内容
  10. 【安全防护技术】入侵检测技术