Dark Mode for Device tab(s)
Is there an existing issue for this feature request?
- [x] I have searched the existing issues
Is your feature request related to a problem?
No
Which printers will be beneficial to this feature?
Klipper
Describe the solution you'd like
Dark mode on Device Tabs in SnOrca
Describe alternatives you've considered
No response
Additional context
This is also the case for the home tab.
I would almost consider this a bug rather than an enhancement, given that it's a variance from expected behavior. The Dark Mode setting should apply to all areas of the program, otherwise it sorta defeats the purpose of the setting. I'd love to keep the Device tab open on a separate screen to monitor a print, but the vast swath of white background is kinda blinding.
Thanks — and thanks to zimboptoo for the framing: this is closer to a defect than a new feature. What's happening: the Device tab and the Home tab are both Flutter Web (MainFrame.cpp:1306/1405 load resources/web/flutter_web/), and that Flutter build ships only a light theme — darkTheme, ThemeMode.system and ThemeMode.dark have zero matches. The wxWidgets side does handle it a little (WebView.cpp:582 sets the web view's background via darkModeColorFor), but the page content stays white, which is why it's still blinding.
The fix belongs in the Flutter app (add a dark theme, follow the app's setting), not a colour tweak on the native side. Tracked as a defect; no timeline. See also Feature Requests on the forum (template, votes and comments): https://forum.snapmaker.com/c/feature-request/102
Additional data point on V2.4.2 (Linux AppImage, Ubuntu 24.04 build, running on Debian 13 / KDE Plasma with a dark colour scheme; dark mode enabled in the slicer):
Unlike the build discussed above, the Flutter bundle shipped in 2.4.2 (resources/web/flutter_web, version.json 1.10.5, build 20261125160553) does contain a dark theme, but it is never used:
- The root app widget is built with a hard-coded
themeMode: ThemeMode.light. In the minifiedmain.dart.jsit receives the light theme, the dark theme andThemeMode.light(B.bwkin this build), and that is the only place aThemeModevalue is passed. - The slicer already asks for dark. The log shows both pages opened with
dark_model=1:
But the string[FLUTTER_FLOW] [webview] [navigation_requested] view=home url=http://127.0.0.1:<port>/web/flutter_web/home?locale=en-US&dark_model=1 [FLUTTER_FLOW] [webview] [navigation_requested] view=device url=http://127.0.0.1:<port>/web/flutter_web/device_control?locale=en-US&dark_model=1dark_modelappears nowhere inmain.dart.js, so the parameter is ignored.
Quick experiment: changing only that argument from ThemeMode.light to ThemeMode.system in the built main.dart.js makes the Home tab render fully dark, and most of the Device tab too (background, sidebar, filament panel). The Camera, Control and Printing Task cards of the Device tab stay white, so they seem to use hard-coded light colours rather than theme colours.
Suggested fix: set the theme mode from the dark_model query parameter (with ThemeMode.system as the fallback), and move the Device tab cards onto theme colours.