1. 30 Oct, 2020 1 commit
  2. 29 Oct, 2020 7 commits
    • Agata Cacko's avatar
      Generate pixelart previews using FastTransformation · ab3890d0
      Agata Cacko authored
      Before this commit, all previews for .kra files were generated
      using the Bicubic algorithm.
      This commit checks if there is a chance that the file is a pixel art
      file, and in such case creates a preview using the FastTransformation
      (presumably Nearest Neighbour, but it isn't said in the Qt
      documentation) algorithm.
      
      It is determined that it is safe to use FastTransformation algorithm
      in case when both of those conditions are true:
      - the file is smaller than the preview size
      - the exact scale in both dimensions is integer (so it will enlarge
      all pixels the same way).
      ab3890d0
    • L. E. Segovia's avatar
      Correctly add barrier jobs for KisGeneratorStrokeStrategy · 7f68229d
      L. E. Segovia authored
      The correct type of job to block Fill Layer updates is BARRIER --
      update jobs cannot start unless we are sure the previous set has
      been cleared and committed to the canvas.
      
      CCBUG:427199
      BUG: 428014
      7f68229d
    • Mathias Wein's avatar
      Fix malfunction of x/y position spin boxes in move tool's options · 12b3293d
      Mathias Wein authored
      The signal connections had to be moved from the constructor to
      activate(), since they get disconnected on every deactivate().
      
      Also, manipulating the x or y position without clicking on the canvas first
      doubled the initial value, because a new stroke gets created, which in turn
      resets the handle rect.
      Reading the value before starting the stroke and making sure it's not
      currently unavailable until recalculated should prevent it.
      
      BUG:420329,423452
      12b3293d
    • Sharaf Zaman's avatar
      Android: Color picker not working properly · 7f68adda
      Sharaf Zaman authored
      When a modal dialog is used, events outside of the widget bounds isn't
      received by modal window. This should make picker usable for all
      widgets not just Color to Alpha.
      
      BUG:423254
      
      (cherry picked from commit a159291b)
      7f68adda
    • Sharaf Zaman's avatar
      Android: Make Krita a singleTask application · 8bb0bc2f
      Sharaf Zaman authored
      With this if a user opens a file supported by Krita
      from an external app, rather than launching it in a
      separate instance of Krita (which will freeze). This
      will launch it in same instance and then we pass it to
      fileOpenRequested.
      
      This is similar to a browser app, which opens "new tab"
      rather than new activites.
      
      (cherry picked from commit 44e0b167)
      8bb0bc2f
    • Sharaf Zaman's avatar
      Android: add mimeType and pathPattern for .kra · 44504115
      Sharaf Zaman authored
      (cherry picked from commit c9e933bf)
      44504115
    • Sharaf Zaman's avatar
      Feature: Add a way to open files from external sources on Android · 93cdea8b
      Sharaf Zaman authored
      ...like a file manager, google drive, downloads manager.
      
      (cherry picked from commit 26027265)
      93cdea8b
  3. 28 Oct, 2020 14 commits
  4. 27 Oct, 2020 18 commits
    • Agata Cacko's avatar
      Draw Comic Manager pages in high res on high dpi displays · b8b657d2
      Agata Cacko authored
      Before this commit, images shown by Comic Manager would be drawn
      with low resolution on high dpi displays. This commit ensures
      that they use the highest resolution available.
      
      Note: because the pages in Comic Manager Docker
      (as opposed to the Page Viewer) use "preview.png"
      (Page Viewer uses "mergedimage.png"), which size is
      limited to max 256 pixels in one dimension,
      if the thumbnails size is big or if the file is pixel art,
      they won't look good anyway, because then the thumbnails size
      would be bigger than 256x256, so the thumbnails would be the result
      of upscaling from 256x256 to the thumbnalSize size.
      
      However the change does make it look better in the Page Viewer
      (including Pixel Art) and in the main docker for smaller thumbnails
      (unfortunately not for Pixel Art because the preview.png is scaled
      using the Smooth Transformation already).
      b8b657d2
    • Agata Cacko's avatar
      Draw high res thumbnails in Last Documents docker · 86bfbf70
      Agata Cacko authored
      Before this commit, Last Documents docker Python plugin would contain
      low resolution thumbnails. This commit ensures that the thumbnails are
      drawn with the highest possible resolution on high dpi displays.
      
      This commit also contains a fix for pixel art images to be drawn using
      the Qt.FastTransformation algorithm instead of SmoothTransformation.
      Note that for it to work with .kra files, it needs to be a
      'mergedimage.png' scaled up, not 'preview.png', because 'preview.png'
      is already smoothed and scaled.
      86bfbf70
    • Agata Cacko's avatar
      Draw Recent Documents in high res on high dpi displays · 01145d2b
      Agata Cacko authored
      Before this commit, only .kra files thumbnails would be drawn with high
      resolution on high dpi displays, and all other types of files would be
      drawn with low resolutions.
      This commit ensures that all types of files will be drawn with the
      highest possible resolution.
      01145d2b
    • Agata Cacko's avatar
      Draw Popup Palette in high res on high dpi displays · 1467dc35
      Agata Cacko authored
      Before this commit, both the brush icons and the triangle color selector
      inside the popup palette was drawn in low resolution on high dpi
      displays.
      This commit ensures all of it is drawn with the highest possible
      resolution.
      
      This commit also contains a change in a QRegion defining a mask for the
      color selector inside. This is necessary for the anti-aliasing to work
      nicely. If the Ellipse region is too small, its rough low-res
      anti-aliasing (if there is any anti-aliasing at all) makes the
      anti-aliasing on high dpi displays look really bad. This commit makes
      the ellipse significantly bigger and intersects it with a QRegion
      to make sure the mask doesn't go outside of the QWidget area.
      1467dc35
    • Agata Cacko's avatar
      Draw Artistic Color Selector in high res on high dpi displays · 3baa786d
      Agata Cacko authored
      Before this commit, Artistic Color Selector would be drawn in low
      resolution on high dpi displays. This commit fixes it by ensuring it
      creates the high resolution cache so it;s drawn in a highest possible
      resolution.
      3baa786d
    • Agata Cacko's avatar
      Draw clipboard content in high res on high dpi displays · eda7f45d
      Agata Cacko authored
      Before this commit, in File -> New -> From Clipboard the image
      was drawn in low resolution on high dpi displays. This commit fixes this
      behaviour and ensures it uses the highest possible resolution.
      eda7f45d
    • Agata Cacko's avatar
      Draw Adv. Color Sel. in high res on high DPI displays · dad49ca0
      Agata Cacko authored
      Before this commit, Advanced Color Selector would be drawn in
      low resolution on high DPI displays.
      This commit ensures that it is always drawn in a highest resolution
      possible.
      dad49ca0
    • Agata Cacko's avatar
      Draw bundle icons in storage chooser in high res on high dpi displays · 793f57ac
      Agata Cacko authored
      Before this commit, Krita would draw the bundle icons in low resolution.
      This commit fixes it and now Krita draws them in the highest possible
      resolution.
      793f57ac
    • Agata Cacko's avatar
      Draw gamut masks in high res on high dpi displays · e408e261
      Agata Cacko authored
      Before this commit, gamut masks in the Gamut Masks docker
      would be drawn in a low resolution on high dpi displays
      because of the UI scaling.
      This commit fixes it and now Krita uses the highest possible resolution.
      e408e261
    • Agata Cacko's avatar
      Draw preset icon in Brush Editor in high res on high dpi displays · 9270ea8a
      Agata Cacko authored
      Before this commit, Krita would draw the preset icon in the Brush Editor
      in the low resolution (result of UI scaling). This commit fixes it
      and now Krita draws it in the highest possible resolution.
      9270ea8a
    • Agata Cacko's avatar
      Fix preset chooser in high resolution · 81f30a62
      Agata Cacko authored
      Before this commit, Krita would paint preset icons in a lower resolution
      on high dpi displays.
      This commit fixes this behaviour.
      81f30a62
    • Agata Cacko's avatar
      Draw layer icon in popup in high resolution · 6ae93ca0
      Agata Cacko authored
      Before this commit, it would be drawn in a low resolution
      on high dpi displays. This commit fixes this behaviour by ensuring that
      it knows about the dpi scaling and draws the image in the higher
      resolution.
      6ae93ca0
    • Agata Cacko's avatar
      Draw layers thumbnails in high res on highDPI displays · dba0e5b0
      Agata Cacko authored
      Before this commit, layers thumbnails in the Layers docker would be
      drawn in low resolution on highDPI displays.
      This commit fixes this behaviour.
      dba0e5b0
    • Agata Cacko's avatar
      Draw icon widget with high res on high dpi display · 54b2f3de
      Agata Cacko authored
      Before this commit, icon widget (for example for the brush popup)
      would use much smaller resolution than actual because of not being
      high dpi aware.
      This commit fixes this behaviour.
      54b2f3de
    • Agata Cacko's avatar
      Fix no scaling of brush tips in resource item delegate · b0791a0c
      Agata Cacko authored
      Before this commit, small brush tips would not be scaled up
      in the resource item delegate (used in Resource View in Database
      Explorer). This commit makes sure they are scaled up using the
      FastTransformation which allows the user to see what the resolution
      is (because it shows pixels; SmoothTransformation looks just as low-res
      but doesn't provide the information how much low-res it is).
      b0791a0c
    • Agata Cacko's avatar
      Draw resource item delegate in high res on high dpi display · 9549f6ee
      Agata Cacko authored
      Before this commit, resource item delegate (used in Database
      Explorer in the Resource View tab) would be drawn in low resolution
      and scaled afterwards by Qt according to the UI scaling.
      This commit fixes it by drawing already in the correct, high resolution.
      9549f6ee
    • Agata Cacko's avatar
      Draw resource tooltips in high res in resource selector · 0c4db144
      Agata Cacko authored
      Before this commit, resource tooltips in resource selector would be
      drawn in the resolution *after* UI scaling applied.
      This commit ensures that they are drawn in high resolution
      by making sure that the QImage is aware of the UI scaling
      and that the scaling to fixed size won't scale it too much.
      0c4db144
    • Agata Cacko's avatar
      Fix brush tooltips in resource selector · c820779b
      Agata Cacko authored
      Before this commit, there would be no brush icons in tooltips
      in resource selector because the thumbnail would get destroyed
      by scaling to (-1, -1) size.
      
      This commit fixes it by checking if the new size is empty and if so,
      not scaling it.
      c820779b