fix history color in dark mode + flip colors of and/or

This commit is contained in:
Joeri Exelmans 2025-11-13 22:27:13 +01:00
parent c825830a14
commit dc948629a7
3 changed files with 9 additions and 5 deletions

View file

@ -9,8 +9,10 @@ export const HistorySVG = memo(function HistorySVG(props: {uid: string, topLeft:
cx={props.topLeft.x+HISTORY_RADIUS}
cy={props.topLeft.y+HISTORY_RADIUS}
r={HISTORY_RADIUS}
fill="white"
stroke="black"
style={{
fill: 'var(--and-state-bg-color)',
stroke: 'var(--rountangle-stroke-color)'
}}
strokeWidth={2}
data-uid={props.uid}
data-parts="history"
@ -20,6 +22,7 @@ export const HistorySVG = memo(function HistorySVG(props: {uid: string, topLeft:
y={props.topLeft.y+HISTORY_RADIUS+5}
textAnchor="middle"
fontWeight={500}
style={{fill: 'var(--rountangle-stroke-color)'}}
>{text}</text>
<circle
className="helper"

View file

@ -284,6 +284,7 @@ export function useMouse(makeCheckPoint: () => void, insertMode: InsertMode, zoo
}
else {
// @ts-ignore
newSelection.push({uid, part});
}
}
@ -291,7 +292,7 @@ export function useMouse(makeCheckPoint: () => void, insertMode: InsertMode, zoo
}
// console.log({newSelection, oldSelection, common});
// return [...oldSelection, ...newSelection];
return newSelection;xxxxxxxx
return newSelection;
})
}
}