Menu

#920 Adhere to the DE's QStyle and QPalette.

New
nobody
Medium
Enhancement
2026-06-20
2026-06-20
No

It's trivial to adhere to:

PS /home/beedell.roke_julian_lockhart> bpython
bpython version 0.26 on top of Python 3.14.5 /usr/bin/python3
>>> from PySide6.QtWidgets import QApplication
>>> 
>>> app = QApplication([])
>>> style, palette = QApplication.style(), QApplication.palette()
>>> print(style)
<PySide6.QtWidgets.QCommonStyle(0x55e9158f28a0, name = "breeze") at 0x7fb40b4fb6c0>
>>> print(palette)
<PySide6.QtGui.QPalette(resolve=0x0) at 0x7fb40b4fb700>

Overriding it makes using the application difficult for anyone who is visually impaired (not least because it regresses its dark mode support), and makes it unintuitive regardless.

1 Attachments

Discussion

  • Giorgio Tani

    Giorgio Tani - 2026-06-20

    Does this method work when the Qt6 version of the app is used from a GTK/Gnome based Desktop Environment, and when it is run from a Flatpak container?
    As for my test on Linux test machines the Qt6 app version applies correctly, and without need of workarounds, theming from a Qt-based DE, while needs appropriate methods to apply DE theming if the DE is not Qt based, or if the app is run as Flatpak.

     
    • Mr. Beedell, Roke Julian Lockhart (RJLB)

      @giorgiotani, this "method" to do what? (This issue is about adhering to the DE's QStyle and QPalette. In my case, and by default with KDE Plasma 5 and 6, that is org\.kde\.breeze.*.)

      Regardless, my environment is:

      PS /home/beedell.roke_julian_lockhart> rpm -qf (Get-Command peazip).Source --queryformat @'    
      >> Name: %{NAME}
      >> Version: %{VERSION}
      >> Release: %{RELEASE}
      >> Architecture: %{ARCH}
      >> Install Date: %{INSTALLTIME:date}
      >> Size: %{SIZE}
      >> Signature: %{SIGPGP:pgpsig}
      >> Source RPM: %{SOURCERPM}
      >> Build Date: %{BUILDTIME:date}
      >> Build Host: %{BUILDHOST}
      >> Packager: %{PACKAGER}
      >> Vendor: %{VENDOR}
      >> '@ | yq -P
      Name: peazip-qt6
      Version: 11.1.0
      Release: 1.fc44
      Architecture: x86_64
      Install Date: Sat 20 Jun 2026 13:36:44 BST
      Size: 10508384
      Signature: EdDSA/SHA256, Mon 11 May 2026 09:47:42 BST, Key ID 00cdab43de226d6f
      Source RPM: peazip-11.1.0-1.fc44.src.rpm
      Build Date: Mon 11 May 2026 09:46:36 BST
      Build Host: d81056b4f2b3
      Packager: (none)
      Vendor: Terra
      
       

      Last edit: Mr. Beedell, Roke Julian Lockhart (RJLB) 2026-06-20

Log in to post a comment.