feature: frosted bars window placement#10
Merged
Conversation
…ment Add a frosted-glass (acrylic) renderer for the top status bar and the bottom taskbar, plus a window-placement policy that keeps external application windows inside the desktop work area. Frosted backdrop: - New FrostedBackdrop component (cached: downsample -> separable box blur -> surface tint -> acrylic grain) paints the blurred wallpaper strip behind each bar. The wallpaper shell now spans the full host geometry so the strip is sampled from directly behind each bar. - StatusBar and CenteredTaskbar paint the frosted strip; the status bar fades only the content layer on boot so the glass stays opaque. A resize debounce keeps the reblur cost off the idle/resize paths. Window placement: - New WindowPlacementPolicy (pure IWindow + QRect, zero platform branches): centers external windows into the work area on appearance, proportionally shrinking to fit when larger than the work area, and leaves already-inside windows where they are. - Re-constrains every tracked window when the desktop is resized OR moved (CFDesktop::geometryChanged covers the pure-move case; the work area is translated to screen coordinates to match window geometry, which is root-relative). Runtime toggle via config window_management / constrain_to_workarea (default on). GoogleTest coverage for both components; doxygen and the three-layer check pass.
Replace the placeholder initial-letter tiles and the 2x2 grid glyph with monochrome PNG masks tinted at runtime to the active theme's on-surface token (QPainter::CompositionMode_SourceIn), mirroring the status bar's icon pipeline. Adds a header-only tintedIconMask() helper, a taskbar_icons.qrc bundling five CFDesktop-original 96px masks (files, terminal, settings, browser, start) with editable SVG sources, and graceful fallbacks (initial letter / 2x2 grid) when a mask is missing. - defaultApps() points each entry at its qrc icon path. - TaskbarIcon / StartButton cache a tinted QPixmap and re-tint on theme change; tiles gain tooltips (display name / "Start").
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.