Skip to content

Commit 58c8771

Browse files
committed
Improve visibility, add short description of the color picker to about
1 parent 584b240 commit 58c8771

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

html/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<div class="h-full mx-auto flex flex-row" transition:fade>
117117
{#if validTemplate}
118118
{#if $currentMemoryRegion != null && !('isPlaceHolder' in $currentMemoryRegion)}
119-
<div out:fade={{ duration: 200 }} in:slide>
119+
<div out:fade={{ duration: 200 }} in:slide class="w-full">
120120
<VisualizeMemoryRegion MemoryRegion={$currentMemoryRegion} />
121121
</div>
122122
{:else}

html/src/app.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ html:root {
1313
}
1414

1515
.high-contrast-stroke {
16-
-webkit-text-stroke: medium black;
16+
-webkit-text-stroke: 1px black;
1717
}
1818

1919
.high-contrast-text-shadow {

html/src/components/Layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
type: 'alert',
2929
buttonTextCancel: 'Close',
3030
title: 'Information',
31-
body: '<div class="overflow-y-auto">This is a Utility which allows you to visualize memory accesses on the GPU. Using a C++ Header only library you can export the necessary data. This is then visualized in the center screen. <br> You achieve the fastest loading times by dragging and dropping a <code>.json</code> into the empty window, as the parsing of just a file is much faster than using the HTML DOM parser on page load. <br><br>To the left side you can select the memory structure you want to visualize currently. On the bottom left, you can set a memory width, which will cause the cells to automatically align to that width, and break after this width. Y goes down. <br> When showing both read and write accesses, the upper part <div class="text-access-read inline">(blue)</div> are read accesses, the lower part <div class="text-access-write inline">(orange)</div> are write accesses. When toggling to total accesses, the <div class="text-access-all inline high-contrast-text-shadow-white">purple</div> block represents the combined read and write accesses.<br> When showing the index, it is visible to the left of the read/write counts. <br><br>On this top bar, you also have a few utility buttons to change what is visualized. They have tooltips on hover, but the best thing would be to just try out the different buttons. <br><br> This application is a single page app made with Svelte and skeleton.dev as UI framework.</div>'
31+
body: '<div class="overflow-y-auto">This is a Utility which allows you to visualize memory accesses on the GPU. Using a C++ Header only library you can export the necessary data. This is then visualized in the center screen. <br> You achieve the fastest loading times by dragging and dropping a <code>.json</code> into the empty window, as the parsing of just a file is much faster than using the HTML DOM parser on page load. <br><br>To the left side you can select the memory structure you want to visualize currently. On the bottom left, you can set a memory width, which will cause the cells to automatically align to that width, and break after this width. Y goes down. <br> When showing both read and write accesses, the upper part <div class="text-access-read inline">(blue)</div> are read accesses, the lower part <div class="text-access-write inline">(orange)</div> are write accesses. When toggling to total accesses, the <div class="text-access-all inline high-contrast-text-shadow-white">purple</div> block represents the combined read and write accesses. You can also change the color from <div class="text-access-all inline high-contrast-text-shadow-white">purple</div> to a custom color mapping based on a cube helix mapping. For that click the colored icon in the top bar.<br> When showing the index, it is visible to the left of the read/write counts. <br><br>On this top bar, you also have a few utility buttons to change what is visualized. They have tooltips on hover, but the best thing would be to just try out the different buttons. <br><br> This application is a single page app made with Svelte and skeleton.dev as UI framework.</div>'
3232
});
3333
};
3434

html/src/components/MemoryRegionBlock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<div class="flex flex-col flex-1" title={'Index: ' + index}>
4343
{#if $pageState.showCombinedAccess}
4444
<div
45-
class="flex-1 flex justify-center bg-access-all font-black high-contrast-stroke items-center high-contrast-text-shadow content-cell"
45+
class="!text-white flex-1 flex justify-center bg-access-all font-black high-contrast-stroke items-center high-contrast-text-shadow content-cell "
4646
style="--tw-bg-opacity: {totalOpacity};{$pageState.useCustomColorScheme
4747
? 'background-color: ' + $cubeHelixLookup(totalOpacity) + ';'
4848
: ''}"

0 commit comments

Comments
 (0)