johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.25k stars 254 forks source link

Is it possible to remove the border? #1319

Closed buddhiko1 closed 1 month ago

buddhiko1 commented 1 month ago

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

johnfactotum commented 1 month ago

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.

buddhiko1 commented 1 month ago

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.

buddhiko1 commented 1 month ago

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

.background { padding: 0; }