Atom设置透明背景色

打开atom的自定义样式

  • 在Atom里 快捷键Ctrl+Shift+P, 输入 “open your stylesheet”
  • 在Atom里 快捷键Ctrl+Shift+P 输入"Welcome guide",在打开的面板里选择“Customize the Styling”-"Open your stylesheet"

编辑打开的style.less

atom 版本1.7+
插入以下内容

html, html * {
  background: rgba(0, 0, 0, 0) !important;
}

atom-pane, atom-panel, atom-notification {
  background: rgba(0, 0, 0, 0.5) !important;
}

atom-overlay > * {
  background: rgba(0, 0, 0, 0.9) !important;
}

atom-text-editor::shadow {
  .cursor-line {
    background-color: rgba(0, 0, 0, 0.2) !important;
  }
  .selection .region {
    background-color: rgba(0, 0, 0, 0.2) !important;
  }
  .gutter {
    background-color: rgba(0, 0, 0, 0) !important;
  }
}

如果Atom版本Pre-1.9的

html * {
  background: rgba(0, 0, 0, 0) !important;
}

如果版本是1.9+的

html, html * {
  background: rgba(0, 0, 0, 0) !important;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值