Summary: | Vector Shape positions are floats, yet the interface pretends they are integers | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | FrostKiwi <kde> |
Component: | Tools/Vector | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | griffin-barrett, griffinvalley, halla, vladimir.firefly.savic |
Priority: | NOR | Keywords: | regression |
Version: | 5.1.5 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | All | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/486d154afcd754fd72290e4a7f5262a2ea6a4477 | Version Fixed In: | |
Sentry Crash Report: |
Description
FrostKiwi
2023-02-28 04:57:20 UTC
This changed from Krita 3.x in Krita 4.0, five years ago. The actual spinboxes are still double spinboxes, not integer spinboxes with precisions set to two decimals, so this is pretty weird... I'll confirm the bug, but we've got so much on our plate that I cannot promise a quick solution. I'll raise this issue during today's meeting, because I'm not sure how to go on. The problem is in KisSpinBoxUnitManager::getApparentUnitRecommandedDecimals() const; The stroke config widget seems to set decimals in KoStrokeConfigWidget.cpp ln 137, perhaps decimals need to be set at DefaultToolGeometryWidget::setUnit(const KoUnit &unit)? I'm still not totally sure about this... Should we really show the size in pixels here? And also, isn't the question perhaps more like, the bounds should snap to the pixel? The size is shown in pixels because the spinbox allows you to edit the suffix. When you set it to 'pt' and then the decimals become visible. It's one of the few places in Krita where we do this, but that's also because a drop down with a unit selector would take up too much space. You can fix it to a unit, but there's still the simple usability problem that people don't realize they can type in a different unit which can be converted, and we'll get requests to type in pixels. Personally I'm very neutral towards UX changes, but I think this is the thought process behind the current situation... Git commit 486d154afcd754fd72290e4a7f5262a2ea6a4477 by Halla Rempt. Committed on 06/03/2023 at 15:19. Pushed by rempt into branch 'master'. Show two decimal places in the vector object tool docker After discussion in the meeting, it was decided that this is fine. M +6 -1 plugins/tools/defaulttool/defaulttool/DefaultToolGeometryWidget.cpp https://invent.kde.org/graphics/krita/commit/486d154afcd754fd72290e4a7f5262a2ea6a4477 *** Bug 390950 has been marked as a duplicate of this bug. *** *** Bug 416833 has been marked as a duplicate of this bug. *** |