Skip to content

Commit 003f269

Browse files
committed
fix: change background color of viewport to white
1 parent 79f1e90 commit 003f269

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/e3sm_quickview/components/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def create_size_menu(name, config):
109109
def create_bottom_bar(config, update_color_preset):
110110
with config.provide_as("config"):
111111
with html.Div(
112-
classes="bg-blue-grey-darken-2 d-flex align-center",
112+
classes="bg-white text-black d-flex align-center border-t-thin",
113113
style="height:1rem;position:relative;top:0;user-select:none;cursor:context-menu;",
114114
):
115115
with v3.VMenu(

src/e3sm_quickview/view_manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ def __init__(self, server, source, variable_name, variable_type):
8888
self.view.InteractionMode = "2D"
8989
self.view.OrientationAxesVisibility = 0
9090
self.view.UseColorPaletteForBackground = 0
91-
self.view.BackgroundColorMode = "Gradient"
91+
self.view.BackgroundColorMode = "Single Color"
92+
self.view.Background = [1, 1, 1]
93+
self.view.Background2 = [1, 1, 1]
9294
self.view.CameraParallelProjection = 1
9395
self.view.Size = 0 # make the interactive widget non responsive
9496
self.representation = simple.Show(
@@ -343,7 +345,7 @@ def _build_ui(self):
343345
):
344346
with v3.VRow(
345347
dense=True,
346-
classes="ma-0 pa-0 bg-black opacity-90 d-flex align-center",
348+
classes="ma-0 pa-0 bg-white text-black d-flex align-center border-b-thin",
347349
style="flex-wrap: nowrap;",
348350
):
349351
tview.create_size_menu(self.name, self.config)

0 commit comments

Comments
 (0)