Skip to content

The active layer and the eye in the Layers panel are much easier to see - #561

Closed
vangel76 wants to merge 4 commits into
storytold:mainfrom
vangel76:fix/active-layer-hidpi-553
Closed

vangel76 wants to merge 4 commits into
storytold:mainfrom
vangel76:fix/active-layer-hidpi-553

Conversation

@vangel76

@vangel76 vangel76 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The active layer row and the eye in the Layers panel are now much easier to see, also on HiDPI screens.

Fixes #553

  • The whole active layer row gets a stronger accent-tinted fill, and its accent edge is 4 points wide (was 3).
  • A visible layer's eye is drawn bright on a small accent chip, a hidden layer's eye stays dim and crossed out, so the two states differ by more than the glyph. The eye is a bit larger (14 instead of 13).
  • Theme colours are kept (light and dark, all accents); the lettering on the active row keeps its contrast.

Checked with UI tests at a scale of 2.0, clippy and fmt. Not run in the native app by hand.

Details for review
  • The eye is a font glyph, so it was already drawn at the display's resolution; the problem was low contrast, not blur. The chip and brighter colour address that.
  • selected_layer_fill tints the selected shade 30% towards the accent tint; layer_eye_colors picks glyph colour and chip. Both live next to layer_row in dock.rs.
  • On the active row the chip is close to the row fill, so there the bright versus dim eye carries the state; on other rows the chip is clearly visible.
  • Effect rows, texture set rows and the mask wand glyph keep their sizes and colours.
  • Tests in tests/it/layers_panel.rs: the_active_layer_row_has_its_own_strong_fill_and_a_wide_edge_at_scale_two (painted fill and 4 point edge at scale 2.0, contrast of lettering on the fill in all 4 brightnesses x 7 accents) and the_layer_eye_looks_clearly_different_when_visible_and_hidden_at_scale_two (glyph, colour and chip for on and off).
  • No new UI strings.

Summary by CodeRabbit

  • Style
    • Improved layer panel readability with a more distinct selected-row highlight, clearer visibility indicators, and adjusted layer color tags.
    • Refined the appearance and sizing of eye and mask-effect icons.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The layers panel now gives the selected row an accent-tinted fill and wider edge. Eye indicators use different colors and chip treatments for visible and hidden layers. HiDPI integration tests check the row styling and visibility indicators.

Changes: Layers panel

Layer / File(s) Summary
Selected layer row styling
crates/ui-egui/src/dock.rs, crates/ui-egui/tests/it/layers_panel.rs
Selected rows use an accent-tinted fill and a 4-point edge. Tests check the highlight and contrast at 2× scale across brightness and accent combinations.
Layer visibility indicators
crates/ui-egui/src/dock.rs, crates/ui-egui/tests/it/layers_panel.rs
Visible and hidden eyes use different colors and glyph states. Visible eyes have an accent chip; hidden eyes do not. Mask-effect wand glyphs use a separate font size. Tests check the eye’s appearance before and after toggling visibility.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Feature · Severity of issue fixed: Medium

Suggested reviewers: rebornim

Merge Risk: Minimal · up to 512f5

This change makes the active layer row and layer visibility eye easier to tell apart, including on HiDPI screens. It is a visual-only update with tests covering the new styling, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the active layer row and the layer visibility eye in the Layers panel become easier to see. The summary confirms this: the active row gets a stronger accent fill and w…
Linked Issues check Passed Issue #553 asks for a clearer active-layer indicator in the Layers panel on HiDPI displays. It suggests a solid background highlight across the active row, or a more distinct, high-contrast active ind…
Out of Scope Changes check Passed All changes concern the layer row and layer eye in the Layers panel. The changes are in crates/ui-egui/src/dock.rs (layer_row, selected_layer_fill, layer_eye_colors) and crates/ui-egui/tests/it/layers…
Full details: Title check

Explanation

The title names the main change: the active layer row and the layer visibility eye in the Layers panel become easier to see. The summary confirms this: the active row gets a stronger accent fill and wider edge, and the eye gets distinct colors and a larger glyph. The title is specific and matches the objectives of PR #561 and issue #553.

Full details: Linked Issues check

Explanation

Issue #553 asks for a clearer active-layer indicator in the Layers panel on HiDPI displays. It suggests a solid background highlight across the active row, or a more distinct, high-contrast active indicator. The PR addresses both parts. In dock.rs, selected_layer_fill tints the active row fill 30% toward the accent tint, which gives a solid row highlight. The active edge widens from 3 to 4 points. A visible layer's eye is drawn bright on an accent chip. A hidden layer's eye stays dim and crossed out. Layer color tags are offset to follow the wider edge. The tests in tests/it/layers_panel.rs check the painted fill, the 4-point edge, lettering contrast on the active fill across brightness and accent variants, and the visible/hidden eye difference, all at scale 2.0. The PR does not require manual native-app testing, which is non-coding and not part of this assessment. This verdict rests on the whole-PR summary and the PR description. I did not inspect the source hunks directly.

Full details: Out of Scope Changes check

Explanation

All changes concern the layer row and layer eye in the Layers panel. The changes are in crates/ui-egui/src/dock.rs (layer_row, selected_layer_fill, layer_eye_colors) and crates/ui-egui/tests/it/layers_panel.rs. The eye size change from 13 to 14 is part of the eye-state objective. The color tag offset follows the wider active edge, so it supports the same objective. The mask wand glyph is sized separately at 13, and effect rows and texture set rows keep their sizes and colors, as the PR states. The added test helpers and tests support the changed behavior. The summary shows no unrelated changes. This verdict rests on the whole-PR summary and the PR description. I did not inspect the source hunks directly.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Clippy (1.99.1)

Clippy execution failed
Clippy (1.99.1) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3f06367 and 512f5c1.

Files selected for processing: 2

  • crates/ui-egui/src/dock.rs
  • crates/ui-egui/tests/it/layers_panel.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@vangel76

Copy link
Copy Markdown
Contributor Author

Combined into #635 together with the rest of today's UI PRs, so the Windows proof build only has to run once. Closing this one in favour of it.

@vangel76 vangel76 closed this Nov 17, 2026
chasse20 pushed a commit that referenced this pull request Nov 18, 2026
Combines 45 open pull requests so the Windows proof build runs once. Included:

- Fill layers can color from dark to light with a gradient map (PR #535, fixes #482)
- Front, side and top views, and F5/F6 switch between perspective and orthographic (PR #539, part of #241)
- Textures export as DDS, with compressed normal and grayscale maps for game engines (PR #543, fixes #354)
- The active layer and the eye in the Layers panel are much easier to see (PR #561, fixes #553)
- Export dialog can also write a MaterialX file for each texture set (PR #563, fixes #558)
- Layers toolbar stays on one row and cut-off layer names show on hover in small windows (PR #564, fixes #560)
- Save a layer's mask as an image file or copy it to the clipboard from the layer menu (PR #565, fixes #559)
- Shift + wheel and Ctrl + wheel change the brush size, and Ctrl+drag brush changes have a fine mode (PR #566, part of #545)
- Select several layers in the Layers panel with Shift+click, Ctrl+click and Ctrl+A (PR #567, fixes #247)
- Pressing F frames the object you are painting, so a floor plane no longer throws off the view (PR #568, fixes #478)
- Save a mask as your own smart mask and reuse it on other layers and projects (PR #569, fixes #562)
- Show one layer alone in the viewport, with or without its mask (PR #570, fixes #544)
- On-screen orbit, pan and zoom buttons let a pen tablet move the 3D and 2D views (PR #573, fixes #288)
- Decals can be mirrored to the opposite side of the mesh across X, Y or Z, with optional U or V flip (PR #576, fixes #272)
- Shift+click lines in the 3D view start at the spot you last painted, even after turning the view (PR #578, fixes #574)
- History steps now name the tool and layer and appear in the interface language (PR #580, fixes #572)
- Path tool keeps your points when you click in the other view and tells you why (PR #582, fixes #575)
- Brush, symmetry and tool settings stay when you open another project or restart the app (PR #584, fixes #571)
- Reset only the panel layout from the Window menu, and Reset UI now asks first (PR #586, fixes #577)
- Output templates ask before deleting and before dropping an unfinished edit (PR #588, fixes #579)
- Clone tool shows its source in the 2D view, forgets it when you switch texture set, and can restart at the source each stroke (PR #590, fixes #581)
- Move the symmetry plane to the model's middle or to a clicked point in one click (PR #591, fixes #585)
- Projection stencil can be dropped in from Assets, moved and reset with fields, turned in snapped steps, and the 2D view says projection works in 3D (PR #593, fixes #583)
- Smudge now shows which channels it drags and lets you switch them (PR #594, fixes #587)
- Save panel layouts under a name and switch between them from the Window menu (PR #595, fixes #589)
- Clone and Smudge now work on layer masks (PR #596, fixes #592)
- A layer image menu test no longer fails when another test switches the interface language (PR #597)
- Clicking a material in the shelf now paints with it instead of adding a layer (PR #599, fixes #305)
- Alt+click on a mask thumbnail now labels the mask view and blanks the other texture sets (PR #605, fixes #600)
- Painting on a texture set that is not active now shows a hint why nothing happens (PR #607, fixes #601)
- Ctrl+Shift+click draws straight lines that snap to 15 degree steps (PR #609, fixes #604)
- Output template channels can be inverted (PR #611, fixes #603)
- Smudge now follows the mirror and radial symmetry planes (PR #613, fixes #602)
- The shortcut list now shows the stencil, clone source, straight line and path gestures (PR #614, fixes #608)
- Symmetry now also mirrors strokes painted in the 2D view (PR #615, fixes #610)
- Decals keep their image's proportions while sizing and can be flipped (PR #617, fixes #606)
- Polygon fill now also fills the mirrored side when symmetry is on (PR #619, fixes #612)
- A decal dragged over a curved or differently facing surface now turns with it instead of tilting or flipping (PR #622, fixes #616)
- Every brush alpha now has size, roundness, contrast and invert settings (PR #623, part of #598)
- Decals placed as a mask can now be sized, turned and moved from Properties like decal layers (PR #624, fixes #618)
- Renaming effects and linking fills to mask anchor points are now tested in the interface (PR #626, fixes #621)
- Path points can be corners, so paths can have hard edges (PR #627, fixes #620)
- Layer menu can apply a layer's blending mode and opacity to all channels, and copy/paste channel blending (PR #631, fixes #629)
- Display Settings can now set glow, vignette, sharpen and film grain (PR #632, fixes #630)
- Every command a key can run can now get a keyboard shortcut (PR #633, fixes #628)

Fixes found while combining them: the named layouts window is drawn again, layer remove/duplicate/group/visibility stay bindable to keys, the Clone tool's Aligned switch is kept with the other tool settings, smudge copies in the 2D view keep their own trails, and a UI or control-channel camera command during a view glide is no longer undone by the glide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant