Repository navigation
v3.17.2
guidata Version 3.17.2
🛠 Bug fixes:
- Light theme remaining dark — with Qt 6.7 or later on Windows 11 in dark mode (or with a dark desktop theme on Linux), selecting the light color mode (
set_color_mode("light"), e.g. in the settings of PlotPy or DataLab) kept a dark interface, slightly different from the dark theme: Qt 6 now derives its default palette from the system color scheme, and this dark palette was restored for the light theme. With Qt 6.8 or later, the color mode is now applied by Qt itself, whatever the system color scheme: the light and dark themes use Qt's official styles and palettes (e.g. the native "windows11" style on Windows 11, or the Fusion style when the default style does not support the dark color scheme, like "windowsvista" on Windows 10). With earlier Qt versions or on platforms where Qt can't apply the color mode, guidata's dark theme is unchanged, and the light theme uses Qt's default light palette when the system palette is dark (fixes Issue #139). - Toolbar overflow button drawn for the previous theme — after switching between the light and dark themes, the button shown when a toolbar overflows (
»or···) kept its icon drawn for the previous theme, so that it was hardly visible. Its icon is now drawn again for the new theme. With the dark theme applied natively with the Fusion style, this icon (a fixed dark image with this style) is drawn with the text color of the theme, so that it remains visible (fixes Issue #139). - White separator lines in the dark theme — with guidata's dark theme (used with Qt 5, or when Qt can't apply the dark color mode itself), separator lines (e.g. between the methods of the DataLab Applications panel) and other sunken or raised frames were drawn in white, much too contrasted on the dark background: the palette kept the relief colors of the light system palette. These colors now follow the dark theme, as in the dark palette of Qt's Fusion style (fixes Issue #141).
- Light theme turning dark when the system switches to dark — with Qt 6.5 to 6.7 (e.g. on Windows 11 or on a Linux desktop), when the system color scheme switched to dark while the application was running with the light theme, the whole interface turned dark (palette, controls and title bars), as if the dark theme had been selected: the light theme restored the default palette, which follows the system color scheme. The light theme is now applied again when the system color scheme changes, and remains light: with Qt's default light palette and the Fusion style while the system color scheme is dark, and with the default style and palette while it is light (fixes Issue #147).
- White title bars in the dark theme on Windows — with the dark theme on Windows, most windows kept a white title bar: only the windows of guidata and PlotPy (and those of applications calling
win32_fix_title_bar_background) had a dark one. The other dialogs of applications, the message boxes and input dialogs created by static methods (e.g.QMessageBox.warning,QInputDialog.getText), the floating dock widgets, and the windows created again (e.g. aftersetWindowFlags) remained white. Once the color mode has been set (set_color_mode, called when the application is created withguidata.qapplicationorqt_app_context), the title bar of every window now follows the color theme when the window is created and when the color mode changes, including when switching from the light theme to the dark one with Qt 6.5-6.7 and a light system color scheme (Qt set the title bar of the existing windows light again). With Qt 6.8 or later, when the color mode is applied natively by Qt, the title bars are left to Qt, which gives them the color theme. Windows without a title bar (menus, tooltips, splash screens) are left untouched, andwin32_fix_title_bar_background(still available for applications creating their ownQApplication) no longer creates the native window of the widget early. The title bar is set with the documented Windows function used by Qt 6 (fixes Issue #143).