Skip to content

Commit

Permalink
Gradual shadows on legend text
Browse files Browse the repository at this point in the history
  • Loading branch information
wkramer committed May 30, 2024
1 parent 9e117e1 commit 545dce9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions src/components/wms/ColourBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ function updateColourBar() {
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
text-shadow:
rgb(var(--v-theme-background)) 1px 1px 1px,
rgb(var(--v-theme-background)) -1px 1px 1px,
rgb(var(--v-theme-background)) 1px -1px 1px,
rgb(var(--v-theme-background)) -1px -1px 1px;
rgb(var(--v-theme-background)) 0px 0px 1px,
rgb(var(--v-theme-background)) 0px 0px 2px,
rgb(var(--v-theme-background)) 0px 0px 3px,
rgb(var(--v-theme-background)) 0px 0px 4px,
rgb(var(--v-theme-background)) 0px 0px 5px,
rgb(var(--v-theme-background)) 0px 0px 6px;
}
.colourbar :deep(.axis .tick line) {
Expand Down
10 changes: 5 additions & 5 deletions src/components/wms/ColourLegend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ defineProps<Props>()
text-rendering: optimizeLegibility;
text-shadow:
rgb(var(--v-theme-background)) 0px 0px 1px,
rgb(var(--v-theme-background)) 0px 0px 1px,
rgb(var(--v-theme-background)) 0px 0px 1px,
rgb(var(--v-theme-background)) 0px 0px 1px,
rgb(var(--v-theme-background)) 0px 0px 1px,
rgb(var(--v-theme-background)) 0px 0px 1px;
rgb(var(--v-theme-background)) 0px 0px 2px,
rgb(var(--v-theme-background)) 0px 0px 3px,
rgb(var(--v-theme-background)) 0px 0px 4px,
rgb(var(--v-theme-background)) 0px 0px 5px,
rgb(var(--v-theme-background)) 0px 0px 6px;
}
</style>

0 comments on commit 545dce9

Please sign in to comment.