D21312: [Places] Draw 2px rectangle disk capacity bar underneath mount points

Chris Holland noreply at phabricator.kde.org
Wed May 22 02:56:21 BST 2019


Zren added a comment.


  In D21312#467721 <https://phabricator.kde.org/D21312#467721>, @ndavis wrote:
  
  > Can you use the NegativeText color from the colorscheme instead of a custom danger color?
  
  
  NegativeText is a KDE ColorScheme color, and not part of `QPalette`. I haven't tried using it to access that `QColor` before.
  
  `DolphinView::updatePallette()` uses `KColorScheme`, and plasma's `theme.cpp` provides an example.
  
  - https://doc.qt.io/qt-5/qpalette.html
  - https://www.google.com/search?q=site%3Agithub.com%2Fkde+negativetext
  - https://github.com/KDE/plasma-framework/blob/master/src/plasma/private/theme_p.cpp#L695
  - https://github.com/KDE/dolphin/blob/master/src/views/dolphinview.cpp#L712
  
  Examples (Before on left / After using NegativeText on right):
  
  Breeze: F6841874: 2019-05-21___21-48-18.png <https://phabricator.kde.org/F6841874>
  
  Breeze Dark: F6841876: 2019-05-21___21-48-34.png <https://phabricator.kde.org/F6841876>
  
  Wantan Soup: F6841878: 2019-05-21___21-49-14.png <https://phabricator.kde.org/F6841878>

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D21312

To: Zren, #dolphin, #vdg
Cc: lavender, filipf, abetts, ndavis, ngraham, kfm-devel, alexde, feverfew, meven, spoorun, navarromorales, firef, andrebarros, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20190522/8d80b5f9/attachment.htm>


More information about the kfm-devel mailing list