Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #53 from jimmac/wip/jimmac/amberol-waveforms
Browse files Browse the repository at this point in the history
waveform: sharp thick lines for waves
  • Loading branch information
vixalien authored Jan 21, 2024
2 parents 2cfa676 + b2267d7 commit 399340c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/waveform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,17 @@ export class APWaveForm extends Gtk.DrawingArea {
// We keep them to the minimum possible scope to catch real errors.
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
ctx.setLineCap(Cairo.LineCap.ROUND);
ctx.setLineWidth(2);
ctx.setLineCap(Cairo.LineCap.SQUARE);
ctx.setAntialias(Cairo.Antialias.NONE);
ctx.setLineWidth(1);

this.setSourceRGBA(ctx, dividerColor);

ctx.moveTo(horizCenter, vertiCenter - height);
ctx.lineTo(horizCenter, vertiCenter + height);
ctx.stroke();

ctx.setLineWidth(1);
ctx.setLineWidth(2);
/* eslint-enable @typescript-eslint/no-unsafe-call */
/* eslint-enable @typescript-eslint/no-unsafe-member-access */

Expand Down

0 comments on commit 399340c

Please sign in to comment.