D7941: use Kirigami Theme for colors

David Edmundson noreply at phabricator.kde.org
Tue Oct 3 14:49:17 UTC 2017


davidedmundson added a comment.


  Is 5.39 tagged already?

INLINE COMMENTS

> plasmadesktoptheme.cpp:48
> +                this, [this]() {
> +                    if (m_parentItem && m_parentItem->window()) {
> +                        connect(m_parentItem->window(), &QWindow::activeChanged,

and disconnect from the old window

> plasmadesktoptheme.cpp:82
> +
> +    KIconLoader::global()->setCustomPalette(pal);
> +

This is bad

If some other place miles away in a random lib in a different place in the UI, sets a colour, it will be wrong.

Why meddle with the global loader if you're passing it as an arg anyway?

REPOSITORY
  R858 Qt Quick Controls 2: Desktop Style

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

To: mart, #plasma, #kirigami, hein
Cc: davidedmundson, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, hein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171003/0c025405/attachment.html>


More information about the Plasma-devel mailing list