Skip to content

Commit 7c57a72

Browse files
Move Theme tab to first position in interactive editor
Theme affects all subsequent plots globally, so it deserves the most prominent position to help users set it before making other edits. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2e4fb5d commit 7c57a72

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

src/statspai/plots/_jupyter_editor.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,25 +1270,24 @@ def _live_code_update(figure):
12701270
'<div style="padding:20px; color:#999; text-align:center">'
12711271
'Loading...</div>')]),
12721272
}
1273-
_tab_loaded = {0: True, 1: False, 2: False, 3: False, 4: False}
1273+
_tab_loaded = {0: True, 1: True, 2: False, 3: False, 4: False}
12741274
_real_tabs = {
1275-
1: style_container,
1276-
2: layout_tab,
1277-
3: theme_tab,
1275+
2: style_container,
1276+
3: layout_tab,
12781277
4: code_tab,
12791278
}
12801279

12811280
tabs = widgets.Tab(children=[
1281+
theme_tab,
12821282
text_tab,
1283-
_lazy_placeholders[1],
12841283
_lazy_placeholders[2],
12851284
_lazy_placeholders[3],
12861285
_lazy_placeholders[4],
12871286
])
1288-
tabs.set_title(0, 'Text')
1289-
tabs.set_title(1, 'Style')
1290-
tabs.set_title(2, 'Layout')
1291-
tabs.set_title(3, 'Theme')
1287+
tabs.set_title(0, 'Theme')
1288+
tabs.set_title(1, 'Text')
1289+
tabs.set_title(2, 'Style')
1290+
tabs.set_title(3, 'Layout')
12921291
tabs.set_title(4, 'Export')
12931292

12941293
def _on_tab_switch(change):

0 commit comments

Comments
 (0)