srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/legacy-cpp
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2025-08-19 23:38:00 +0200
committersrdusr <[email protected]>2025-08-19 23:38:00 +0200
commitf1548893e2868c2ca6c9aaa7c93c277df35b62ac (patch)
tree1f4f864be58be8c59b9b5b2bae8d44103df0ff40 /legacy-cpp
parentd2af06d00e1b91bf9953e8c86eb30ab3ad9ee829 (diff)
downloadsrdwm-f1548893e2868c2ca6c9aaa7c93c277df35b62ac.tar.gz
srdwm-f1548893e2868c2ca6c9aaa7c93c277df35b62ac.zip
Polish the hand-drawn desktop icon glyphs: rounded corners, gradient, blue
Requested directly: default icons "look very rudimentary... make slightly blue as well, polished look". Two changes to decoration::render_desktop_icon and its five draw_*_glyph helpers: - New fill_rounded_rect primitive: softly rounded corners (the same clamp-then-distance smoothstep construction rounded_corners_pixman:: apply_corner_mask already established for content masking, not a new technique) plus a vertical top-to-bottom gradient instead of one flat fill - the same light-source cue buttons.rs's own glossy_shade uses for the titlebar dots, as a plain linear gradient here. Applied to each glyph's main body shape; small details (folder tab edge, computer stand, trash ridges, home roof) stay flat/sharp. - A dedicated ICON_COLOR constant (a clean mid-blue) instead of reading theme.titlebar_fg_focused - that field is whatever the user's own titlebar accent happens to be configured to, which could be any colour; these glyphs want a consistent, recognisable blue palette of their own, independent of theme. Build/test/clippy already verified clean as part of the layer-shell scale fix commit just before this one (same source tree, installed together).
Diffstat (limited to 'legacy-cpp')
0 files changed, 0 insertions, 0 deletions