1. 09 Jun, 2022 1 commit
  2. 30 Apr, 2022 1 commit
  3. 14 Apr, 2022 1 commit
  4. 28 Mar, 2022 1 commit
  5. 23 Feb, 2022 1 commit
    • Janet Blackquill's avatar
      kstyle: fix low contrast tabs on dark · 9d361c9e
      Janet Blackquill authored
      This fixes the contrast of tabs on dark themes by using
      a darkening factor on the Window colour, adjusted for
      whether it's light or dark, instead of using the Shadow
      colour for both light and dark themes.
      
      BUG: 438627
      FIXED-IN: 5.25
      9d361c9e
  6. 17 Jan, 2022 1 commit
  7. 31 Dec, 2021 1 commit
  8. 11 Oct, 2021 1 commit
    • Tatsuyuki Ishi's avatar
      shadow: handle DPR outside the renderer · ee06e262
      Tatsuyuki Ishi authored and Noah Davis's avatar Noah Davis committed
      QPainter's auto-scaling is prone to off-by-one rounding errors and draws on
      fractional coordinates. With this change, we paint on a 1x DPR QPainter and
      scale the shadow offset and strength manually based on DPR.
      
      This resolves an issue with resulting in seams on the right and bottom
      edges of a menu due to shadow boundaries being off-by-one.
      
      BUG: 418166
      
      v2: remove unrelated formatting changes
      v3:
      - move the DPR helper to ShadowHelper
      - retrieve the DPR from the widget instead of the global QGuiApplication
      - added BUG reference
      ee06e262
  9. 25 Sep, 2021 1 commit
    • Noah Davis's avatar
      kstyle: Clean up tab painting and tweak tab highlight · 46344e71
      Noah Davis authored
      The previous way it was painted was kind of messy in the sense that
      other parts overlapped with the active tab when they shouldn't have or
      didn't overlap enough like with the highlight. There were also some
      painting artifacts that were just weird and are now gone.
      46344e71
  10. 24 Sep, 2021 3 commits
  11. 16 Sep, 2021 1 commit
  12. 15 Sep, 2021 3 commits
  13. 14 Sep, 2021 1 commit
  14. 10 Aug, 2021 1 commit
  15. 27 Jul, 2021 1 commit
    • Nate Graham's avatar
      Make radiobutton center dots smaller · 5c385621
      Nate Graham authored
      We've gotten some feedback that radio buttons look like big creepy eyes
      that are staring at you. To reduce that effect, this commit makes the
      center dots a bit smaller.
      5c385621
  16. 08 Jun, 2021 7 commits
  17. 06 May, 2021 1 commit
  18. 20 Mar, 2021 1 commit
  19. 26 Feb, 2021 1 commit
  20. 02 Jan, 2021 1 commit
  21. 19 Nov, 2020 1 commit
  22. 18 Nov, 2020 1 commit
    • Fabian Vogt's avatar
      Revert "Draw frame outline at the outer edge, not a pixel further inside" · ae65ce30
      Fabian Vogt authored
      This reverts commit 7e678c34 and the followup.
      
         A       B
      +-----+ +-----+   C
      |     | |XXXXX| +---+
      | XXX | |X   X| |XXX|
      | XCX | |X C X| |XCX|
      | XXX | |X   X| |XXX|
      |     | |XXXXX| +---+
      +-----+ +-----+
      
      Initially it was A, the referenced commit changed it to be B instead, which
      created a 1px gap between frame and content, and the followup avoids that gap
      by adjusting the frame width, resulting in C.
      
      Although it's consistent, it leads to a worse apperance in places where the 1px
      margin between frame and rect was expected.
      ae65ce30
  23. 11 Nov, 2020 1 commit
    • Michael Weghorn's avatar
      Draw frame outline at the outer edge, not a pixel further inside · 7e678c34
      Michael Weghorn authored
      The documentation for 'QPainter::drawRoundedRect' [1]
      says:
      
      "A filled rectangle has a size of rect.size(). A stroked
      rectangle has a size of rect.size() plus the pen width."
      
      Therefore, the frame rect passed to that method needs to
      be adjusted according to the pen width for the case where
      the rect is stroked (i.e. an outline exists), and no
      adjustement is needed when the rect is not stroked so
      that
      
          [size of rect] + [outline width] = [wanted total size]
      
      The default pen size is 1 (which is also the value
      of 'PenWidth::Frame' used to calculate the radius for the
      outline a few lines further down).
      
      For the case that an outline exists, the adjustment of
      the rect already happens in the call to 'Helper::strokedRect',
      so there is no need for reducing the rect by one additional
      pixel on each side, which resulted in the frame border
      unnecessarily not being right at the inner edge of the
      rect, but one additional pixel "further inside".
      
      It looks like the additional adjustment was originally added
      by commit 3dbcea7e
      ("Changed frame width to 2, to cope with focus rect.",
      2014-07-30), later adapted by  commit
      f288c34c
      ("Render 2px focused outline *inside* frames rather than outside",
      2014-08-11) and commit 2985b4cb
      ("use one pixel for focus frame instead of 2", 2014-09-22).
      
      While 'Metrics::Frame_FrameWidth' still has the value 2,
      it is not used here at all, so the default pen width of 1
      applies.
      
      Therefore, drop the extra adjustment in order for the
      stroke to be drawn right at the edge of the rect.
      
      [1] https://doc.qt.io/qt-5/qpainter.html#drawRoundedRect
      
      BUG: 428973
      7e678c34
  24. 02 Oct, 2020 1 commit
  25. 28 Sep, 2020 1 commit
    • Janet Blackquill's avatar
      [kstyle] Tools area · 509ff6bc
      Janet Blackquill authored
      Summary: There is now a tools area.
      
      Test Plan:
      {F8132249}
      
      {F8132260} (no border drawn when titlebar and content colours are the same)
      
      {F8132252}
      
      {F8132253}
      
      Reviewers: #plasma, #breeze, #vdg, hpereiradacosta, davidre, ngraham
      
      Reviewed By: #breeze, #vdg, hpereiradacosta, ngraham
      
      Subscribers: mart, maartens, abstractdevelop, IlyaBizyaev, davidre, davidedmundson, hpereiradacosta, ngraham, manueljlin, niccolove, ndavis, plasma-devel
      
      Tags: #plasma
      
      Maniphest Tasks: T10201, T11661
      
      Differential Revision: https://phabricator.kde.org/D27669
      509ff6bc
  26. 21 Sep, 2020 1 commit
  27. 17 Sep, 2020 1 commit
  28. 10 Sep, 2020 1 commit
  29. 10 Aug, 2020 1 commit
  30. 29 Jul, 2020 1 commit