Junior Job (Bug 245658)

Koushik S skoushik333 at gmail.com
Thu Mar 6 17:27:11 UTC 2014


Hi again,

    So I was messing around with the popup_palette file, and I seem to have
reached upto a point where it can display the foreground color in whatever
path is defined. I want to know how the element should be displayed. I got
a suggestion that it must be a square area at one of the corners. However,
I seem to be having a difficulty in implementing that. Here's a (failed)
attempt to display the selected color in the popup palette:
http://picpaste.com/9sZLF49e.png



On Tue, Feb 25, 2014 at 10:02 AM, Dmitry Kazakov <dimula73 at gmail.com> wrote:

> Hi, Koushik!
>
> If I understood you right, you already have a KisColorSelectorComponent in
> the pop-up box in the instance of 'm_triangleColorSelector', so yes, you
> can access this method.
>
> Talking about preview of the currently selected color, you might want to
> look at the code in KisColorPreviewPopup class, which is in
> kis_color_selector_base.cpp file. Probably, you would be able to share the
> code between those two classes.
>
>
>
> On Mon, Feb 24, 2014 at 10:07 PM, Koushik S <skoushik333 at gmail.com> wrote:
>
>> Hello,
>>
>>     I was working on and off on Bug 245658 (JJ: Ability to see currently
>> selected color in a pop-up palette), and went through the code in
>> kis_popup_palette (thanks to boud for directing me to it!).
>>
>>     I tried to add code to get the required feature, but to no avail. In
>> fact, the code actually replicated the already built-in feature of
>> displaying the recently used color.
>>
>>     I examined the code which updates the color selector, and have a
>> vague idea of solving this. Would it be correct if I initialize a
>> KisColorSelectorComponent and use it's currentColor() method to get the
>> currently selected color? If not, could someone point me in the right
>> direction. Thanks.
>>
>>
>> --
>> regards,
>> Koushik. S
>>
>> _______________________________________________
>> Krita mailing list
>> kimageshop at kde.org
>> https://mail.kde.org/mailman/listinfo/kimageshop
>>
>>
>
>
> --
> Dmitry Kazakov
>
> _______________________________________________
> Krita mailing list
> kimageshop at kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>
>


-- 
regards,
Koushik. S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20140306/c585d1f4/attachment.html>


More information about the kimageshop mailing list