<?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>173264</bug_id>
          
          <creation_ts>2008-10-22 00:52:54 +0000</creation_ts>
          <short_desc>Add hotkey for &quot;Change colors&quot;</short_desc>
          <delta_ts>2019-05-05 13:46:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>okular</product>
          <component>general</component>
          <version>0.7.2</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=407217</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Claus Appel">spectrumdt</reporter>
          <assigned_to name="Okular developers">okular-devel</assigned_to>
          <cc>a.skembris</cc>
    
    <cc>aacid</cc>
    
    <cc>ciro.santilli</cc>
    
    <cc>Reinhard.Thies</cc>
    
    <cc>tclwarrior</cc>
    
    <cc>tomasz</cc>
          
          <cf_commitlink>http://commits.kde.org/okular/afc74e76ef70abf70d993d4099000742080a8a85</cf_commitlink>
          <cf_versionfixedin>4.12.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>655880</commentid>
    <comment_count>0</comment_count>
    <who name="Claus Appel">spectrumdt</who>
    <bug_when>2008-10-22 00:52:54 +0000</bug_when>
    <thetext>Version:           0.7.2 (using KDE 4.1.2)
OS:                Linux
Installed from:    Fedora RPMs

Please add the option to set up a hotkey to turn the &quot;Change colors&quot; switch on and off (currently reachable via Settings -&gt; Configure Okular -&gt; Accessibility -&gt; Change colors&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1335902</commentid>
    <comment_count>1</comment_count>
    <who name="Tomasz Meresiński">tomasz</who>
    <bug_when>2013-01-28 08:34:57 +0000</bug_when>
    <thetext>Lack of fast way to switch off/on change color option makes this option useless. There are some pdfs that look terrible with change color switched on - the ones with photos are good example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406154</commentid>
    <comment_count>2</comment_count>
      <attachid>83100</attachid>
    <who name="Ciro Santilli">ciro.santilli</who>
    <bug_when>2013-10-25 08:11:06 +0000</bug_when>
    <thetext>Created attachment 83100
pacth fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406159</commentid>
    <comment_count>3</comment_count>
    <who name="Ciro Santilli">ciro.santilli</who>
    <bug_when>2013-10-25 08:34:15 +0000</bug_when>
    <thetext>Sorry for double post, first patch and I have just figured that the patch comment goes to the devel list...

Added default shortcut Ctrl + I for change colors.

This should have the exact same of clicking the toolbox Settigs &gt; Configure Okular &gt; Accessibility &gt; Change colors and then Ok, therefore changing the saved configs.

I am not sure if:

-  viewport()-&gt;update() is the right way to update the screen after this config change?

    Where is the `update()` method defined? If I tracked well, viewport() returns a DocumentViewport, which does not seem to have such a method.

- did I put things in the right place

but it seems to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406289</commentid>
    <comment_count>4</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2013-10-25 14:48:43 +0000</bug_when>
    <thetext>please post the patch to reviewboard.kde.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406291</commentid>
    <comment_count>5</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2013-10-25 14:49:25 +0000</bug_when>
    <thetext>*** Bug 266157 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406449</commentid>
    <comment_count>6</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2013-10-26 09:43:34 +0000</bug_when>
    <thetext>Git commit afc74e76ef70abf70d993d4099000742080a8a85 by Albert Astals Cid, on behalf of Ciro Santilli.
Committed on 26/10/2013 at 09:40.
Pushed by aacid into branch &apos;master&apos;.

Add an action to toggle Change Colors

This has the exact same behaviour of clicking the toolbox Settigs &gt; Configure Okular &gt; Accessibility &gt; Change colors and then clicking Ok, therefore changing the saved configs.
FIXED-IN: 4.12.0

M  +11   -0    ui/pageview.cpp
M  +1    -0    ui/pageview.h

http://commits.kde.org/okular/afc74e76ef70abf70d993d4099000742080a8a85</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442069</commentid>
    <comment_count>7</comment_count>
    <who name="Ali">tclwarrior</who>
    <bug_when>2014-04-18 23:26:20 +0000</bug_when>
    <thetext>the coments here seem to suggest that
the ctrl-i shortcut is added in kde version 4.12.0

i am now running kubuntu 14.04 
which run kde 4.13 
and okular 0.19

and this patch still did not make it to it 
this is really a key feature, to be able to easily invert color 
i hope it gets more attentions and be re-opened actually 
unless its an issue in kubuntu, not pulling this in</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442071</commentid>
    <comment_count>8</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2014-04-18 23:32:31 +0000</bug_when>
    <thetext>The feauture is implemented. It just doesn&apos;t have a default shortcut, you can just assign the one you prefer for this really key feature</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442263</commentid>
    <comment_count>9</comment_count>
    <who name="Ciro Santilli">ciro.santilli</who>
    <bug_when>2014-04-20 08:48:18 +0000</bug_when>
    <thetext>@Albert I propose Okular reconsiders the decision not to assign a default key and assigns one for the following reasons:

- when new users want the feature, which is really way better with a shortcut, they have to do the work of setting it up.

- users have to think themselves about a good way to dispose their many shourtcuts without conflict, while keeping them as mnemonic as possible. Just imagine if, say, Vim had no default shortcuts =) Okular devs are the ones who can make the best choice.

If we add the shortcut by default we remove both of those burdens from new users. This is is specially important to attract new users who are not likely to search a lot for how to do things when using a new program.

And if more advanced users want to change that shortcut, they can always do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442335</commentid>
    <comment_count>10</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2014-04-20 14:48:08 +0000</bug_when>
    <thetext>If we add a shortcut to each action we run of of shortcuts. So no.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442337</commentid>
    <comment_count>11</comment_count>
    <who name="Ciro Santilli">ciro.santilli</who>
    <bug_when>2014-04-20 14:50:56 +0000</bug_when>
    <thetext>@Albert we could select the most useful ones until we run out =)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442344</commentid>
    <comment_count>12</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2014-04-20 15:32:45 +0000</bug_when>
    <thetext>Yes, you can, there&apos;s a configure dialog for that.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>83100</attachid>
            <date>2013-10-25 08:11:06 +0000</date>
            <delta_ts>2013-10-25 08:11:06 +0000</delta_ts>
            <desc>pacth fix</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>1527</size>
            <attacher name="Ciro Santilli">ciro.santilli</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3VpL3BhZ2V2aWV3LmNwcCBiL3VpL3BhZ2V2aWV3LmNwcAppbmRleCBhMWFi
NWJkLi44ZDUyZmI5IDEwMDY0NAotLS0gYS91aS9wYWdldmlldy5jcHAKKysrIGIvdWkvcGFnZXZp
ZXcuY3BwCkBAIC01MzIsNiArNTMyLDExIEBAIGRvIHsgXAogICAgIG16LT5zZXRTaG9ydGN1dCgg
UXQ6OkNUUkwgKyBRdDo6S2V5XzIgKTsKICAgICBtei0+c2V0QWN0aW9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