Bug 394705

Summary: Auto-change the selected front color when switching between tabs
Product: [Applications] krita Reporter: Grinya Lesnoy <skazochnik.org>
Component: Color SelectorsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 4.0.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: #8d5943 in Advanced Color Selector and Digital Color Mixer - average (middle) value

Description Grinya Lesnoy 2018-05-26 12:08:26 UTC
Created attachment 112881 [details]
#8d5943 in Advanced Color Selector and  Digital Color Mixer  - average (middle) value

When I switch to another document tab, the selected (front) color is automatically change to #8d5943 ( If i Select some color and then opened another document tab - selected color autoreplaced to #8d5943. When I back to first document - #8d5943 again )

- this bug is available in all color depth (8bit, 16bit, 32 bit)
- this bug is available in all tools (brush, gradient, etc)
- Restore Default Settings in Configure panel or delete settings dir in \AppData\Roaming\krita and local \AppData\Local\krita didn't help. (Restore settings not applicable to custom Krita Interfase Settings ( location Dockers etc) and I think it has a link to this bug.) I do not know where else Krita saves it's settings
- Run anothers copy of Krita (new zip download from website and run from other dir path)  didn't help.
- In Krita startup (before opened first tab) srlected color in Docer maybe other, but if I opened file or create new documebt - selected color autoreplace to #8d5943
- The #8d5943 color - is average value of all selectors in Advanced Color Selector and Digital Color Mixer (see attach Screenshot). I not enable this Docers when I work but maybe this is somehow connected with this bug
- this bug is available in Krita 4.01 and 4.03 (4.02 I did not install) and not available in 4.00

P.S.: If you do not have the opportunity to fix this bug, but you can tell how I can handle it myself - I'll be happy too

P.P.S.: If something from my message is not clear (I do not know English well) - ask me and I'll try to explain more clearly
Comment 1 Grinya Lesnoy 2018-06-02 10:28:55 UTC
I find it. This bug was initialized by Palette docker python plugin.
The restore settings not clean the file "...\AppData\Local\kritarc" when it's was not working
Comment 2 Halla Rempt 2018-06-05 08:42:01 UTC
Hi Grinya,

I can confirm the bug, and that it happens if the python palette docker is loaded.
Comment 3 Halla Rempt 2018-06-05 09:01:05 UTC
Git commit 0b5f067219e2eb81c8adfcc59c4532259f508b09 by Boudewijn Rempt.
Committed on 05/06/2018 at 08:59.
Pushed by rempt into branch 'krita/4.0'.

Add a button to explicitly set the color from the combobox

The currentIndexChanged signal fires all the time whenever anything
changes, like filling the combobox. It's not elegant, but the
explicit set button avoids issues with the foreground color changing
when it's not wanted.

M  +6    -3    plugins/python/palette_docker/palette_docker.py

https://commits.kde.org/krita/0b5f067219e2eb81c8adfcc59c4532259f508b09
Comment 4 Halla Rempt 2018-06-05 09:01:39 UTC
Git commit a8dde226d589c281c9a89bf5dd59b53e07e67d36 by Boudewijn Rempt.
Committed on 05/06/2018 at 09:01.
Pushed by rempt into branch 'master'.

Add a button to explicitly set the color from the combobox

The currentIndexChanged signal fires all the time whenever anything
changes, like filling the combobox. It's not elegant, but the
explicit set button avoids issues with the foreground color changing
when it's not wanted.
(cherry picked from commit 0b5f067219e2eb81c8adfcc59c4532259f508b09)

M  +6    -3    plugins/python/palette_docker/palette_docker.py

https://commits.kde.org/krita/a8dde226d589c281c9a89bf5dd59b53e07e67d36