johnfactotum / foliate

Read e-books in style

Home Page:https://johnfactotum.github.io/foliate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to remove the border?

buddhiko1 opened this issue · comments

Is it possible to remove the border so that it can be displayed on fullscreen?

This is the screenshot now, my system is gentoo linux, and I am using Sway window manager. Note the white borders on all sides.
last

The border is probably drawn by the window manager, or by a custom GTK theme, if you're using any, but that seems less likely. Either way, Foliate itself doesn't have any such borders. I'm not familiar with Sway but it's probably related to how GTK's fullscreen feature works under Sway. That is, the window manager is supposed to remove the border when the window is fullscreened, but for some reason, doesn't.

Sway's border has been removed. I can't find the cause of the problem either, it could be the configuration of the gtk theme. Anyway, thank you very much for this project, which made me have a good reading experience.

Add this config in $HOME/.config/gtk-4.0/gtk.css can remove the window border.

.background { padding: 0; }