• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IJHack / QtPass / 34776298671
93%

Build:
DEFAULT BRANCH: main
Ran 13 Sep 2026 07:05PM UTC
Jobs 1
Files 88
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Sep 2026 06:59PM UTC coverage: 64.453% (+0.04%) from 64.412%
34776298671

push

github

web-flow
fix: toolbar stays in the old theme after a KDE light/dark switch (#1669)

* fix: toolbar no longer stays in the old theme after a KDE light/dark switch

After #1661 the content pane and field frames follow a runtime theme
switch, but on KDE the toolbar still did not: dark bar with dark icons on
a light window, or the reverse.

Diagnosed with an instrumented build on Plasma 6 / Breeze: the app
palette, icons and every other widget switch; only ui->toolBar keeps a
palette Breeze imposed. Breeze's ToolsAreaManager gives top toolbars a
"header" palette and re-applies it on every ApplicationPaletteChange and
on re-polish, computing the header colours from a KSharedConfig of
kdeglobals that is not reparsed in this process — so it keeps stamping
the previous theme's colours back on. A plain Qt probe app happened to
get a fresh config; QtPass does not, and re-polishing does not help.

Fix in MainWindow: filter PaletteChange on the toolbar and, deferred by a
zero timer, compare the lightness of the toolbar's Window colour with the
application palette. A real header tint is within a few units of the
window colour; the other theme is >64 apart. In that case the imposed
palette is cleared so the toolbar follows the application palette (and
any later stale re-apply is caught the same way).

Tests: toolBarDropsStaleStylePaletteAfterThemeSwitch simulates Breeze
(property + dark palette on a light app) and expects the reset — red on
main; toolBarKeepsHeaderTintInSameTheme checks a same-theme tint is left
alone. tst_mainwindow 21/21.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JuQsrHonihp1nARE7bzstc

* fix: paint the toolbar background ourselves once the stale palette is dropped

Breeze also fills the main window's tools-area rectangle from the same
stale header palette, and QToolBar is transparent by default, so clearing
the palette alone changed nothing on screen (only in QWidget::grab()).
Verified with an... (continued)

10 of 10 new or added lines in 1 file covered. (100.0%)

28 existing lines in 2 files now uncovered.

4658 of 7227 relevant lines covered (64.45%)

58.15 hits per line

Coverage Regressions

Lines Coverage ∆ File
19
33.68
-0.36% src/moc_mainwindow.cpp
9
0.0
0.0% src/qrc_qmake_qmake_qm_files.cpp
Jobs
ID Job ID Ran Files Coverage
1 34776298671.1 13 Sep 2026 07:05PM UTC 88
64.45
GitHub Action Run
Source Files on build 34776298671
  • Tree
  • List 88
  • Changed 5
  • Source Changed 5
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34776298671
  • 8b8da072 on github
  • Prev Build on main (#34769437996)
  • Next Build on main (#34780432590)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc