forge icon indicating copy to clipboard operation
forge copied to clipboard

feat: disable rounded corners

Open twouters opened this issue 1 year ago • 3 comments

(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 avatar Mar 22 '24 09:03 twouters

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.

skewty avatar Mar 24 '24 15:03 skewty

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()

jmmaranan avatar May 26 '24 16:05 jmmaranan

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)

MRandl avatar Jun 20 '24 08:06 MRandl