https://bugs.kde.org/show_bug.cgi?id=446623
Bug ID: 446623 Summary: FGtoBG gradient has incorrect preview in the gradient chooser Product: krita Version: 5.0.0-beta5 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Resource Management Assignee: krita-bugs-n...@kde.org Reporter: dimul...@gmail.com Target Milestone: --- 1) Select Red and Blue colors for Fg and Bg colors correspondingly 2) Open any gradient chooser, see that the BGtoFG gradient is still painted as white-to-black This is a regression. It used to work in the commit below, but some later refactorings removed cloning and gradient->updateVariableColors() call from the update finction. Last known to work commit: commit fe4744f96184084778681ed731ab687443a371d4 Author: Dmitry Kazakov <dimul...@gmail.com> Date: Fri, 24 Jul 2020 00:09:31 +0300 Fix cached thumbnails for gradient resources The solution is the following: 1) Gradient resources' cached thumbnail now has size 2048x1 px 2) KoAbstractGradient::generatePreview() does not include checkers anymore (obviously, how would it render it in 1 px line?) 3) Therefore, all widgets that show gradients should now render checkers themselves (that is, KisCmbGradient, KisControlFrame, KisIconToolTip and KisResourceItemDelegate) 2) All widgets drawing gradients should also stretch the thumbnail into desired size. -- You are receiving this mail because: You are watching all bug changes.