feat(theme): merge edge and connection color
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m35s
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m35s
This commit is contained in:
@@ -2,19 +2,19 @@
|
||||
import { colors } from '../graph/colors.svelte';
|
||||
|
||||
const circleMaterial = new MeshBasicMaterial({
|
||||
color: colors.edge.clone(),
|
||||
color: colors.connection.clone(),
|
||||
toneMapped: false
|
||||
});
|
||||
|
||||
let lineColor = $state(colors.edge.clone().convertSRGBToLinear());
|
||||
let lineColor = $state(colors.connection.clone().convertSRGBToLinear());
|
||||
|
||||
$effect.root(() => {
|
||||
$effect(() => {
|
||||
if (appSettings.value.theme === undefined) {
|
||||
return;
|
||||
}
|
||||
circleMaterial.color = colors.edge.clone().convertSRGBToLinear();
|
||||
lineColor = colors.edge.clone().convertSRGBToLinear();
|
||||
circleMaterial.color = colors.connection.clone().convertSRGBToLinear();
|
||||
lineColor = colors.connection.clone().convertSRGBToLinear();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ const variables = [
|
||||
'outline',
|
||||
'active',
|
||||
'selected',
|
||||
'edge'
|
||||
'connection'
|
||||
] as const;
|
||||
|
||||
function getColor(variable: (typeof variables)[number]) {
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
.first-level.input {
|
||||
padding-left: 1em;
|
||||
padding-right: 1em;
|
||||
padding-bottom: 1px;
|
||||
padding-bottom: 0.5px;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
@source inline("{hover:,}{bg-,outline-,text-,}selected");
|
||||
@source inline("{hover:,}{bg-,outline-,text-,}outline{!,}");
|
||||
@source inline("{hover:,}{bg-,outline-,text-,}connection");
|
||||
@source inline("{hover:,}{bg-,outline-,text-,}edge");
|
||||
@source inline("{hover:,}{bg-,outline-,text-,}text");
|
||||
|
||||
/* fira-code-300 - latin */
|
||||
@@ -72,7 +71,6 @@
|
||||
|
||||
--color-outline: var(--neutral-400);
|
||||
--color-connection: #333333;
|
||||
--color-edge: var(--connection, var(--color-outline));
|
||||
|
||||
--color-text: var(--neutral-200);
|
||||
}
|
||||
@@ -89,14 +87,13 @@ html {
|
||||
--color-layer-0: var(--neutral-900);
|
||||
--color-layer-1: var(--neutral-500);
|
||||
--color-layer-2: var(--neutral-400);
|
||||
--color-layer-3: var(--neutral-200);
|
||||
--color-layer-3: var(--neutral-300);
|
||||
|
||||
--color-active: #ffffff;
|
||||
--color-selected: #c65a19;
|
||||
|
||||
--color-outline: var(--neutral-400);
|
||||
--color-outline: #3e3e3e;
|
||||
--color-connection: #333333;
|
||||
--color-edge: var(--connection, var(--color-outline));
|
||||
|
||||
--color-text-color: var(--neutral-200);
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
background-color: var(--color-layer-2);
|
||||
padding: 15px;
|
||||
padding: 7px;
|
||||
border-radius: 5px;
|
||||
outline: solid thin var(--color-outline);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
'selected',
|
||||
'outline',
|
||||
'connection',
|
||||
'edge',
|
||||
'text'
|
||||
];
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user