Bug 447494

Summary: Swatch highlights and their denoting swatch name often aren't updated accordingly on color selection
Product: [Applications] krita Reporter: tomtomtomreportingin
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tomtomtomreportingin 2021-12-25 01:48:40 UTC
SUMMARY
It is often a bit annoying to use the palette docker, especially with palettes using many similar colors, due to the fact that swatch highlights and the name of the currently highlighted swatch aren't updated accordingly in at least a few cases. This is not a regression of Krita 5.

Some cases I've noticed:
* There is no swatch highlight nor an appropriate swatch name denoted in the palette docker when starting Krita.
* There is no swatch highlight in the palette docker when creating a new image.
* The current swatch name isn't updated when selecting a new color through a method outside of the palette docker (e.g. color picking or using the color selector).
* (Perhaps intentional) There is no swatch highlight nor a corresponding swatch name denoted when selecting a new palette.

Some of these cases also affect the color selector dialog.

STEPS TO REPRODUCE:
1. Select Default palette.
2. Select Black 0%.
3. Restart Krita.
4. Observe the palette docker.

OBSERVED RESULT
There is no swatch highlight and the Amazon swatch is denoted despite not being selected nor highlight.

EXPECTED RESULT
Black 0% should be highlighted and denoted as it's the selected color.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.12.12 (appimage)
Comment 1 tomtomtomreportingin 2021-12-25 01:54:50 UTC
Couple more cases:
* There is no swatch highlight nor an appropriate swatch name when selecting a new workspace.
* There is no swatch highlight when selecting another document.
Comment 2 Halla Rempt 2022-03-08 13:26:05 UTC
Hm, the reason no swatch is selected when selecting a color in the color selector is that it would limit the color selector to only the colors that are in current palette. There actually is an option that enforces that (configure krita->color management->General ->Enforce palette colors).

I feel we should close the report as Intentional, though it would be useful to have the enforce palette colors as a toggle button in the palette docker instead of as an option deep in the configure krita dialog.
Comment 3 Halla Rempt 2025-05-28 09:44:52 UTC
I'm closing this as later now because the toggle shouldn't be in the settings dialog.
Comment 4 Halla Rempt 2025-05-28 10:06:26 UTC
That wasn't _much_ later": https://invent.kde.org/graphics/krita/-/merge_requests/2405/commits
Comment 5 Dmitry Kazakov 2025-05-30 13:23:49 UTC
Git commit 0f365472ad38446c8dd3bb60292ee658cc54ea6a by Dmitry Kazakov, on behalf of Halla Rempt.
Committed on 30/05/2025 at 13:23.
Pushed by dkazakov into branch 'master'.

Add a force palette colors action

The action is a toggle and is suitable for putting on a toolbar
or having a shortcut.

M  +12   -0    krita/krita.action

https://invent.kde.org/graphics/krita/-/commit/0f365472ad38446c8dd3bb60292ee658cc54ea6a