@TIG Yeah, I know. The console messages and comments are just leftovers from my initial prototyping. I’m switching them all over to English in the next update.
As for why Trimble hasn’t done it: mostly legacy tech debt (thousands of old raster icons designed strictly for white backgrounds, plus fear of breaking 3rd-party plugins). But yeah, it’s pretty wild seeing them chase AI hype while ignoring a 10-year-old basic request like Dark Mode
all the official icons are vector and they have been made into light and dark years ago when ipad and web were developed.
3rd party, sure, but that would also be the responsibility of the plugin devs to make sure their icons are readable. and we’re talking about a choice between light and dark mode, so any incompatible plugin would still be usable in light mode.
there is a point on legacy tech debt, until the mac version is QT like the PC one, they won’t change anything. no point adding dark more only to restart from scratch.
That’s why it was easier on the ipad version, they did it from scatch, straight in the new UI, no cocoa, no older icons, no older UI.
but there is a thing that some fail to understand.
the global move within trimble / sketchup has been to unify the various UI. that’s why sketchup now looks as bad as trimble connect or tekla (I assume). it looks “corporate blue”.
Maybe they haven’t made a switch to light / dark mode in sketchup because they just don’t want to have light / dark mode in their applications. Just like they decided it was ok to have low contrast, light blue on grey blue on grey. it’s a "creative " choice, just not one we agree with.
Us asking for dark mode would then be like asking for the old icons or the return of a red app icon. it goes against the UI unification movement they started.
@DanRathbun Point taken! By the way, the title bar darkening is actually already completely optional. You can open Extensions > Dark Mode > Settings and set Style Titlebar to No, and it will leave your crimson caption bar completely untouched.
@ateliernab and @Elmtec-Adam Really good points about the Mac side still running on Cocoa and Trimble’s push for unified “corporate blue” branding. That definitely explains a lot about why native dark mode hasn’t been a priority for them.
Fixed the tray panel close buttons (the built-in SketchUp ones had dark charcoal hardcoded into the SVG, replaced them with a clean white vector icon).
Fixed tooltip text by binding QToolTip::setPalette via Fiddle, so tooltips are readable white-on-dark now.
Slimmed the toolbar down to just a single toggle button.
Translated all Ruby console messages and code comments to English (per TIG’s request).
Added a QSS reference doc in the repo mapping out SketchUp’s Qt 6 widget hierarchy.
Digging this deep into Qt 6 also showed the hard limits of what can be done via QSS from Ruby. For instance, touching padding or borders on QToolButton immediately breaks native Windows Vista metrics and makes toolbar icons balloon in size, tray containers love to fight back on minimum width hints, and some internal C++ painting routines don’t respect basic CSS rules.
So it’s definitely just a community bridge until Trimble eventually tackles native support across both OSes, but hopefully it makes working in SketchUp a bit easier on the eyes in the meantime.
FYI, ... extension naming conventions (... click to expand ...)
You really aught to have a unique top-level namespace module for all your extensions.
You could use Jakubix or Jakubix30 etc. or some other unique name.
Following on from 1., each extension submodule must be nested within your unique top-level namespace module in all files.
And further, we encourage the naming of the extension registrar file and the extension subfolder to follow the namespace qualification replacing :: scope operators with _ underscore.
This also prevents the use of the “sketchup_” prefix which has been used exclusively by Trimble.
Ex: “Jakubix_SketchupDarkMode” folder and “Jakubix_SketchupDarkMode.rb”
The tradition is to suffix your RBZ file name with “_1.1.0” for version 1.1.0 as in: “Jakubix_SketchupDarkMode_1.1.0.rbz”
Although both pages show downcasing the registrar filename and folder, it is not a requirement. Only that these names be unique. (What better way to uniquify them than to use their unique namespace qualification?)
NOTE: Because of the crash it never got to the point of registering the extension listing in the "PrivatePreferences.json". I had to manually disable it by adding a "!" after the “.rb” making it ".rb!" so SketchUp would not run the extension.
I tracked down what caused the crash right after installing: the extension was set to automatically activate dark mode 300ms after load if Windows had dark mode turned on. Firing Qt stylesheet updates and Windows titlebar hooks while the Extension Manager was still finishing its job caused an immediate crash, especially if SketchUp 2026 handles Qt/DWM a bit differently.
I just released v1.1.1 on GitHub which disables auto-activation on install completely. It now installs completely quietly and just adds the toolbar and menu without touching Qt or Windows titlebars. That way it won’t crash SketchUp during installation or lock you in a startup crash loop, and you can toggle it on manually whenever SketchUp is ready.
I also added Dan’s ‘.rb!’ trick to the README in case anyone ever needs to disable it without opening SketchUp, and fixed the config path so it’s not hardcoded to 2025. I’ll also try to get my hands on SketchUp 2026 to test and debug it directly myself.
Let me know if 1.1.1 installs cleanly for you now and what happens when you click the toggle button in 2026!
Quick update: I just managed to test it on SketchUp 2026 myself, and it actually loaded and worked completely fine without any crashes on my setup.
That makes me think this might be a conflict with another extension (especially plugins that use custom Qt widgets, web dialogs, or renderers like V-Ray/Enscape).
How many other plugins do you have active? If you get a chance, could you try testing it with other extensions temporarily disabled to see if it still crashes, or if a specific plugin is causing the conflict?
Things like this should be done after all other extensions have loaded the “meat” of their code.
You can detect this in your AppObserver using the onExtensionsLoaded callback. (I would still use a delay proc there as other extensions could also be in the after loading queue.)
BTW, it doesn’t make much sense to use an observer subclass for an AppObserver as there can be only one application object to attach to. Especially since you are just calling a method in your Main submodule.
So, I’d suggest removing the DarkModeAppObserver subclass wrapper and make it’s callbacks methods of Main. Then Main.setup_observers() is just:
def setup_observers
this_module = Module.nesting[0].name # lexical scope
unless file_loaded?(this_module)
# Attach this module instance itself as the AppObserver:
Sketchup.add_observer(self)
file_loaded(this_module)
end
end
You also no longer need to qualify the method calls to on_model_changed() as it is now in the same scope as the callbacks and the module uses extend self to make publicly accessible singleton method copies that the SketchUp observer engine can call.
Note that the various add_observer methods in the API do not do any type checking on the object argument. So a module instance can serve as any kind of observer as long as the purported callback methods are publicly callable.
I think a dark mode extension would be really useful, especially for working at night. If it’s stable and doesn’t interfere with SketchUp’s normal functionality, I’d definitely be interested in trying it. Sharing the source code would also be great for community feedback and improvements.
Version 1.1.1 installed Ok. I clicked the moon icon and it crashed.
Upon restart, for a second I see the interface in dark mode and then BugSplat!
I switched off all other extensions and it made no difference.
I tried a new template using my dark template (has reverse video background and edges on a “Work” scene,) a standard OEM “Inches” template, and a previous test model.
The dark interface is seen for a second after clicking the moon icon and then CRASH.
I manually edited the JSON config file to set most stuff to false but it still crashes.
When I change “style_ui” to true, reload and reenable it crashes.
Optional Tooltip Stylin: I moved the QToolTip palette override behind an opt-in toggle in Extensions → Dark Mode → Settings (style_tooltips: false by default). By default, the extension ompletely bypasses low-level Fiddle calls to QToolTip::setPalette, preventing any potential memory corruption while hovering over toolbar buttons. Tooltips are safely styled via pure Qt QSS.
Automated Diagnostic File Logging (sketchup_dark_mode.log): Since Ruby console logs disappear if an unhandled crash occurs, the extension now writes a step-by-step diagnostic log file with immediate disk flush (File#flush on every step): %APPDATA%\SketchUp\SketchUp <year>\SketchUp\sketchup_dark_mode.log (You can also view it directly from Extensions → Dark Mode → View Diagnostic Log File).
If anyone still encounters an issue or crash on startup, could you please share:
The contents of your sketchup_dark_mode.log file.
The BugSplat Crash#ID after submitting the error report.
What good will this do? You’d really need to see the report files wouldn’t you?
And without a symbol file and the application source some of that will not help.
Basically after adding Logger calls into QtStyler.apply_stylesheet() it is crashing when calling @fn_set_stylesheet.call(qapp, qstr_buf).
Gemini tells me that setStylesheet is a member function of QApplication but qapp is a pointer to a QCoreApplciation object.
Gemini had me try a bunch of stuff that did not work to try to get a valid pointer to the QApplication object, incl a qt_metacast call, and a rigmarole of using varients and calling setProperty with the qstr_buf … but nothing really worked.
When the apply_stylesheet method short-circuits if qapp is nil or 0, then most of the interface is in darkmode. Just some of the tray panel backgrounds are still bright mode.
Interestingly, I’ve been testing on the exact same build — SketchUp Pro 2026 v26.2.243 (as well as 2025 v25.0.571) — and on my machine it runs without crashing. In Qt, qApp / QCoreApplication::instance() points directly to the QApplication instance (single inheritance, 0 offset), so setStyleSheet does execute. The crash right after styling was caused by Qt choking on invalid qproperty-icon writes on dock subcontrols and wildcard tooltip selectors during widget restyling.
Sanitized the QSS stylesheet by removing invalid qproperty-icon calls on subcontrols and wildcard tooltip rules.
Fixed dialog and tray backgrounds so they render properly dark instead of white.
Restored clean white vector icons on tray panel headers across all locales.
Added a new setting in Extensions > Dark Mode > Settings: “Qt Stylesheet (QSS Panels)” (apply_qss). If you turn this off, it runs in pure palette-only mode, which you already verified works cleanly without crashing.
Give v1.1.3 a spin when you have a moment. If it still misbehaves on your setup, please share the new log file or BugSplat Crash ID.
Thanks for the log. Since you mentioned seeing the UI turn dark for a moment before the crash, setStyleSheet is executing, but Qt crashes while repolishing a specific widget.
I prepared a test build (v1.1.4-dev) where I added a section-by-section diagnostic tool. It applies the stylesheet in 10 separate blocks, logging each step immediately to disk. If a crash occurs, the log will show the exact section that failed.
Could you please test this build?
Install the attached sketchup_dark_mode_v1.1.4-dev.rbz.
In the menu, click: Extensions → Dark Mode → [DEV] Run QSS Section Diagnostic (or run SketchupDarkMode::QtStyler.diagnose_qss_sections in the Ruby Console).
Let me know the result or post the updated sketchup_dark_mode.log.
In this dev build I also protected QWindowContainer widgets (in case an embedded browser like the Instructor panel was being styled) and removed qproperty- from KDAB dock buttons.