2.7 Dark Mode

From Origin 2024, we support to set Origin interface to Dark Mode.

Dark Mode 01.png

We use the Dark Mode toolbar or System Variable to control the interface whether set to Dark Mode

Dark Mode Toolbar in GUI.png

Toggle GUI to Dark Mode

You can use button or set System Variable to toggle GUI to Dark Mode

  • Click the Toggle GUI button Button Toggle GUI.png in Dark Mode toolbar
  • To set Origin GUI to Dark Mode, set System Variable @CTP=1. To run off the Dark Mode, set System Variable @CTP=2.

Dark Theme

Origin apply multiple themes for the Dark Mode. When Origin GUI in Dark Mode, you can select Preference: Dark Theme to change the theme style list in the menu.

Dark Theme.png

Toggle Dark Mode for Window Type

When Origin GUI in Dark Mode, you can use button or hotkey toggle global Window Dark Mode per Window Type.

  • Dark Mode by Window Type button Button Toggle Global.png in Dark Mode toolbar.
  1. Active a Workbook/ Matrix/ Graph or Layout/ Image/Notes window
  2. Click this button, then the same type windows will toggle Dark Mode / Light Mode.
  • Hotkey: Alt+5
  1. Active a Workbook/ Matrix/ Graph or Layout/ Image/Notes window
  2. Press Alt+5, then the same type windows will toggle Dark Mode / Light Mode.


Toggle Dark Mode for Current Window

When the Origin GUI in Dark Mode, you can use these methods toggle current window Dark Mode.

  • Current Window button Button Current Window.png in Dark Mode toolbar.
  1. Active a window
  2. Click this button, then this window will toggle Dark Mode / Light Mode.
  • Hotkey: Ctrl+5
  1. Active a Workbook/ Matrix/ Graph or Layout/ Image window
  2. Press Ctrl+5, then this window will toggle Dark Mode / Light Mode.
  • Labtalk script
  1. Active a Workbook/ Matrix/ Graph or Layout/ Images window
  2. In Script Window run this script, then this window will change to Light Mode.
    page.nodark=1;
  3. Run the following script, then this window will change to Dark Mode.
    page.nodark=0;

Graph /Layout window

Toggle Dark Mode Independent

For the Graph /Layout window, it not only can toggle Dark Mode when Origin GUI in Dark Mode, it can be toggled Dark Mode independent of the GUI. When activate the Graph /Layout window the Dark Mode by Window Type button Button Toggle Global.png, Current Window button Button Current Window.png are available.

Dark Mode Color

Background Color

When the Graph/Layout window toggle Dark Mode, the page background (auto color) will change auto change to the dark mode color. To Customize the dark mode color, you can:

  • Select Preference: Option and go to Page tab. Then you can customize the Background color and Foreground color under the Dark Mode Auto Color section.
Dark Mode Auto Color.png
  • Click the Background Color buttonButton Graph Auto Color.png in Dark Mode toolbar to customize the graph background color in the dark mode.

If you have customize the graph display color in the Plot Details dialog, it will keep the color you customized when toggle Dark Mode.

Color Reversal

When the Graph window in Dark Mode, the plots and objects color in the graph will be reversed. There is a System Variable @DCR to control whether the color is reversed when turn on Dark Mode.

By default, @DCR=5,if the color is listed in the Edit Color Mapping in Dark Mode worksheet (click Preference: Dark Mode Color Mapping to open it), when toggle from Light Mode to Dark Mode, this color will be reversed to the mapping color in the worksheet, including plots color and graph objects color.

Dark Mode Color Mapping.png
  • If you want to control the reversed color, you can add the Hex color value (HTML) of the corresponding color in the worksheet and click Save button to save the added colors in the worksheet.
  • Also, you can click the Reset button to reset it from the default color list.

@DCR=

  • 0 :Disable color reversal
  • 1 :Only Black color
  • 2 :Only Black/White color
  • 3 :All gray
  • 4 :All color
  • 5 :Follow the Dark Mode Color Mapping worksheet color list

If you use Colormap in the plot, it will not reverse color in any situation.

Table/ Worksheet in the graph

By default, the inserted table/worksheet in the graph will follow the dark mode of the graph. If you want to change the inserted table to follow the dark mode of the worksheet, you can set System Variable @TCP=1 (this System Variable default value is 0).

Copy Page in Dark Mode like on Screen

If you want to copy the graph to Word, Power Point and so on, and want to keep the plots and object color in Dark Mode, you can check the Preference: Copy Page in Dark Mode like on Screen option before copy page.

Export Graph in Dark Mode

When in Dark Mode, select File: Export Graph or Export Graphs (Advanced) to export graph, there is a option Follow Dark Mode Color to control whether the exported graphs follow the color in Dark Mode.

Follow Dark Mode Color.png

Code Builder

When Origin GUI in Dark Mode, Code Builder will follow this theme of the GUI.

Dark Mode 04.png

If you want to change the Color of the Text in Code Builder, select Tools: Options of Code Builder menu to open the dialog. The color can be customized in Fonts and Colors page of the Options dialog. If you want to reset the color, select Tools: Reset Options