Bug 498441

Summary: current page number box is always blank when opening any document
Product: [Applications] okular Reporter: amgad elsaiegh <amgadelsaiegh>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.12.0   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: bug is obvious at this picture

Description amgad elsaiegh 2025-01-09 18:39:17 UTC
Created attachment 177235 [details]
bug is obvious at this picture

SUMMARY
when opening any .pdf file the box that shows current page on the top always shows as a blank white box, to make it work correctly i should click it with the mouse, attached photo demonstrates the problem 

STEPS TO REPRODUCE
1. simply open any pdf, you will see the problem


OBSERVED RESULT
blank white "current page box"

EXPECTED RESULT
current page shown in the box

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora Linux 41(Wayland)
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
* in my opinion, this is related to the dark theme 🤨
Comment 1 Bug Janitor Service 2025-01-09 21:41:48 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1110
Comment 2 Sune Vuorela 2025-01-13 09:01:22 UTC
Git commit 86bf17fa1a04431f13692fd9fd4f8c55a754fda5 by Sune Vuorela, on behalf of Albert Astals Cid.
Committed on 13/01/2025 at 08:52.
Pushed by sune into branch 'master'.

Watch the QEvent::ApplicationPaletteChange in the proper object

M  +4    -3    part/minibar.cpp
M  +1    -1    part/minibar.h

https://invent.kde.org/graphics/okular/-/commit/86bf17fa1a04431f13692fd9fd4f8c55a754fda5
Comment 3 Albert Astals Cid 2025-01-13 22:55:55 UTC
Git commit 6eaf5fccd2c4ee2939c04e678684602ceaae5b08 by Albert Astals Cid.
Committed on 13/01/2025 at 22:55.
Pushed by aacid into branch 'release/24.12'.

Watch the QEvent::ApplicationPaletteChange in the proper object
(cherry picked from commit 86bf17fa1a04431f13692fd9fd4f8c55a754fda5)

M  +4    -3    part/minibar.cpp
M  +1    -1    part/minibar.h

https://invent.kde.org/graphics/okular/-/commit/6eaf5fccd2c4ee2939c04e678684602ceaae5b08