Remove the "rounded-window-corners" GNOME extension

This commit is contained in:
Alexander Hess 2026-10-20 14:15:20 +02:00
commit ae3b7100a9
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
4 changed files with 14 additions and 46 deletions

View file

@ -7,7 +7,7 @@
[org/gnome/shell]
enabled-extensions=['AlphabeticalAppGrid@stuarthayhurst', 'app-hider@lynith.dev', 'appindicator-hider@theophilediot.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'forge@jmmaranan.com', 'just-perfection-desktop@just-perfection', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'light-style@gnome-shell-extensions.gcampax.github.com', 'no-screenshot-box@screenshot', 'panel-date-format@keiii.github.com', 'rounded-window-corners@fxgn', 'space-bar@luchrioh']
enabled-extensions=['AlphabeticalAppGrid@stuarthayhurst', 'app-hider@lynith.dev', 'appindicator-hider@theophilediot.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'forge@jmmaranan.com', 'just-perfection-desktop@just-perfection', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'light-style@gnome-shell-extensions.gcampax.github.com', 'no-screenshot-box@screenshot', 'panel-date-format@keiii.github.com', 'space-bar@luchrioh']
disabled-extensions=@as []
@ -251,43 +251,6 @@ format='%A %B %-d, %Y %H:%M:%S %Z%z'
[org/gnome/shell/extensions/rounded-window-corners-reborn]
# Rounds all window corners uniformly (e.g., needed for `alacritty`)
#
# The rings drawn by forge sit outside the window frame
# and use a "border-radius" of 13px in
# ~/.config/forge/stylesheet/forge/stylesheet.css so their curves
# stay roughly concentric with the 12px window corners
#
# "padding" stays 0 because forge draws its focus rings outside
# the window frame and they never cover the contents
#
custom-rounded-corner-settings=@a{sv} {}
global-rounded-corner-settings={'padding': <{'left': uint32 0, 'right': 0, 'top': 0, 'bottom': 0}>, 'keepRoundedCorners': <{'maximized': true, 'fullscreen': true}>, 'borderRadius': <uint32 12>, 'smoothing': <0.0>, 'borderColor': <(0.6, 0.149, 0.0, 1.0)>, 'enabled': <true>}
focused-shadow={'horizontalOffset': 0, 'verticalOffset': 4, 'blurOffset': 28, 'spreadRadius': 3, 'opacity': 60}
unfocused-shadow={'horizontalOffset': 0, 'verticalOffset': 2, 'blurOffset': 12, 'spreadRadius': -1, 'opacity': 65}
# `forge` draws the borders
# => This extension must not
border-width=0
# Round GTK3/legacy apps,
# but not libadwaita's ones that are already rounded
skip-libadwaita-app=true
skip-libhandy-app=false
blacklist=@as []
enable-preferences-entry=false
tweak-kitty-terminal=false
debug-mode=false
[org/gnome/shell/extensions/space-bar]

4
.config/gtk-3.0/gtk.css Normal file
View file

@ -0,0 +1,4 @@
/* Window corners of GTK3 apps,
kept in sync with `FORGE_RING_RADIUS` in ~/.local/bin/color-palette
(ring radius = this value + 4px border) */
decoration { border-radius: 6px; }

4
.config/gtk-4.0/gtk.css Normal file
View file

@ -0,0 +1,4 @@
/* Window corners of libadwaita and GTK4 apps,
kept in sync with `FORGE_RING_RADIUS` in ~/.local/bin/color-palette
(ring radius = this value + 4px border) */
window.csd { border-radius: 6px; }

View file

@ -154,13 +154,10 @@ GNOME_NEUTRALS = {
_LIGHTNESS_RESOLUTION = 0.001
# Corner geometry:
# - Windows are clipped to `WINDOW_RADIUS`
# by the rounded-window-corners-reborn extension
# - forge's rings sit slightly outside the window frame
# => The ring radius adds 1px so the curves stay concentric
# (forge's stock inset is actually 3; see window.js)
WINDOW_RADIUS = 12
# forge's focus rings sit between a square frame (`alacritty`, GTK3)
# and libadwaita's 12px corners; 10px splits the difference,
# leaving about 2px of mismatch either way
FORGE_RING_RADIUS = 10
# Template for the stylesheet used by the GNOME shell extension `forge`
@ -822,7 +819,7 @@ def render_forge_css(colors: dict[str, str]) -> str:
emphasis_dim=as_rgb(colors["emphasis-dim"]),
emphasis_dim_a30=as_rgba(colors["emphasis-dim"], alpha=0.3),
emphasis_dim_a40=as_rgba(colors["emphasis-dim"], alpha=0.4),
ring_radius=f"{WINDOW_RADIUS + 1}px",
ring_radius=f"{FORGE_RING_RADIUS}px",
scheme_name=colors["_scheme"],
surface_dim=as_rgb(colors["surface-dim"]),
surface_dim_a60=as_rgba(colors["surface-dim"], alpha=0.6),