Bug 447853 - 5.0.0 Popup Palette brush options panel, new item "LightnessStrength" is not implemented
Summary: 5.0.0 Popup Palette brush options panel, new item "LightnessStrength" is not ...
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Usability (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: amyspark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-02 18:49 UTC by Ahab Greybeard
Modified: 2022-01-08 12:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahab Greybeard 2022-01-02 18:49:21 UTC
SUMMARY
This is observed in the 5.0.0 and Jan 02 5.1.0-prealpha (git 79911ed) appimages on Debian 10.
The new option, "LightnessStrength" is shown in the 'Available properties' pane of the Brush HUD Configuration window.
If it is moved into the 'Current Properties' pane and OK is pressed, it does not appear in the Brush Options panel.
Other properties such as Size, Opacity, etc are not affected.

STEPS TO REPRODUCE
See Summary

OBSERVED RESULT
See Summary

EXPECTED RESULT
It should be implemented (and also work).
Comment 1 amyspark 2022-01-03 23:25:30 UTC
I'll look into this, I've refactored this code recently to enable localization and this was one of the "special" ops that didn't match between name and variable identifier.
Comment 2 amyspark 2022-01-06 21:18:18 UTC
There are two considerations here:

- Lightness Strength does not require the "Lightness" mode, but rather a RGBA brush tip. This was somehow lost in https://invent.kde.org/graphics/krita/commit/0395e4e7f16015ae3ae248943ee6a6a3bf3d100f . The check is in KisBrushOpSettingsWidget::notifyPageChanged, and KisBrush::preserveLightness(). Tested it with a the Bristles-2 Flat Rough brush with the Craig 02 tip.

- Even if the property is added to the HUD, if the brush doesn't already include it, it must be first enabled in the Brush Editor before it's usable.

Not sure if this is a bug or intended, so ccing Halla for a determination.
Comment 3 Dmitry Kazakov 2022-01-07 10:12:58 UTC
Hi, Amyspark and Ahab!

That is kind of "intentional" behavior. The HUD shows properties for the brush only in case it has been enabled in the brush editor. The same UIX works for several properties in the colorsmudge engine: "Smudge Radius" and "Color Rate".
t
There are two reasons for this behavior choice:

1) Even if we show this slider in the GUI, the HUD will not have a control to **enable** this option. Basically, HUD has no built-in control for "a checkbox + a slider". It can only show either a checkbox **or** a slider. We can implement that, but I'm not sure about that because of the next point...
2) The HUD was intended not to be cluttered by lots of unused options. We don't want it to become a department of the brush editor :)

To sum up, the current behavior is intention and works correctly. If you want to change this behavior, it is okay, but we need a proper discussion of it.
Comment 4 Ahab Greybeard 2022-01-07 10:37:50 UTC
It's clear to me that I don't know enough about this to ask for any change related to it.
I'll leave it to Amyspark or Dmitry (or anybody else) to do whatever they think should be done with this bug report.
Comment 5 Bug Janitor Service 2022-01-08 04:35:12 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.