┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorŁukasz Patron <[email protected]>2026-07-02 13:01:46 +0200
committerMéven Car <[email protected]>2026-07-08 08:10:06 +0000
commitefb2747d81030a697cf7bd29bc66bf7b52512e71 (patch)
tree8c89405fb65754acc5ebb556318098f60eb17d8f /src
parentc8c3fb18e937671225205a331162aadb3742b256 (diff)
informationpanelcontent: Fix transparent name label context menuHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/panels/information/informationpanelcontent.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp
index cdd98f54c..fb6051262 100644
--- a/src/panels/information/informationpanelcontent.cpp
+++ b/src/panels/information/informationpanelcontent.cpp
@@ -83,7 +83,11 @@ InformationPanelContent::InformationPanelContent(QWidget *parent)
m_nameLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
m_nameLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
m_nameLabel->setFrameShape(QFrame::NoFrame);
- m_nameLabel->setStyleSheet("background-color: transparent; padding: 0px;");
+ auto nameLabelPalette = m_nameLabel->palette();
+ nameLabelPalette.setColor(QPalette::ColorGroup::Normal,
+ QPalette::ColorRole::Base,
+ nameLabelPalette.color(QPalette::ColorGroup::Normal, QPalette::ColorRole::Window));
+ m_nameLabel->setPalette(nameLabelPalette);
m_nameLabel->setContentsMargins(0, 0, 0, 0);
m_nameLabel->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_nameLabel->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);