Happy New Year of the Rabbit, xīnnián hǎo, 新年好!
In the lunar calendar, 2023 is a Water Rabbit Year. The sign of the Rabbit is a symbol of longevity, peace, and prosperity in Chinese culture. 2023 is predicted to be a year of hope, especially after the long pandemic period. Wishing all of us lots of health, energy and happiness in the new year!
In this new year, the Revit development team has another topic to share with us:
- Dark theme possibility looming
- Dark theme switching
- Dark theme API
- Dark theme icons
- Code example: handling themed ribbon icons
- Dark theme additional notes
- Autodesk icon guidelines snapshot
- Autodesk AEC Public Roadmaps
We recently announced internal thoughts on possibly converting the internal representation of Revit element ids from 32 to 64 bit in a future release of Revit.
In a similar vein, here is another internal topic being pondered. Please note the important safe harbor statement concerning these thoughts:
Roadmaps are plans, not promises. We’re as excited as you to see new functionality make it into the products, but the development, releases, and timing of any features or functionality remains at our sole discretion. These updates should not be used to make purchasing decisions.
So, the possibility that I would like to present today concerns supporting the Dark Theme and how to handle it in a Revit add-in:
Setting the UI Active Theme will switch the appearance of the Ribbon between light grey and dark blue, with three options:
- Use system setting – Windows supports light and dark colour schemes. If you choose this option, Revit will use the Windows colour scheme and switch to a matching theme accordingly.
The UI Active Theme options can define other colour settings to override the default ones:
New properties and events may be added for dark theme support:
- ThemeChangedEventArgs – Arguments for the ThemeChanged event
- UIThemeManager.CurrentTheme – Allows you to set /get the overall theme for the Revit session
- UIThemeManager.FollowSystemColorTheme – Allows you to set /get if the overall theme follows operating system color theme
- UIThemeManager.CurrentCanvasTheme – Allows you to set/get a canvas theme for the current Revit session (as opposed to the default theme)
- ColorOption – Allows you to set/get the colours in the current canvas theme
Here are samples of the default dark theme ribbon background and button colour settings:
Light ribbon background:
Dark ribbon background:
Light ribbon buttons:
Dark ribbon buttons:
- Small button size: 16x16px
- Large button size: 32x32px
- Resolution: 96 DPI
Please note that only the 1st level UI supports the dark theme option.
Thank you for asking, Luiz and Gábor.
For more exciting news on possible upcoming product enhancements, check out the Autodesk AEC Public Roadmaps with dozens of items in each of the sections:
- Revit – Architecture
- Revit – Structures
- Revit – MEP
- Dynamo Public Roadmap