Skip to content

config-profiles: add a transition when switching profiles - #4414

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:profile-switch-transition
Nov 26, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:profile-switch-transition

Conversation

@Conava

@Conava Conava commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Description

Switching a profile used to rebuild the bar, colors and wallpaper piece by piece, and the colors snapped in whenever the theme generation finished. Now the screen holds the old look while the profile is applied and the new colors are generated, then a transition reveals the new look all at once. This works for every way of switching (Settings, the picker, the Control Center tile, config-profile apply/next/prev) and for partial apply.

The Behavior card on the Manage profiles page got two now settings: Transition and Transition duration.
Both are saved with the profile's wallpaper (since its related to the wallpaper transition), so the profile being switched to decides the transition. Transition defaults to Follow wallpaper, which uses that profile's wallpaper transition and its duration. It can also be set to a specific effect or Random, and None turns the transition off. Reduce motion turns every effect into a fade. The cursor stays live during the hold, but clicks are blocked until the reveal is done. If the new colors take longer than 3 seconds it reveals anyway to avoid a long freeze.

There are two new effects, Tiles and Ripple, which also work for normal wallpaper changes. The wallpaper transition also got a duration setting (it was always 1 second), which the profile switch uses when it follows the wallpaper transition.

This is the last PR of a set of changes for profiles and builds on the Behavior card from #4388. The picker look from that PR is now saved in profiles too. While a switch is running config-profile apply/next/prev reply "Switching to" instead of "Switched to", since the switch isn't done yet when the reply is sent.

Notes

The 7 copies of the transition effect in the wallpaper background are one shared component now, which the switch reveal reuses.

Plain wallpaper changes with dynamic colors still snap the colors in after the wallpaper transition. Using the same hold there is something I work on separately

1 new term to translate: Follow wallpaper.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

recording_2026-11-25_19-14-34.mp4

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: docs(dms): document the config profile switch transition dux-docs#224

Switching a profile rebuilt the bar, colors and wallpaper piece by
piece, and the colors snapped in whenever the theme generation
finished. Every apply (activate, cycle, applyGroups, IPC) now goes
through one request path in ConfigProfileService. While a switch runs,
DMSShell lazily loads ProfileSwitchOverlay: one Overlay-layer window
per screen shows an in-process capture of that screen. The profile is
applied once every capture has been shown by the compositor (the
second frame swap), and the reveal waits until Theme.generatingTheme
is false and every wallpaper window has decoded its new image, at
most 3 s. The frozen capture is then dissolved with a transition
effect, animated on the render thread with a UniformAnimator. The
cursor stays live; the overlay takes clicks until the reveal ends.
Service timers make sure the apply and the end happen even if the
overlay never answers or the apply throws. The activation toast shows
after the reveal, and IPC replies "Switching to" while the switch is
still running. The profile picker applies its pick after it has
closed, so it is not part of the frozen picture.

The Behavior card on the Profiles page gets Transition (Follow
wallpaper, None, Random or an effect) and Transition duration. Both
are in the profile's wallpaper group, so the profile being switched to
decides. Follow wallpaper uses the wallpaper transition and the new
wallpaper transition duration setting (it was a fixed 1000 ms). None,
also through Follow wallpaper, applies at once without the freeze.
Random picks one effect for all screens and Reduce motion fades.
Pixelate only distorts the incoming image, which here is the live
screen, so the reveal runs it backwards on the frozen one. A partial
apply can't replace a switch already queued behind the running one.
The picker look (configProfilePickerView) is saved in the profile's
general group too.

WallpaperBackground's 7 near-identical transition ShaderEffects become
one WallpaperTransitionEffect, shared with the overlay, and the random
pick and per-effect parameters move into WallpaperTransitions.js.
Under a switch the wallpaper swaps without its own transition.

New Tiles and Ripple wallpaper transitions, also available for plain
wallpaper changes and in the default Random set.

A ShaderEffect only reports Compiled for the first instance per
shader (Qt's shader cache), so the reveal gates on not Error.
@github-actions github-actions Bot added feature ui Quickshell UI under quickshell/ labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

Looks good. No issues found.

Checked: the switch request, queue and end path in ConfigProfileService (activate, applyGroups, cycle, the IPC replies, the limit timers, the throw-safe endSwitch); the ProfileSwitchOverlay freeze, settle and reveal flow with its Timing tokens; the wallpaper hold and immediate-set during a switch; Theme.generatingTheme and the _colorsReloading set and clear paths; the shared WallpaperTransitionEffect against the uniform blocks of the old and new shaders; the picker deferring activation until close; the settings, session and profile group maps; i18n reuse; deprecated shims. The settings are documented in dux-docs#224. Model: claude-opus-5-5.

@bbedward
bbedward merged commit 7b81e0c into duxlabs-dev:master Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants