<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>443793</bug_id>
          
          <creation_ts>2021-10-15 16:42:46 +0000</creation_ts>
          <short_desc>[text tool/color] edit a text and active color in advanced color selector auto-switch to the background color</short_desc>
          <delta_ts>2021-10-21 11:39:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Tool/Text</component>
          <version>5.0.0-beta2</version>
          <rep_platform>Appimage</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="David REVOY">info</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/commit/071b5996571f80a78fae50322405a787b1b17bb7</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2068852</commentid>
    <comment_count>0</comment_count>
    <who name="David REVOY">info</who>
    <bug_when>2021-10-15 16:42:46 +0000</bug_when>
    <thetext>Hi,
After selecting a text box and pressing the Enter key to edit it; the active color in the Advanced Color Selector switch to the background color.


STEPS TO REPRODUCE
1. Setup a background color (click on the toolbar the mini square for background color, and put an obvious color: red)
2. Edit a text box (select it + Enter)
3. When the dialog pop-up, look at the advanced color selector.

OBSERVED RESULT
Active color in the Advanced Color Selector auto-switch to the background color.

EXPECTED RESULT
Active color in the Advanced Color Selector remains the foreground color selected.

SOFTWARE/OS VERSIONS
Kubuntu 20.04LTS/Appimage 5.0beta2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070145</commentid>
    <comment_count>1</comment_count>
    <who name="sh_zam">shzam</who>
    <bug_when>2021-10-19 12:22:10 +0000</bug_when>
    <thetext>Git commit 1913d805b833f9ae8de6a159db67a9f638c45502 by Sharaf Zaman.
Committed on 19/10/2021 at 12:15.
Pushed by szaman into branch &apos;master&apos;.

Bugfix: Editing text makes color selector to select wrong color

When we press `Enter` this deactivates the KoFillConfigWidget, which
reverts the color to the `overriddenColor`. We change this behavior by
uploading the color of the shape back to resourceManager in SvgTextTool.

M  +16   -19   libs/ui/widgets/KoFillConfigWidget.cpp
M  +13   -1    plugins/tools/svgtexttool/SvgTextTool.cpp
M  +3    -0    plugins/tools/svgtexttool/SvgTextTool.h

https://invent.kde.org/graphics/krita/commit/1913d805b833f9ae8de6a159db67a9f638c45502</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070920</commentid>
    <comment_count>2</comment_count>
    <who name="sh_zam">shzam</who>
    <bug_when>2021-10-21 11:39:59 +0000</bug_when>
    <thetext>Git commit 071b5996571f80a78fae50322405a787b1b17bb7 by Sharaf Zaman.
Committed on 21/10/2021 at 11:38.
Pushed by szaman into branch &apos;krita/5.0&apos;.

Bugfix: Editing text makes color selector to select wrong color

When we press `Enter` this deactivates the KoFillConfigWidget, which
reverts the color to the `overriddenColor`. We change this behavior by
uploading the color of the shape back to resourceManager in SvgTextTool.
(cherry picked from commit 1913d805b833f9ae8de6a159db67a9f638c45502)

M  +16   -19   libs/ui/widgets/KoFillConfigWidget.cpp
M  +13   -1    plugins/tools/svgtexttool/SvgTextTool.cpp
M  +3    -0    plugins/tools/svgtexttool/SvgTextTool.h

https://invent.kde.org/graphics/krita/commit/071b5996571f80a78fae50322405a787b1b17bb7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>