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

feat: disable rounded corners #361

Open
twouters opened this issue Mar 22, 2024 · 3 comments
Open

feat: disable rounded corners #361

twouters opened this issue Mar 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@twouters
Copy link

(1) Description

Borders have rounded corners and my windows don't.
I'd like to be able to disable the rounding.

(2) Alternatives I've considered

No response

(3) Design / Screenshots / Mockups

image

image

@twouters twouters added the enhancement New feature or request label Mar 22, 2024
@skewty
Copy link

skewty commented Mar 24, 2024

What would be best is to inspect window properties to determine if the window has top rounded corners and or bottom rounded corners and adjust the hint border accordingly. I wonder if LookingGlass would have enough information for this.

Edit

As a Gtk / Mutter layman I did little bit of inspection using LookingGlass comparing a JetBrains (Java) IDE and Nautilus window.
I tried:

  • get_frame_type()
  • get_window_type()
  • get_mutter_hints()

And found no variance. 🙁

Surely the information is in there somewhere.

@jmmaranan
Copy link
Collaborator

jmmaranan commented May 26, 2024

I think the system styles are still in a CSS or GTK/Adwaita libs don't expose them. If anyone wants to try to update border radius from Forge, the stylesheet.css#*-border entries are controlled by the border-radius and need to be exposed on prefs.js. The theme.js is the JS API of the underlying CSS. An example to update is on appearance.js#L134 - theme.setCssProperty()

@MRandl
Copy link

MRandl commented Jun 20, 2024

for the record, you can disable the rounded corners by directly modifying the forge css file, mine is located in /home/<user>/.config/forge/stylesheet/forge/stylesheet.css
I just set the radius to 0. There's probably a cleaner way to do this but hey, it works. It also disables the round corners in the border even if the window itself has round corners, but I don't mind.

.window-tiled-border {
  border-width: 1px;
  border-color: rgba(236, 94, 94, 1);
  border-style: solid;
  border-radius: 0px;
}

(reboot needed)

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

No branches or pull requests

4 participants