New settings/ui.nix holds `radius` as the one source of truth. Theme derives radiusCard/Small/Tiny from it and hyprland's decoration.rounding reads the same value, so one number rescales the whole desktop — previously the shell and the window corners were unrelated constants, which is why doubling Theme.radius left windows at 8. Cards were using the SAME radius as the panel containing them. Nested corners need outer − gap; matching them makes the inner corner over-round for its size, which is the inflated/balloon look. All nine inner surfaces now use radiusCard (radius − panelGap). Invisible at r=8, obvious at r=32. Radius 32 -> 24. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
16 lines
679 B
Nix
16 lines
679 B
Nix
# settings/ui.nix — shared UI metrics.
|
|
#
|
|
# Single source of truth for corner rounding. Both the quickshell shell
|
|
# (settings/quickshell.nix -> Theme.qml) and hyprland's window decoration
|
|
# (settings/hyprland.nix) read `radius` from here, and every other rounding
|
|
# value is derived from it, so this one number rescales the roundness of the
|
|
# whole desktop — panels, cards, pills, hover rows and window corners.
|
|
#
|
|
# Derived values live next to their consumers:
|
|
# Theme.radiusCard = radius - panelGap (concentric nesting, see Theme.qml)
|
|
# Theme.radiusSmall = radius * 0.75
|
|
# Theme.radiusTiny = radius * 0.5
|
|
# hyprland decoration.rounding = radius
|
|
{
|
|
radius = 24;
|
|
}
|