From 3575e77d3f061a20136973edda35c20271737476 Mon Sep 17 00:00:00 2001 From: William Johnson Date: Sun, 2 Apr 2023 12:32:13 -0700 Subject: [PATCH] Created an option to control wether or not InterSpec will transition to the "dark" color theme when the OS does. Previously there was no indication to the user that they had to create and select a custom color theme in order to prevent InterSpec from applying the OS color scheme. --- .../static_text/color_theme_dialog_help.xml | 7 +- .../images/color_theme_dialog_top.png | Bin 121836 -> 89202 bytes data/default_preferences.xml | 1 + js/InterSpec.js | 41 +++++++---- src/ColorThemeWindow.cpp | 8 +++ src/InterSpec.cpp | 66 +++++++++++------- 6 files changed, 81 insertions(+), 42 deletions(-) diff --git a/InterSpec_resources/static_text/color_theme_dialog_help.xml b/InterSpec_resources/static_text/color_theme_dialog_help.xml index 06f82b00..fe7a9b4c 100644 --- a/InterSpec_resources/static_text/color_theme_dialog_help.xml +++ b/InterSpec_resources/static_text/color_theme_dialog_help.xml @@ -14,7 +14,10 @@ This tool allows you to customize colors on the spectrum and time charts, as wel icon; you can also upload JSON color themes by using the "Upload..." button at the bottom of the tool. The JSON representation is convienient if you would like to use the same color theme on multiple devices.

- +

+When the 'Auto apply "Dark" from OS' checkbox is checked, then whenever the operating system transitions into its "dark" color scheme, then InterSpec will automatically apply the default "Dark" color theme; when the operating system goes back to its default or "light" theme, then your selected color theme will be applied, or if you havent selected a color theme, the "Default" color theme will be used. +There is currently no way to customize the auto-applied dark theme. +

@@ -38,7 +41,7 @@ This tool allows you to customize colors on the spectrum and time charts, as wel
- +