HanryYu / typora-blubook-theme

Blubook, a flat typora theme.
Apache License 2.0
513 stars 47 forks source link

目录出现scroll bar的时候颜色是否可以调统一啊? #35

Closed siriusmax closed 3 years ago

siriusmax commented 3 years ago

如果左边目录很多需要scroll bar的时候,颜色主题好像不是很统一。不过很棒的主题,感谢分享!

image

Higurashi-kagome commented 3 years ago

感谢使用和反馈,目前为止我没有遇到该问题(在 Windows 上测试),请确认主题是否为最新版本,如果是,麻烦提供详细的复现步骤。 @reposkeeper

一个可供参考的模板 1. 打开某某某...... 2. 点击某某某...... 3. 滚动到某某某...... 4. 问题出现
siriusmax commented 3 years ago

感谢你的回复。typora和主题都是最新的版本,不过我的是MacOS BigSur的环境。 复现的话,我其实没有什么特别的操作,大概尝试了这样会出现该问题:缩小窗口,直到左侧目录栏无法容纳所有条目, 这时候垂直的scroll bar会出现,颜色不统一。如果文件名过长则会导致水平的scroll bar出现,颜色同样不统一。不知道这样是否有帮助。

Higurashi-kagome commented 3 years ago

很有帮助,但很可惜我不方便在 MacOS 上测试,所以你能否提供帮助? @siriusmax

具体步骤是:

  1. 在 Typora 设置页中打开主题文件夹

  2. 使用编辑器打开主题文件夹下的 blubook.css 文件,并在文件末尾添加:

    Code ```CSS /*** scroll bar ***/ #typora-sidebar::-webkit-scrollbar { width: 8px !important; height: 8px !important; background-color: rgba(0,0,0,0) !important; position: absolute !important; } #typora-sidebar::-webkit-scrollbar-corner { background: 0 0 !important; } #typora-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.3) !important; background-clip: padding-box !important; } ```
  3. 保存文件后重启 Typora 进行测试,查看问题是否仍然存在

siriusmax commented 3 years ago

没问题。我按你描述的添加了,不过问题依然存在

Higurashi-kagome commented 3 years ago

我需要更多的信息才能够解决该问题,所以现在你可以选择通过邮箱(higurashi-kagome@qq.com)联系我,与我一起解决该问题,又或是尝试通过参考 Write Custom Theme for Typora 等资料自己来对 blubook.css 进行调试(有调试方面的问题也可以联系我)。当然,也可以等待作者修复该问题。 @siriusmax

HanryYu commented 3 years ago

我这边macOS bigsur下面的typora没有碰到这个问题,请确认一下是否是最新的typora版本 @siriusmax Macos版本:bigsur 11.1 Typora版本:0.9.9.36.2 (4901)

image
siriusmax commented 3 years ago

已确认是最新版本,但我找到一个workaround,将mac上的scrollbar选项从automatic调到when scrolling, 可以得到你截图的结果。 image

HanryYu commented 3 years ago

好的,如果有相同问题的小伙伴,可以参考设置一下