This is an automated email from the ASF dual-hosted git repository.
rstrickland pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git
The following commit(s) were added to refs/heads/main by this push:
new eaaf865 Fixed Data Editor inconsistent themes
eaaf865 is described below
commit eaaf86508f6e8ddb91dc675202393ad1fa1a3609
Author: Robert Strickland <[email protected]>
AuthorDate: Thu Oct 2 19:44:35 2025 +0000
Fixed Data Editor inconsistent themes
---
src/dataEditor/dataEditorClient.ts | 2 +-
src/svelte/src/App.svelte | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/dataEditor/dataEditorClient.ts
b/src/dataEditor/dataEditorClient.ts
index 2f3d259..90d9287 100644
--- a/src/dataEditor/dataEditorClient.ts
+++ b/src/dataEditor/dataEditorClient.ts
@@ -1056,7 +1056,7 @@ class DisplayState {
vscode.window.onDidChangeActiveColorTheme(async (event) => {
this.colorThemeKind = event.kind
await this.sendUIThemeUpdate()
- })
+ }, this)
this.sendUIThemeUpdate()
}
diff --git a/src/svelte/src/App.svelte b/src/svelte/src/App.svelte
index 8e561c9..771887b 100644
--- a/src/svelte/src/App.svelte
+++ b/src/svelte/src/App.svelte
@@ -65,8 +65,6 @@ limitations under the License.
import { byte_count_divisible_offset } from './utilities/display'
import Help from './components/layouts/Help.svelte'
- $: $UIThemeCSSClass = $darkUITheme ? CSSThemeClass.Dark : CSSThemeClass.Light
-
function requestEditedData() {
if ($requestable) {
vscode.postMessage({
@@ -296,6 +294,9 @@ limitations under the License.
case MessageCommand.setUITheme:
$darkUITheme = msg.data.theme === 2
+ $UIThemeCSSClass = $darkUITheme
+ ? CSSThemeClass.Dark
+ : CSSThemeClass.Light
break
case MessageCommand.viewportRefresh:
// the viewport has been refreshed, so the editor views need to be
updated