fundon
2025-03-31 09:11:26 +00:00
parent baf1aad412
commit 6a66bf53a8
3 changed files with 4 additions and 4 deletions
@@ -73,7 +73,7 @@ export class EdgelessPenMenu extends EdgelessToolbarToolMixin(
private readonly _onPickColor = (e: ColorEvent) => {
let color = e.detail.value;
if (this.pen$.peek() === 'highlighter') {
color = adjustColorAlpha(color, 0.5);
color = adjustColorAlpha(color, 0.3);
}
this.onChange({ color });
};
@@ -90,7 +90,7 @@ export const highlighterToolbarConfig = {
);
const onPick = (e: PickColorEvent) => {
if (e.type === 'pick') {
const color = adjustColorAlpha(e.detail.value, 0.5);
const color = adjustColorAlpha(e.detail.value, 0.3);
for (const model of models) {
const props = packColor(field, color);
ctx.std
@@ -124,8 +124,8 @@ export const DefaultTheme: Theme = {
shapeFillColor: Medium.Yellow,
connectorColor: Medium.Grey,
noteBackgrounColor: NoteBackgroundColorMap.White,
// 50% transparent `Default.black`
hightlighterColor: { dark: '#ffffff80', light: '#00000080' },
// 30% transparent `Medium.Blue`
hightlighterColor: '#84cfff4d',
Palettes,
ShapeTextColorPalettes,
NoteBackgroundColorMap,