Skip to content

是否可以关闭浮窗透明功能 #33

Closed
@aptexd

Description

@aptexd

开发这你好
当鼠标放到引用块上时会有弹窗弹出内容
弹窗可能是为了和全局统一,也是透明得
这样弹窗内容会和背景文档重合在一起,多级浮窗会重叠得更厉害
这样十分不利于阅读和编辑
不知开发者能否将浮窗设置为不透明,或者增加设置选项,即使全局不透明也可以

Activity

Zuoqiu-Yingyi

Zuoqiu-Yingyi commented on May 5, 2022

@Zuoqiu-Yingyi
Owner

浮窗透明颜色是有 CSS 变量 --custom-popover-background-color 控制的, 可以使用如下方案自定义

  1. 新建文件 data\widgets\custom-dark.cssdata\widgets\custom-light.css, 这两个文件分别是暗色与亮色的用户自定义配置文件
  2. 在该文件中添加如下内容
:root {
    --custom-popover-background-color: <想要设置的颜色>;
}
  1. 分别设置想要的不透明颜色, 或者直接在文件 data\widgets\custom.css 中使用内置定义不透明颜色 --custom-components-light--custom-components--custom-components-deep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @aptexd@Zuoqiu-Yingyi

        Issue actions

          是否可以关闭浮窗透明功能 · Issue #33 · Zuoqiu-Yingyi/siyuan-theme-dark-plus