Skip to content

Pre-review: feat/animated-icons-gate - #2

Closed
perlowja wants to merge 1 commit into
cr-base/feat-animated-icons-gate-202611232138from
feat/animated-icons-gate
Closed

perlowja wants to merge 1 commit into
cr-base/feat-animated-icons-gate-202611232138from
feat/animated-icons-gate

Conversation

@perlowja

Copy link
Copy Markdown
Collaborator

Internal pre-review (not for merge).

Honor the desktop animated-icons setting: IconMotion.allowed() and
IconMotion.animated() read the key through the same GLib.Settings idiom Motion
uses for reduce-motion, with a has_key guard so a missing schema or key means on.
A motion that is already playing may finish.

Assisted-by: zoder:qwen38
AI-Scope: generated the animated-icons gate in icon_motion.vala and its test in motion_test.vala with the fixture schema key; prompts: honor the animated-icons setting in IconMotion, then simplify the test.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The change adds an animated-icons setting that controls whether IconMotion permits animation. The test schema defines the setting as enabled by default, and a new test checks its default and toggled states.

Changes: Animated icon setting

Layer / File(s) Summary
Setting gate and test
src/animation/icon_motion.vala, tests/fixtures/motion/dev.sinty.motiontest.gschema.xml, tests/motion_test.vala
IconMotion blocks animation when the setting is disabled and defaults to enabled if the schema or key is missing. The test fixture defines the setting as enabled, and the test checks its default and toggled states.

@perlowja perlowja closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant