1. 15 Jan, 2020 4 commits
    • Noah Davis's avatar
      Use Text instead of WindowText for scrollbar border · d336cca2
      Noah Davis authored
      Hugo Pereira Da Costa said Text is better because scrollbar are usually
      rendered over item views.
    • Noah Davis's avatar
      Fix hardcoded scrollbar separator width · e606b264
      Noah Davis authored
    • Marco Martin's avatar
      show a thin separator between view and scrollbar · df134061
      Marco Martin authored
      This look makes listviews look way better, not having the selected
      items look truncated into nothingness.
      Always display "big" handles, due to the numerous complaints of the slim handles not being obvious
      Test Plan:
      Reviewers: #plasma, #breeze, #vdg, ngraham, hpereiradacosta
      Reviewed By: #vdg, ngraham, hpereiradacosta
      Subscribers: ndavis, ahiemstra, hpereiradacosta, mthw, plasma-devel
      Tags: #plasma
      Maniphest Tasks: T9126
      Differential Revision: https://phabricator.kde.org/D26655
    • Marco Martin's avatar
      Make the scrollbar always thick · 6694eb7a
      Marco Martin authored
      Second part of D26655, removes the thin scrollbar and makes it always thick
      to implement the desired design
      BUG: 396747
      FIXED-IN: 5.18.0
      Test Plan: {F7884060}
      Reviewers: #plasma, #vdg, #breeze, ngraham, ndavis
      Reviewed By: #vdg, #breeze, ngraham, ndavis
      Subscribers: plasma-devel
      Tags: #plasma
      Maniphest Tasks: T9126
      Differential Revision: https://phabricator.kde.org/D26685
  2. 14 Jan, 2020 1 commit
  3. 13 Jan, 2020 3 commits
    • Noah Davis's avatar
      Make checkboxes/radiobuttons use Window Background in windows and View Backround in lists · 3e9cd8d1
      Noah Davis authored
      Summary: If the widget has an item view parent, use the View Background color. Otherwise, use Window Background.
      Test Plan: {F7881597, size=full}
      Reviewers: #vdg, #breeze, hpereiradacosta, ngraham
      Reviewed By: #vdg, hpereiradacosta
      Subscribers: plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D26639
    • Noah Davis's avatar
    • Noah Davis's avatar
      Always render checkbox/radiobutton background · 98781f18
      Noah Davis authored
      QQC2/Kirigami checkboxes and radio buttons can turn invisible when rendered over a selected item because their background isn't rendered and they don't have any hacks to detect when they're being rendered over a selected list item.
      While the problem isn't technically a Breeze QStyle problem and a hack could be made for QQC2/Kirigami, I don't think there's any great style benefit to not rendering a background for the checkbox. I suppose there is a performance benefit to not rendering a checkbox background except for when the background is different from normal. In my testing with GammaRay's paint analyzer, the checkbox background has a cost less than 5%. The radiobutton background has a cost of 15-20% (maybe it can be improved?).
      Reviewers: #vdg, #breeze, #plasma, hpereiradacosta, ngraham
      Reviewed By: #vdg, hpereiradacosta, ngraham
      Subscribers: plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D26572
  4. 06 Jan, 2020 1 commit
  5. 05 Jan, 2020 1 commit
  6. 04 Jan, 2020 2 commits
  7. 30 Dec, 2019 2 commits
  8. 29 Dec, 2019 6 commits
  9. 28 Dec, 2019 1 commit
    • Noah Davis's avatar
      Add standard pen widths and replace hardcoded numbers · c16eb7a4
      Noah Davis authored
      The replaced numbers are directly related to the width of the pen.
      This patch likely doesn't replace all of the numbers that could be replaced.
      It just replaces the ones I'm currently certain of being related to pen width.
      The goal is to make the code show the intent of the designer.
      Reviewers: #breeze, #plasma, hpereiradacosta, ngraham
      Reviewed By: #breeze, hpereiradacosta, ngraham
      Subscribers: plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D26217
  10. 26 Dec, 2019 2 commits
  11. 25 Dec, 2019 1 commit
  12. 21 Dec, 2019 2 commits
    • Noah Davis's avatar
      Make arrows pixel perfect · bda1b374
      Noah Davis authored
    • Noah Davis's avatar
      Revert "Revert "Reduce the indicator arrow size for press-and-hold menus in QToolButtons"" · 288c3b85
      Noah Davis authored
      This reverts commit c9aa5358.
      Also makes the small down arrow pixel perfect. I will make the other arrows pixel perfect in a separate patch.
      After D19890 (27bcd1be) was reopened, there was some discussion about the reason it was reverted and the problems it introduced. It is possible that an icon could partially cover this arrow, but it seemed uncommon enough that ignoring the problem was deemed acceptable. The type of control that this arrow is used for is also pretty uncommon because it does not feel very good to use with a mouse or touchpad.
      Reviewers: #vdg, #breeze, #plasma, hpereiradacosta, ngraham
      Reviewed By: #vdg, #breeze, ngraham
      Subscribers: plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D26139
  13. 19 Dec, 2019 1 commit
    • Noah Davis's avatar
      Add shadow rendering helper functions · 4a78561a
      Noah Davis authored
      This patch makes other helper functions reuse more code by calling these shadow rendering functions instead of defining their own shadows.
      The shadows are perfectly shaped, tested up to 8x scaling.
      Without this patch, the radius of the shadows for checkboxes is slighly too wide and there is a gap between the inside edge of the radio button shadow and the outside edge of the radio button.
      Shadow rendering performance has also been improved a bit.
      Test Plan:
      run `QT_SCALE_FACTOR=8 oxygen-demo5` and examine the shadows. You can try higher scaling levels, but that's overkill.
      8x scaling
      before: {F7824689, size=full} {F7824691, size=full}
      after: {F7824692, size=full} {F7824693, size=full}
      Reviewers: #breeze, hpereiradacosta, #plasma
      Reviewed By: hpereiradacosta
      Subscribers: ngraham, plasma-devel
      Tags: #plasma
      Differential Revision: https://phabricator.kde.org/D26094
  14. 18 Dec, 2019 1 commit
  15. 14 Dec, 2019 2 commits
    • Noah Davis's avatar
    • Noah Davis's avatar
      Fix rubberband selection outline position · 80650e0e
      Noah Davis authored
      Before this patch, the outline of the rubberband selection control was down and to the right half a pixel too far.
      This wasn't visible at 1x scaling because of the lack of antialiasing, but resulted in the top/left being too thin and bottom/right being too thick on high DPI displays.
      To fix the issue, I enabled antialiasing and moved all sides inwards by half a pixel so that the outline would be pixel perfect.
      I also added a function to get a QRectF with the correct size and position for rectangles with pen strokes.
      Test Plan:
      - Open dolphin and make a selection with the mouse
      - Go to a Folder View Plasma widget and make a selection with the mouse
      2x scaling
      before: {F7818498, size=full}
      after: {F7818500, size=full}
      3x scaling
      before: {F7818484}
      after: {F7818483}
      Reviewers: #vdg, #breeze, #plasma, hpereiradacosta, broulik
      Reviewed By: hpereiradacosta
      Subscribers: broulik, plasma-devel
      Tags: #plasma, #breeze, #vdg
      Differential Revision: https://phabricator.kde.org/D26001
  16. 10 Dec, 2019 2 commits
  17. 07 Dec, 2019 1 commit
  18. 06 Dec, 2019 1 commit
  19. 03 Dec, 2019 1 commit
  20. 29 Nov, 2019 1 commit
  21. 12 Nov, 2019 1 commit
  22. 08 Nov, 2019 1 commit
  23. 04 Nov, 2019 1 commit
    • David Edmundson's avatar
      Add KDEClangFormat cmake support · 4a6da365
      David Edmundson authored
      This allows devs to run: "make clang-format" and format all files easily
      using the preset KDE clang format style
      This patch adds support so devs can easily test the intended formatting
      now, it doesn't change the code yet.
      Doing an initial run to commit everything will happen later.
      Test Plan:
      Ran script
      git diff was full of amazingly cleaned code
      See D25134
  24. 31 Oct, 2019 1 commit