You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(windows): add 'Follow system theme' option for dark mode
On macOS, BambuStudio already auto-follows the system dark/light theme
via EVT_SYS_COLOUR_CHANGED. On Windows this handler was guarded with
#ifndef __WINDOWS__, so theme changes were silently ignored.
Changes:
- GUI_Utils.hpp: EVT_SYS_COLOUR_CHANGED now fires on Windows when
'dark_mode_follow_system' is enabled; calls update_dark_config() and
on_sys_color_changed() to refresh the UI
- GUI_App.cpp dark_mode(): if follow-system is enabled, query
check_dark_mode() (system appearance) instead of the stored config;
on startup, sync dark_color_mode config from system if follow-system
is enabled
- MainFrame.cpp on_sys_color_changed(): call force_colors_update() and
update_ui_from_settings() on all platforms (previously skipped on
Windows), so a system-triggered theme change gets a full UI refresh
- Preferences.hpp/.cpp: add 'Follow system theme' checkbox below the
manual 'Enable dark mode' toggle; when checked the manual toggle is
disabled and the current system state is applied immediately
Resolves feature request #10800.
0 commit comments