@@ -6,6 +6,7 @@ import {createElementSize, createResizeObserver} from '@solid-primitives/resize-
66import { useRemSize } from '@solid-primitives/styles'
77
88import { type Atom , atom , createHover } from '@solid-devtools/shared/primitives'
9+ import * as theme from '@solid-devtools/shared/theme'
910import * as debug from '@solid-devtools/debugger/types'
1011import { hover_background , panel_header_el_border } from './SidePanel.tsx'
1112import { useController , useDevtoolsOptions } from './controller.tsx'
@@ -268,14 +269,14 @@ export function reconcileStructure(
268269 return { roots : nextRoots , nodeList : NewNodeList }
269270}
270271
271- export const path_height = ui . spacing [ 4.5 ]
272- export const row_height = ui . spacing [ 4.5 ]
273- export const row_padding = ui . spacing [ 3.5 ]
274- export const v_margin = ui . spacing [ 3 ]
272+ export const path_height = theme . spacing [ 4.5 ]
273+ export const row_height = theme . spacing [ 4.5 ]
274+ export const row_padding = theme . spacing [ 3.5 ]
275+ export const v_margin = theme . spacing [ 3 ]
275276
276- export const path_height_in_rem = ui . remValue ( path_height )
277- export const row_height_in_rem = ui . remValue ( row_height )
278- export const v_margin_in_rem = ui . remValue ( v_margin )
277+ export const path_height_in_rem = theme . remValue ( path_height )
278+ export const row_height_in_rem = theme . remValue ( row_height )
279+ export const v_margin_in_rem = theme . remValue ( v_margin )
279280
280281export const path_height_class = 'h-owner-path-height'
281282export const path_min_height_class = 'min-h-owner-path-height'
@@ -290,9 +291,9 @@ export const owner_path_styles = /*css*/ `
290291`
291292
292293export const row_padding_minus_px = `calc(${ row_padding } - 0.95px)`
293- export const lines_color = ui . vars . panel [ 3 ]
294+ export const lines_color = theme . vars . panel [ 3 ]
294295export const background_gradient = `repeating-linear-gradient(to right, transparent, transparent ${ row_padding_minus_px } , ${ lines_color } ${ row_padding_minus_px } , ${ lines_color } ${ row_padding } )`
295- export const padding_mask = `linear-gradient(to right, rgba(0,0,0, 0.4), black ${ ui . spacing [ 48 ] } )`
296+ export const padding_mask = `linear-gradient(to right, rgba(0,0,0, 0.4), black ${ theme . spacing [ 48 ] } )`
296297
297298export function getVirtualVars (
298299 listLength : number ,
@@ -328,7 +329,7 @@ export function StructureView(): s.JSXElement {
328329 < div
329330 class = "relative h-full w-full overflow-hidden grid"
330331 style = { {
331- 'grid-template-rows' : `${ ui . spacing . header_height } 1fr ${ path_height } ` ,
332+ 'grid-template-rows' : `${ theme . spacing . header_height } 1fr ${ path_height } ` ,
332333 'grid-template-columns' : '100%' ,
333334 } }
334335 >
@@ -385,7 +386,7 @@ const Search: s.Component = () => {
385386 < style > {
386387 /*css*/ `
387388 .edge-container-base {
388- height: calc(100% - ${ ui . spacing [ 2 ] } )
389+ height: calc(100% - ${ theme . spacing [ 2 ] } )
389390 }
390391 `
391392 } </ style >
@@ -401,7 +402,7 @@ const Search: s.Component = () => {
401402 } }
402403 class = "w-full text-lg p-x-6 transition-padding leading-9 placeholder:text-disabled group-focus-within:p-l-2"
403404 style = { {
404- height : ui . spacing . header_height ,
405+ height : theme . spacing . header_height ,
405406 } }
406407 type = "text"
407408 placeholder = "Search"
@@ -450,10 +451,10 @@ const ToggleMode: s.Component = () => {
450451 style = { {
451452 [ ui . toggle_tab_color_var ] :
452453 mode === debug . TreeWalkerMode . Owners
453- ? ui . vars . text . DEFAULT
454+ ? theme . vars . text . DEFAULT
454455 : mode === debug . TreeWalkerMode . DOM
455- ? ui . vars . dom
456- : ui . vars . component ,
456+ ? theme . vars . dom
457+ : theme . vars . component ,
457458 } }
458459 >
459460 < div
@@ -831,7 +832,7 @@ export const OwnerPath: s.Component = () => {
831832 flex items-center pointer-events-none
832833 group-hover:opacity-0"
833834 style = { {
834- 'background-image' : `linear-gradient(to right, ${ ui . vars . panel . bg } ${ ui . spacing [ 8 ] } , transparent ${ ui . spacing [ 32 ] } )` ,
835+ 'background-image' : `linear-gradient(to right, ${ theme . vars . panel . bg } ${ theme . spacing [ 8 ] } , transparent ${ theme . spacing [ 32 ] } )` ,
835836 } }
836837 >
837838 < ui . Icon . Options class = "w-3 h3 text-disabled" />
@@ -925,7 +926,7 @@ export const OwnerNode: s.Component<{
925926 < div
926927 class = "relative -z-2 ml-3.5"
927928 style = { {
928- width : `calc(${ props . owner . level } * ${ row_padding } + ${ ui . spacing [ 2 ] } )` ,
929+ width : `calc(${ props . owner . level } * ${ row_padding } + ${ theme . spacing [ 2 ] } )` ,
929930 height : `calc(${ row_height } + 0.95px)` ,
930931 background : background_gradient ,
931932 'mask-image' : padding_mask ,
0 commit comments