diff options
| author | Łukasz Patron <[email protected]> | 2026-07-02 13:01:46 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-07-08 08:10:06 +0000 |
| commit | efb2747d81030a697cf7bd29bc66bf7b52512e71 (patch) | |
| tree | 8c89405fb65754acc5ebb556318098f60eb17d8f /src/panels/information/informationpanelcontent.cpp | |
| parent | c8c3fb18e937671225205a331162aadb3742b256 (diff) | |
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 6 |
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); |
