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

Is it possible to remove the border? #1319

Closed
buddhiko1 opened this issue May 22, 2024 · 3 comments
Closed

Is it possible to remove the border? #1319

buddhiko1 opened this issue May 22, 2024 · 3 comments
Labels
bug Something isn't working not our bug Needs to be fixed upstream or elsewhere

Comments

@buddhiko1
Copy link

buddhiko1 commented May 22, 2024

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

@buddhiko1 buddhiko1 added the enhancement New feature or request label May 22, 2024
@buddhiko1 buddhiko1 changed the title Is it possible to remove the border Is it possible to remove the border? May 22, 2024
@johnfactotum
Copy link
Owner

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.

@johnfactotum johnfactotum added bug Something isn't working not our bug Needs to be fixed upstream or elsewhere and removed enhancement New feature or request labels May 22, 2024
@buddhiko1
Copy link
Author

buddhiko1 commented May 23, 2024

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
Copy link
Author

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

.background { padding: 0; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working not our bug Needs to be fixed upstream or elsewhere
Projects
None yet
Development

No branches or pull requests

2 participants