[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-desktop] containments/desktop/plugins/folder: Add translucent background attribute to deskto
From:       Andreas Sturmlechner <null () kde ! org>
Date:       2018-09-12 21:50:03
Message-ID: E1g0D1P-0002lT-4t () code ! kde ! org
[Download RAW message or body]

Git commit cc47b95094a331fe5bdd38f340d549dfa1bbf507 by Andreas Sturmlechner, on \
behalf of Alex Nemeth. Committed on 12/09/2018 at 21:49.
Pushed by asturmlechner into branch 'master'.

Add translucent background attribute to desktop icon popup menu

Summary:
This fixes the issue when menu transparency is enabled in the Breeze widget settings \
the context menu of desktop icons have no transparency. Multiple users (including me) \
have reported that D14174 did not solve the problem.

BUG: 395262

Test Plan:
Before:
{F6253280}

After:
{F6253279}

Reviewers: hein, davidedmundson, #plasma

Reviewed By: davidedmundson, #plasma

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D15435

M  +3    -0    containments/desktop/plugins/folder/foldermodel.cpp

https://commits.kde.org/plasma-desktop/cc47b95094a331fe5bdd38f340d549dfa1bbf507

diff --git a/containments/desktop/plugins/folder/foldermodel.cpp \
b/containments/desktop/plugins/folder/foldermodel.cpp index 8a460f0a..c0e07447 100644
--- a/containments/desktop/plugins/folder/foldermodel.cpp
+++ b/containments/desktop/plugins/folder/foldermodel.cpp
@@ -1818,6 +1818,9 @@ void FolderModel::openContextMenu(QQuickItem *visualParent, \
Qt::KeyboardModifier  } else {
         m_menuPosition = QCursor::pos();
     }
+    
+    
+    menu->setAttribute(Qt::WA_TranslucentBackground);
     menu->winId(); //force surface creation before ensurePolish call in menu::Popup \
which happens before show  menu->popup(m_menuPosition);
     connect(menu, &QMenu::aboutToHide, [menu]() { menu->deleteLater(); });


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic