Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] linux版,没有使用系统的标题栏和边框,非常突兀,与系统不协调 #210

Open
witt-bit opened this issue Mar 28, 2024 · 6 comments

Comments

@witt-bit
Copy link

image

@tiny-craft
Copy link
Owner

这个是哪个发行版的Linux😂

@witt-bit
Copy link
Author

witt-bit commented Apr 1, 2024

这个是哪个发行版的Linux😂

❯ screenfetch

 ██████████████████  ████████     witt@witt-SwiftHealth-Manjaro
 ██████████████████  ████████     OS: Manjaro 23.1.4 Vulcan
 ██████████████████  ████████     Kernel: x86_64 Linux 6.6.19-1-MANJARO
 ██████████████████  ████████     Uptime: 3h 12m
 ████████            ████████     Packages: 1470
 ████████  ████████  ████████     Shell: zsh 5.9
 ████████  ████████  ████████     Resolution: 3840x1080
 ████████  ████████  ████████     DE: KDE 5.115.0 / Plasma 5.27.11
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: WhiteSur-Dark-nord [GTK2/3]
 ████████  ████████  ████████     Icon Theme: WhiteSur-dark
 ████████  ████████  ████████     Disk: 282G / 1.2T (26%)
 ████████  ████████  ████████     CPU: Intel Core i7-10700 @ 16x 4.8GHz [62.0°C]
 ████████  ████████  ████████     GPU: Mesa Intel(R) UHD Graphics 630 (CML GT2)
                                  RAM: 13559MiB / 23779MiB

@witt-bit
Copy link
Author

不好意思,催更一下,发现大部分基于Electron的软件都有这个问题 https://zhuanlan.zhihu.com/p/677492706

@tiny-craft
Copy link
Owner

tiny-craft commented Apr 10, 2024

这个要自定义标题栏确实没啥好办法,而且基于Webview对自定义标题栏的支持比Electron的开放性更低,所以你看到Windows和Linux上的三个窗口控制按钮都是自己写的而非原生。

Linux要么就直接保留原生标题栏不再隐藏,这样会丑一点,也没有保持各平台的一致性了。

Obsidian会直接提供设置让用户自己选是否使用系统标题栏。

@kt286
Copy link
Contributor

kt286 commented Apr 11, 2024

Linux 中标题栏和其他系统的还不一样,Qt主题和 GTK 主题是分别设置的,就像我使用的 Deepin 中两个样式就不一样

看截图里你用的 Dolphin 是 Qt 写的走 Qt 主题,但 Webkit,Electron 之类开发的都是走 GTK 主题的,本身就有可能不一致

所以我推荐加个开关,一种是隐藏系统标题栏,使用自定义的(就是现在这种方案) 一种是无脑显示系统标题栏,隐藏自定义的(这个时候如果显示效果还不一样就得找自己系统主题的问题了,而且大概率标题栏和软件看上去不协调)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants