zaphyra's git: oeffisearch

fast and simple tripplanner

commit 93a38c7f8ba252e28c1cc021b5bee02317ae42f6
parent ca9c70eed137234296e86e204cdd9cc9b9eb7ac7
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 4 Nov 2025 16:06:34 +0100

journeysCanvas: remove shadows
2 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/src/journeysCanvas.js b/src/journeysCanvas.js
@@ -179,8 +179,6 @@ export class JourneysCanvas extends BaseView {
 		const cacheCanvasContext = cacheCanvas.getContext('2d');
 		let height, width;
 
-		cacheCanvasContext.shadowColor = '#00000080';
-
 		if (fixedHeight) {
 			height = 15;
 			cacheCanvasContext.font = `${height}px sans-serif`;

@@ -269,7 +267,6 @@ export class JourneysCanvas extends BaseView {
 			const buttonPath = new Path2D('M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z');
 
 			canvasContext.fillStyle = '#fff';
-			canvasContext.shadowColor = '#00000080';
 			canvasContext.save();
 			canvasContext.scale(3, 3);
 			if (mode === 'earlier') canvasContext.translate(x / 3 - 15, canvasElement.height / this.canvasState.dpr / 6 - 24);

@@ -380,9 +377,6 @@ export class JourneysCanvas extends BaseView {
 
 				y = ((leg.departure || leg.plannedDeparture) - this.canvasState.firstDeparture) * this.canvasState.scaleFactor + 32;
 
-				canvasContext.shadowColor = '#00000060';
-				if (!this.settingsState.disableCanvasBlur) canvasContext.shadowBlur = 5;
-
 				if (leg.walking || leg.transfer) {
 					canvasContext.fillStyle = '#777';
 					canvasContext.fillRect(x + this.canvasState.rectWidth / 2 - this.canvasState.rectWidth / 10, y, this.canvasState.rectWidth / 5, duration);

@@ -392,7 +386,6 @@ export class JourneysCanvas extends BaseView {
 					canvasContext.strokeStyle = this.getColor('text', leg);
 					canvasContext.strokeRect(x, y, this.canvasState.rectWidth, duration);
 				}
-				if (!this.settingsState.disableCanvasBlur) canvasContext.shadowBlur = 0;
 
 				let preRenderedText = this.getTextCache(formatLineDisplayName(leg.line), this.getColor('text', leg));
 				let offset = duration / 2;

@@ -436,8 +429,6 @@ export class JourneysCanvas extends BaseView {
 				});
 
 				if (leg.loadFactor && duration > 20) {
-					canvasContext.shadowColor = '#00000090';
-					if (!this.settingsState.disableCanvasBlur) canvasContext.shadowBlur = 2;
 					[ "#777", "#aaa", "#aaa" ];
 					for (let i = 0; i < 3; i++) {
 						canvasContext.beginPath();

@@ -445,7 +436,6 @@ export class JourneysCanvas extends BaseView {
 						canvasContext.arc(x + (i + 3) * this.canvasState.rectWidth / 8, y + duration - 9.5, 5, 0, 2 * Math.PI, false);
 						canvasContext.fill();
 					}
-					if (!this.settingsState.disableCanvasBlur) canvasContext.shadowBlur = 0;
 				}
 
 				x -= xOffset;
diff --git a/src/settings.js b/src/settings.js
@@ -23,7 +23,6 @@ export const settings = createStore()(
 			showVia: false,
 			showPrices: true,
 			showDS100: true,
-			disableCanvasBlur: false,
 
 			setJourneysViewMode: (journeysViewMode) => set({ journeysViewMode }),
 			setLanguage:         (language)         => set({ language }),