[Git][wxwidgets/wxwidgets][master] 18 commits: Allow creating appropriate wxUxThemeHandle in dark mode from HWND

2 views
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
Feb 23, 2026, 5:54:05 AMFeb 23
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • 79964690
    by Vadim Zeitlin at 2026-02-14T16:39:10+01:00
    Allow creating appropriate wxUxThemeHandle in dark mode from HWND
    
    We could either create wxUxThemeHandle from HWND (and not wxWindow) or
    use correct classes for dark mode, but not both at once.
    
    Refactor NewXXX() factory functions to allow specifying both now.
    
    No real changes, but this will be used in the upcoming commit.
    
  • e8e92529
    by Mohmed abdel-fattah at 2026-02-14T16:39:10+01:00
    Fix appearance of owner drawn menus in dark mode
    
    Also fix appearance of the menus with breaks by making them owner drawn.
    
    Co-Authored-By: Vadim Zeitlin <va...@wxwidgets.org>
    
  • 331adf3d
    by Mohmed abdel-fattah at 2026-02-14T16:39:10+01:00
    Fix rounded menu corners appearance under Windows 11
    
    Add a function to force using rounded window corners and use it from
    WM_ENTERIDLE handler to do it for the currently shown menu.
    
    Refactor wxMSW dark mode code to allow reusing DwmSetWindowAttribute()
    even when dark mode is not enabled.
    
    Also add IsHighContrast() helper which may be also useful elsewhere
    later, as rounded corners are not used in high contrast mode.
    
    Closes #22518.
    
    Co-Authored-By: Vadim Zeitlin <va...@wxwidgets.org>
    
  • 5e2caa4d
    by Stefan Csomor at 2026-02-21T23:32:54+01:00
    Remove GC-aware code and fix clip view leak
    
    Remove "GC-aware" code as GC is not supported by the OS any longer.
    
    Fix leak of wxWindow::m_osxClipView by releasing it after adding it as
    subview.
    
  • b581980b
    by Stefan Csomor at 2026-02-21T23:34:19+01:00
    Fix miscellaneous memory leaks related to synthesized properties
    
    When using @property(retain), we need to reset the pointer to prevent it
    from being leaked when the containing object is destroyed.
    
  • 985a64f1
    by Stefan Csomor at 2026-02-21T23:41:52+01:00
    Fix memory leaks reported by Xcode Memory Analysis
    
    Mostly just add autorelease to avoid various objects being leaked, but
    also add manual calls to release for the code which is not necessarily
    executed inside a GUI application and so can't rely on autorelease pool
    existence.
    
  • d23d4832
    by Stefan Csomor at 2026-02-21T23:43:17+01:00
    Fix leak of buttons in wxFontDialog
    
    Release buttons after adding them to superview.
    
  • e69aa968
    by Stefan Csomor at 2026-02-21T23:43:32+01:00
    Fix memory leak of NSPasteboardItem in wxOSXPasteboard code
    
    Add missing release.
    
  • a2bcc147
    by Stefan Csomor at 2026-02-21T23:45:27+01:00
    Fix tracking area memory leak
    
  • fab7c65e
    by Vadim Zeitlin at 2026-02-22T13:49:11+01:00
    Merge branch 'osx-memory-leaks'
    
    Fix several memory leaks in wxOSX.
    
    See #26215.
    
    Closes #26208.
    
  • 4f9b9ff2
    by Vadim Zeitlin at 2026-02-22T13:52:57+01:00
    Add a note about rectangle position to wxWindow::GetRect() docs
    
    Explicitly say that the position is relative to the parent for child
    windows but display origin for the TLWs.
    
  • 876728f6
    by Vadym Hrynchyshyn at 2026-02-22T14:01:18+01:00
    Restore wxDataViewCtrl columns view positions
    
    Previously only saving columns positions was implemented, but they were
    never restored.
    
    Closes #26222.
    
    Signed-off-by: Vadym Hrynchyshyn <vadi...@gmail.com>
    
  • 95f9b074
    by Vadim Zeitlin at 2026-02-22T15:56:03+01:00
    Update wxMenuBar background after system colours change
    
    This fixes the problem with the menu items becoming completely invisible
    when switching from dark to light mode.
    
    Co-authored-by: Mohmed abdel-fattah <memo...@gmail.com>
    Co-authored-by: Maarten Bent <Maart...@users.noreply.github.com>
    
  • 678382f5
    by Bill Su at 2026-02-22T21:46:10+01:00
    wxScrolled<>: fix testing mouse position in autoscroll zone
    
    wxWindow::GetRect() does not always report client coordinates,
    so use wxWindow::GetScreenRect() and wxWindow::ClientToScreen()
    to test mouse and autoscroll zone with consistent coordinate
    system.
    
    Closes #26226.
    
  • fed72e53
    by Vadim Zeitlin at 2026-02-23T11:24:42+01:00
    Merge branch 'msw-menu-appearance-fixes'
    
    Appearance fixes for wxMSW menus in dark mode.
    
    See #26182.
    
  • 94a54f68
    by Vadim Zeitlin at 2026-02-23T11:28:21+01:00
    Fix script used to change macOS install names with configure
    
    This is a "forward port" of 31c8641771 (Fix script used to change macOS
    install names with configure, 2026-02-18) from 3.2 branch.
    
    See #23143, #25173, #25182, #25675.
    
    Closes #26200.
    
  • 8decc76a
    by Vadim Zeitlin at 2026-02-23T11:31:13+01:00
    Don't refresh wxAuiToolBar unnecessarily in wxEVT_SIZE handler
    
    wxAuiToolBar gets wxEVT_SIZE events due to relayout done by wxAuiManager
    whenever any sash is being dragged, but this doesn't necessarily
    actually change its size, so avoid refreshing it in this case, as this
    results in very noticeable flicker, especially when the toolbar has any
    controls inside it.
    
    This commit is best viewed ignoring whitespace-only changes.
    
    Closes #26142.
    
    Closes #26212.
    
  • 69d0c4a3
    by Blake-Madden at 2026-02-23T11:33:40+01:00
    Edge WebView fixes
    
    Use ICoreWebView2_22::
    AddWebResourceRequestedFilterWithRequestSourceKinds() when available
    (closes #25816).
    
    Also fix memory file system issues.
    
    Closes #25816.
    
    Closes #26214.
    

34 changed files:

The diff was not included because it is too large.
Reply all
Reply to author
Forward
0 new messages