Vadim Zeitlin
d13fad4371
Prefer calling wxMSW dark mode support "unofficial"
...
It's not "experimental" any longer, but we still want to make it clear
that this isn't supported as well as standard mode.
Closes #26752 .
2026-08-04 18:40:42 +02:00
Vadim Zeitlin
8b6f8097cf
Use base class IsCurrent() in wxUniv wxVListBox
...
Just make the base class function accessible in this class scope, this
is better than redefining it and doesn't result in a -Wsuggest-override.
2026-07-31 12:45:42 +02:00
Vadim Zeitlin
af93e02b18
Add missing "override" to wxGLApp::GetXVisualInfo()
...
This avoids gcc -Wsuggest-override for it.
Always define GetXVisualInfo() in wxGTK wxApp, even for GTK 3, to ensure
that this virtual function can be overridden in wxGLApp: this is simpler
than overriding it only conditionally there.
2026-07-31 12:45:02 +02:00
Vadim Zeitlin
8327d92835
Add missing "override" to wxX11 and common headers used by wxUniv
...
Avoid -Wsuggest-override from gcc.
2026-07-31 12:45:02 +02:00
Vadim Zeitlin
c14b35cafd
Make wxWindow::KillFocus() private and non-virtual in wxX11
...
This is not an overridden base class member function, contrary to what
the comment stated.
2026-07-31 12:45:02 +02:00
Steve Cornett and Vadim Zeitlin
d5aacc4712
Make wxTextCtrl dark mode border consistent with light mode
...
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK ASAN not compatible (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxQt (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxX11 (push) Canceled after 0s
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Canceled after 0s
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxDFB (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK UBSAN (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Canceled after 0s
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Canceled after 0s
CMake builds / macOS latest wxGTK 3 Unix Makefiles (push) Canceled after 0s
CMake builds / MSW/MSVC wxMSW (push) Canceled after 0s
CMake builds / MSW/Clang wxMSW (push) Canceled after 0s
CMake builds / macOS latest wxOSX Ninja (push) Canceled after 0s
CMake builds / macOS 14 wxOSX Xcode (push) Canceled after 0s
CMake builds / macOS 14 wxIOS (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 5.15 (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 6.10 (push) Canceled after 0s
Mac builds / wxMac ARM ASAN not compatible (push) Canceled after 0s
Mac builds / wxMac Universal C++14 (push) Canceled after 0s
Mac builds / wxiOS Simulator on Silicon Mac (push) Canceled after 0s
Mac builds / wxiOS (push) Canceled after 0s
Mac builds / wxMac Intel C++17 (push) Canceled after 0s
Mac Xcode builds / iOS Simulator static (push) Canceled after 0s
Mac Xcode builds / macOS dynamic Release (push) Canceled after 0s
Mac Xcode builds / iOS static Debug (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Release x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Debug Win32 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Release arm64 (push) Canceled after 0s
MSW builds / wxMSW vs2026 DLL Release x64 (push) Canceled after 0s
MSW cross-builds / wxMSW 64 bits not compatible (push) Canceled after 0s
MSW cross-builds / wxMSW/Univ (push) Canceled after 0s
MSW cross-builds / wxMSW 32 bits (push) Canceled after 0s
Code Checks / Check Spelling (push) Canceled after 0s
Code Checks / Check Whitespace (push) Canceled after 0s
Code Checks / Check Mixed EOL (push) Canceled after 0s
Code Checks / Check C++ Style (push) Canceled after 0s
Code Checks / Check All Headers In allheaders.h (push) Canceled after 0s
Update Documentation / Update Online Documentation (push) Canceled after 0s
For wxTextCtrl, draw a themed border consistent with how the control
looks in light mode, and consistent with the WinUI 3 TextBox control in
dark mode. A blue line appears at the bottom when the control has the
focus.
Closes #26745 .
2026-07-30 23:57:16 +02:00
Daniel and Vadim Zeitlin
0f8a8d28f4
Fix wxTreeCtrl scrollbar corner colour in wxMSW dark mode
...
Extract existing code solving the same problem from wxListCtrl code into
a reusable wxMSWImpl::PaintScrollBarCorner() function and use it in
wxTreeCtrl too.
Fixes #26737 .
Closes #26743 .
2026-07-30 19:29:02 +02:00
Vadim Zeitlin
5e8c5e65d3
Merge branch 'ribbon-colours'
...
Fix white pressed-button text becoming illegible in dark ribbon themes.
See #26741 .
2026-07-30 19:26:19 +02:00
anhnong90 and Vadim Zeitlin
03f61d05c6
Modernize loops across source files using clang-tidy
...
Replace index‑based iteration with C++11 range‑based for loops where
appropriate.
Closes #26640 .
2026-07-30 19:24:25 +02:00
Vadim Zeitlin
09d9aeacaa
Remove implicit conversion of wxColour to GdkRGBA* in wxGTK
...
This was dangerous because it allowed the code accidentally
dereferencing wxColour to silently compile -- and do a completely wrong
thing.
Just add a function returning GdkRGBA explicitly and use it.
See #26751 .
2026-07-30 18:59:47 +02:00
Paul Cornett
74ea434841
Add a function to perform internal processing of wxSysColourChangedEvent
...
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK ASAN not compatible (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxQt (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxX11 (push) Canceled after 0s
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Canceled after 0s
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxDFB (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK UBSAN (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Canceled after 0s
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Canceled after 0s
CMake builds / macOS latest wxGTK 3 Unix Makefiles (push) Canceled after 0s
CMake builds / MSW/MSVC wxMSW (push) Canceled after 0s
CMake builds / MSW/Clang wxMSW (push) Canceled after 0s
CMake builds / macOS latest wxOSX Ninja (push) Canceled after 0s
CMake builds / macOS 14 wxOSX Xcode (push) Canceled after 0s
CMake builds / macOS 14 wxIOS (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 5.15 (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 6.10 (push) Canceled after 0s
Mac builds / wxMac ARM ASAN not compatible (push) Canceled after 0s
Mac builds / wxMac Universal C++14 (push) Canceled after 0s
Mac builds / wxiOS Simulator on Silicon Mac (push) Canceled after 0s
Mac builds / wxiOS (push) Canceled after 0s
Mac builds / wxMac Intel C++17 (push) Canceled after 0s
Mac Xcode builds / iOS Simulator static (push) Canceled after 0s
Mac Xcode builds / macOS dynamic Release (push) Canceled after 0s
Mac Xcode builds / iOS static Debug (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Release x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Debug Win32 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Release arm64 (push) Canceled after 0s
MSW builds / wxMSW vs2026 DLL Release x64 (push) Canceled after 0s
MSW cross-builds / wxMSW 64 bits not compatible (push) Canceled after 0s
MSW cross-builds / wxMSW/Univ (push) Canceled after 0s
MSW cross-builds / wxMSW 32 bits (push) Canceled after 0s
Code Checks / Check Spelling (push) Canceled after 0s
Code Checks / Check Whitespace (push) Canceled after 0s
Code Checks / Check Mixed EOL (push) Canceled after 0s
Code Checks / Check C++ Style (push) Canceled after 0s
Code Checks / Check All Headers In allheaders.h (push) Canceled after 0s
This avoids the chronic problem of wxSysColourChangedEvent handlers
inadvertently failing to call Skip() and thus blocking important internal
processing, including propagating to child windows.
2026-07-29 10:56:59 -07:00
Vadim Zeitlin
75a9282598
Fix typo in wxGetContrastingFgColour()
...
The code dereferencing wxColour wrongly compiled when using wxGTK due to
the existence of operator*() there.
2026-07-29 19:47:29 +02:00
Vadim Zeitlin
c4fe911d19
Link to the current WCAG21 instead of the old 2008 version
...
Also update the coefficient in wxGetSRGB() to use the correct value,
quoting the linked document:
Note 2
Before May 2021 the value of 0.04045 in the definition was
different (0.03928). It was taken from an older version of the
specification and has been updated. It has no practical effect
on the calculations in the context of these guidelines.
2026-07-29 19:36:29 +02:00
Vadim Zeitlin
08ae56c96d
Extract colour-related functions to a reusable header
...
Don't duplicate the same code using different names in wxAUI and
wxRibbon, put it in a header which can be included from both.
No real changes, this is a pure refactoring.
2026-07-29 19:33:42 +02:00
Blake-Madden
d20d50bfbe
Use proper contrast calculation to pick pressed-button label colour
...
Uses calculations from AUI.
2026-07-29 08:14:25 -04:00
Blake-Madden
f2685a36e1
Fix white pressed-button text becoming illegible in dark ribbon themes
...
Also, refactors duplicate ternary code.
2026-07-26 09:58:36 -04:00
Vadim Zeitlin
c831744802
Make wxApp::MSWEnableDarkMode() first parameter an enum
...
It was int because the initial plan was to add other flags that could be
combined with the existing ones, but now that there are 3 possible
values combining the elements of this enum doesn't really make sense any
more.
2026-07-24 23:38:15 +02:00
Steve Cornett and Vadim Zeitlin
d7d94f918d
Support explicit switching both to and from dark mode in wxMSW
...
With these changes, wxApp::SetAppearance() and
wxApp::MSWEnableDarkMode() can change the dark/light mode at any time.
They can be called before or after windows are created, and can be
called more than once.
The widgets sample has new menu commands to demonstrate this.
Closes #26734 .
2026-07-24 23:31:50 +02:00
Steve Cornett and Vadim Zeitlin
58dfc19c96
Fix wxGrid handling of system color change
...
Fix wxGrid for system color change for colors that were assigned
defaults in Init(), and therefore did not update. These colors are
now determined as needed during drawing.
The grid sample "Colours" menu gets additional commands so you can set
all these colors.
Closes #26729 .
2026-07-23 23:47:12 +02:00
Steve Cornett and Vadim Zeitlin
fbbeb21d8f
Update wxGenericFontButton when system colours change
...
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK ASAN not compatible (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxQt (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxX11 (push) Canceled after 0s
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Canceled after 0s
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxDFB (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK UBSAN (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Canceled after 0s
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Canceled after 0s
CMake builds / macOS latest wxGTK 3 Unix Makefiles (push) Canceled after 0s
CMake builds / MSW/MSVC wxMSW (push) Canceled after 0s
CMake builds / MSW/Clang wxMSW (push) Canceled after 0s
CMake builds / macOS latest wxOSX Ninja (push) Canceled after 0s
CMake builds / macOS 14 wxOSX Xcode (push) Canceled after 0s
CMake builds / macOS 14 wxIOS (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 5.15 (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 6.10 (push) Canceled after 0s
Mac builds / wxMac ARM ASAN not compatible (push) Canceled after 0s
Mac builds / wxMac Universal C++14 (push) Canceled after 0s
Mac builds / wxiOS Simulator on Silicon Mac (push) Canceled after 0s
Mac builds / wxiOS (push) Canceled after 0s
Mac builds / wxMac Intel C++17 (push) Canceled after 0s
Mac Xcode builds / iOS Simulator static (push) Canceled after 0s
Mac Xcode builds / macOS dynamic Release (push) Canceled after 0s
Mac Xcode builds / iOS static Debug (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Release x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Debug Win32 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Release arm64 (push) Canceled after 0s
MSW builds / wxMSW vs2026 DLL Release x64 (push) Canceled after 0s
MSW cross-builds / wxMSW 64 bits not compatible (push) Canceled after 0s
MSW cross-builds / wxMSW/Univ (push) Canceled after 0s
MSW cross-builds / wxMSW 32 bits (push) Canceled after 0s
Code Checks / Check Spelling (push) Canceled after 0s
Code Checks / Check Whitespace (push) Canceled after 0s
Code Checks / Check Mixed EOL (push) Canceled after 0s
Code Checks / Check C++ Style (push) Canceled after 0s
Code Checks / Check All Headers In allheaders.h (push) Canceled after 0s
Update the button text colour of this button, used by wxFontPickerCtrl
under Windows, upon system colour change event (which also covers
switching between light and dark appearances), unless the user selected
a colour.
Closes #26667 .
2026-07-22 00:14:39 +02:00
Vadim Zeitlin
022ec0773b
Merge branch 'darkmode-richtext' of github.com:stevecor/wxWidgets
...
Fix dark mode switching for wxRichTextCtrl and wxRichTextStyleListCtrl.
See #26666 .
2026-07-21 15:43:21 +02:00
Blake-Madden and Vadim Zeitlin
4e1b2f8150
Fix dark mode and DPI issues with ribbon's control buttons
...
Replaces XPM images with actual drawing commands that scale well, look
less cluttered, don't look pixelated, and match the ribbons theme.
Closes #26663 .
2026-07-21 15:41:04 +02:00
Vadim Zeitlin
2650437c76
Merge branch 'wxGrid--system-color-change' of github.com:stevecor/wxWidgets
...
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK ASAN not compatible (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxQt (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxX11 (push) Canceled after 0s
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Canceled after 0s
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxDFB (push) Canceled after 0s
Unix builds / Ubuntu 24.04 wxGTK UBSAN (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Canceled after 0s
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Canceled after 0s
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Canceled after 0s
CMake builds / macOS latest wxGTK 3 Unix Makefiles (push) Canceled after 0s
CMake builds / MSW/MSVC wxMSW (push) Canceled after 0s
CMake builds / MSW/Clang wxMSW (push) Canceled after 0s
CMake builds / macOS latest wxOSX Ninja (push) Canceled after 0s
CMake builds / macOS 14 wxOSX Xcode (push) Canceled after 0s
CMake builds / macOS 14 wxIOS (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 5.15 (push) Canceled after 0s
CMake builds / MSW/MSVC wxQt 6.10 (push) Canceled after 0s
Mac builds / wxMac ARM ASAN not compatible (push) Canceled after 0s
Mac builds / wxMac Universal C++14 (push) Canceled after 0s
Mac builds / wxiOS Simulator on Silicon Mac (push) Canceled after 0s
Mac builds / wxiOS (push) Canceled after 0s
Mac builds / wxMac Intel C++17 (push) Canceled after 0s
Mac Xcode builds / iOS Simulator static (push) Canceled after 0s
Mac Xcode builds / macOS dynamic Release (push) Canceled after 0s
Mac Xcode builds / iOS static Debug (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 DLL Release x64 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Debug Win32 (push) Canceled after 0s
MSW builds / wxMSW vs2022 Release arm64 (push) Canceled after 0s
MSW builds / wxMSW vs2026 DLL Release x64 (push) Canceled after 0s
MSW cross-builds / wxMSW 64 bits not compatible (push) Canceled after 0s
MSW cross-builds / wxMSW/Univ (push) Canceled after 0s
MSW cross-builds / wxMSW 32 bits (push) Canceled after 0s
Code Checks / Check Spelling (push) Canceled after 0s
Code Checks / Check Whitespace (push) Canceled after 0s
Code Checks / Check Mixed EOL (push) Canceled after 0s
Code Checks / Check C++ Style (push) Canceled after 0s
Code Checks / Check All Headers In allheaders.h (push) Canceled after 0s
Update Documentation / Update Online Documentation (push) Canceled after 0s
Fix wxGrid for system colour change.
See #26705 .
2026-07-21 01:13:11 +02:00
Steve Cornett and Vadim Zeitlin
01b131c9d1
Update generic wxSearchCtrl on system colour change
...
Update the background colour of the generic wxSearchCtrl upon
wxSysColourChangedEvent to notably fix its appearance after switching
between light and dark modes in wxMSW.
Closes #26704 .
2026-07-21 01:09:36 +02:00
Steve Cornett and Vadim Zeitlin
5ea5e65a59
Improve code finding native spin control in wxNotebook
...
Simply use Win32 FindWindowEx() instead of enumerating child windows
with a loop.
Also extract this code into a reusable function.
No real changes yet.
See #26685 .
2026-07-21 00:13:20 +02:00
Vadim Zeitlin
651e2d7d03
Assert inside wxAuiPaneInfo::IsValid() itself
...
Instead of always calling this function inside an assert-like macro,
just assert in the function itself if the pane settings are
inconsistent.
This allows to give a more precise message, e.g. we can now explain what
is wrong with the center pane settings if any of the dock-related values
are non-zero.
See #26679 .
2026-07-20 23:54:34 +02:00
Bill Su and Vadim Zeitlin
cb774bb305
Ensure that wxAuiNotebook center pane uses expected dock values
...
Avoid the wxAuiNotebook center pane having non-zero dock_layer,
dock_row, or dock_pos values as it doesn't make sense for it.
Closes #26679 .
2026-07-20 23:48:51 +02:00
Richard and Vadim Zeitlin
fbc474f4ed
Track active wxGrid editor while editing
...
Remember the editor instance used for the shown edit control and use it
for visibility checks, painting, hiding, and saving. This keeps the edit
control lifetime independent of later attribute changes, so replacing a
cell or column editor while editing does not make wxGrid hide or save
through the wrong editor.
Add a regression covering replacement of a column bool editor while its
cell is being edited.
Fixes #21986 .
Closes #26670 .
2026-07-20 20:12:44 +02:00
Steve Cornett
763b682e8c
Fix wxGrid for system colour change
...
Update the text and background colours in wxGrid upon wxSysColourChangedEvent. Moved the colour setting code from Create() into a new function UpdateColours(), and call that from Create() and upon colour change event. To avoid overwriting custom colours, added flag members to track whether custom colours have been set.
Deleted the code that was disabled by #if _USE_VISATTR. That code has been inactive since 2004.
2026-07-18 08:24:08 -07:00
Vadim Zeitlin
5ccdcd6b2a
Update version to 3.3.4
...
Run misc/scripts/inc_release, update version.bkl and rebake.
2026-07-09 15:08:08 +02:00
Steve Cornett
cae06de182
Fix dark mode switching for wxRichTextStyleListCtrl
...
Update background colour upon system colour change event.
2026-07-08 10:28:49 -07:00
Stefan Csomor and Vadim Zeitlin
565553ee98
Make default background color transparent in wxOSX
...
This is needed for translucency effects, desktop background images
changing the toplevel window background tint.
Also don't erase background when no background color is specified.
Closes #26301 .
2026-07-07 20:39:53 +02:00
Lunar-YZ and Vadim Zeitlin
aae2d7062c
Fix wxPG macros when wxNO_IMPLICIT_WXSTRING_ENCODING is defined
...
Use wide-char literal string instead of an ASCII one to fix compilation.
Closes #26651 .
2026-07-01 16:31:24 +02:00
Blake-Madden and Vadim Zeitlin
8b080b8cb0
Add system color change responsiveness to ribbon
...
Add new wxRibbonArtProvider::UpdateColoursFromSystem() and implement it
in wxRibbonMSWArtProvider.
Closes #26644 .
2026-07-01 03:19:51 +02:00
Blake-Madden and Vadim Zeitlin
6c3b09b8d3
Add wxWebViewConfiguration::DisableGPUAcceleration()
...
This function may be called before creating any wxWebView objects in
case of problems due to the use of hardware acceleration.
Closes #26626 .
2026-07-01 03:17:22 +02:00
Blake-Madden and Vadim Zeitlin
9956c25c07
Add parent distribution info to wxGetOsDescription()
...
Add fields for the information about the distribution this one is based
on to wxLinuxDistributionInfo and add them wxGetOsDescription() if
available/applicable.
Closes #26641 .
2026-07-01 02:47:00 +02:00
Arthur Chan and Vadim Zeitlin
ae897594fd
Avoid OOM in wxTarInputStream for very large extended header
...
Don't try allocating arbitrarily large amounts of memory for the
extended header in wxTarInputStream and impose a very big but still
reasonable enough to not result in out of memory condition size for it
by default.
Allow changing this size via the newly added SetMaxExtendedHeaderSize()
function for the applications that want to handle files with even bigger
header or, on the contrary, want to avoid allocating even that much.
This should fix running out of memory in OSS-Fuzz runs using the fuzzer
for this class.
Closes #26588 .
Closes #26607 .
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com >
2026-07-01 01:29:20 +02:00
Vadim Zeitlin
5426a72f95
Merge branch 'osx-window-invalidate-inset-cache' of github.com:ryancog/wxWidgets
...
Add wxWindow::MacInvalidateInsetCache() to wxOSX/Cocoa.
See #26625 .
Closes #26622 .
2026-06-30 22:32:30 +02:00
Steve Cornett and Vadim Zeitlin
25d7cfefea
Support switching to wxMSW dark mode in wxAuiToolBar
...
On Windows, enable dark mode switching for wxAuiToolBar by updating
m_themed upon system colour change.
Closes #26648 .
2026-06-30 22:29:27 +02:00
Vadim Zeitlin
7b2bc588e3
Really fix wxStyledTextCtrl::GetMarginCount() documentation
...
This was done manually in 9864777203 (Upgrade to Doxygen 1.15.0,
2026-05-05) but the changes were lost after regeneration, so add an
override for this function documentation to the generating script itself
to ensure that they're preserved.
This also has the nice side effect of generating a better comment in the
header.
See #26431 .
2026-06-27 19:54:44 +02:00
Steve Cornett and Vadim Zeitlin
fc2755524f
Add system colour change handler to wxSashWindow
...
Closes #26638 .
2026-06-27 19:47:51 +02:00
Steve Cornett and Vadim Zeitlin
f26f253694
Handle system colour change in wxInfoBarGeneric
...
Move colour settings from Create() into a new function UpdateColours(),
which gets called from Create() and also upon system colour change.
Closes #26633 .
2026-06-27 19:28:04 +02:00
Vadim Zeitlin
b7f4cb4f74
Initialize wxRibbonBar members in their declarations
...
This ensures that they are always initialized, even when the default
ctor is used, which wasn't the case before for m_help_button_hovered
which was never set in this case, resulting in UBSAN errors when running
the ribbon sample.
2026-06-27 19:07:09 +02:00
ryancog
c867ac9117
wxOSX/Cocoa add wxWindowMac::MacInvalidateInsetCache()
2026-06-23 15:34:04 -04:00
Vadim Zeitlin
17e1af0a6b
Merge branch 'msw-dpi-change-fixes'
...
Fixes for behaviour after DPI change in wxMSW.
Closes #26498 .
See #26604 .
2026-06-22 14:29:16 +02:00
Blake-Madden and Vadim Zeitlin
e871f1a841
Add wxWebView::PrintToPDF()
...
Add a possibility to save the page as PDF, possibly with some
non-default print settings.
Closes #26583 .
2026-06-21 18:51:38 +02:00
Vadim Zeitlin
52360028b9
Merge branch 'svggc-pen-brush' of github.com:MaartenBent/wxWidgets
...
Support pen and brush styles in wxSVGGraphicsContext.
See #26586 .
2026-06-21 16:30:59 +02:00
Jorge Moraleda and Vadim Zeitlin
e069b7f4b9
Add wxGrid::GetFrozenRowLabelWindow() and GetFrozenColLabelWindow()
...
These accessors for the frozen row and column label sub-windows were
missing from the public API even though the equivalent data cell windows
(GetFrozenRowGridWindow/GetFrozenColGridWindow) are already public.
Without them it is impossible to bind events (e.g. EVT_MOTION) to the
frozen label strips from outside the wxGrid implementation.
Closes #26617 .
2026-06-21 16:02:48 +02:00
paulcor and GitHub
0ec0518993
Avoid using very large wxDC origin offsets with wxGenericListCtrl
...
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Has been cancelled
Unix builds / Ubuntu 24.04 wxGTK ASAN not compatible (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxQt (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxX11 (push) Has been cancelled
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Has been cancelled
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxDFB (push) Has been cancelled
Unix builds / Ubuntu 24.04 wxGTK UBSAN (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Has been cancelled
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Has been cancelled
CMake builds / macOS latest wxGTK 3 Unix Makefiles (push) Has been cancelled
CMake builds / MSW/MSVC wxMSW (push) Has been cancelled
CMake builds / MSW/Clang wxMSW (push) Has been cancelled
CMake builds / macOS latest wxOSX Ninja (push) Has been cancelled
CMake builds / macOS 14 wxOSX Xcode (push) Has been cancelled
CMake builds / macOS 14 wxIOS (push) Has been cancelled
CMake builds / MSW/MSVC wxQt 5.15 (push) Has been cancelled
CMake builds / MSW/MSVC wxQt 6.10 (push) Has been cancelled
Mac builds / wxMac ARM ASAN not compatible (push) Has been cancelled
Mac builds / wxMac Universal C++14 (push) Has been cancelled
Mac builds / wxiOS Simulator on Silicon Mac (push) Has been cancelled
Mac builds / wxiOS (push) Has been cancelled
Mac builds / wxMac Intel C++17 (push) Has been cancelled
Mac Xcode builds / iOS Simulator static (push) Has been cancelled
Mac Xcode builds / macOS dynamic Release (push) Has been cancelled
Mac Xcode builds / iOS static Debug (push) Has been cancelled
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Has been cancelled
MSW builds / wxMSW vs2022 DLL Release x64 (push) Has been cancelled
MSW builds / wxMSW vs2022 Debug Win32 (push) Has been cancelled
MSW builds / wxMSW vs2022 Release arm64 (push) Has been cancelled
MSW builds / wxMSW vs2026 DLL Release x64 (push) Has been cancelled
MSW cross-builds / wxMSW 64 bits not compatible (push) Has been cancelled
MSW cross-builds / wxMSW/Univ (push) Has been cancelled
MSW cross-builds / wxMSW 32 bits (push) Has been cancelled
Code Checks / Check Spelling (push) Has been cancelled
Code Checks / Check Whitespace (push) Has been cancelled
Code Checks / Check Mixed EOL (push) Has been cancelled
Code Checks / Check C++ Style (push) Has been cancelled
Code Checks / Check All Headers In allheaders.h (push) Has been cancelled
Using the wxDC origin to implement scrolled drawing can require very large
origin offsets, which can exceed Cairo coordinate limits (2^23), and therefore
currently wxGTK3 limits as well. Managing the scroll offsets turns out to be
pretty simple in this case, avoiding any coordinate limitations.
See #25365
2026-06-20 10:48:01 -07:00
Vadim Zeitlin
0245dea951
Update wxGridSizer gap sizes on DPI change
...
Rescale gaps between rows/columns when the DPI changes.
See #26498 .
2026-06-20 15:51:21 +02:00