diff --git a/public/index.html b/public/index.html index 55d8718..12a18cc 100644 --- a/public/index.html +++ b/public/index.html @@ -23,7 +23,8 @@ const skinBinary = await r2.arrayBuffer(); return [ netJson, skinBinary ]; } - window.avoidWasm = 'avoid.wasm'; + window.moduleName = 'half_adder'; + // window.avoidWasm = 'avoid.wasm'; diff --git a/public/netlist.css b/public/netlist.css index ae10844..4fe8081 100644 --- a/public/netlist.css +++ b/public/netlist.css @@ -37,8 +37,8 @@ body::-webkit-scrollbar { * hr { border: none; - background-color: var(--vscode-focusBorder); - height: 2px; + background-color: var(--main-color); + height: 1.5px; width: 95%; } /* diff --git a/src/App.vue b/src/App.vue index e007dc7..4777813 100644 --- a/src/App.vue +++ b/src/App.vue @@ -35,6 +35,8 @@ onMounted(async () => { text: t('loading'), background: 'rgba(0, 0, 0, 0.7)' }); + + globalLookup.topModuleName = window.moduleName; // 初始化载入 netlist 的 json 文件 const [ netJson, skinBinary ] = await window.readNetFile(); diff --git a/src/components/right-nav.vue b/src/components/right-nav.vue index 63c3126..3ea2fe3 100644 --- a/src/components/right-nav.vue +++ b/src/components/right-nav.vue @@ -1,7 +1,7 @@