Skip to content

Commit

Permalink
tweaks (#596)
Browse files Browse the repository at this point in the history
Co-authored-by: Hactar <6060305+HactarCE@users.noreply.github.com>
  • Loading branch information
jimniels and HactarCE committed Jul 14, 2023
1 parent 1a9ecbb commit 2ddc03f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gridGL/UI/gridHeadings/GridHeadings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class GridHeadings extends Container {
for (let x = leftOffset; x <= rightOffset; x += currentWidth) {
currentWidth = gridOffsets.getColumnWidth(column);
if (gridAlpha !== 0) {
this.headingsGraphics.lineStyle(1, colors.cursorCell, 0.25 * gridAlpha, 0.5, true);
this.headingsGraphics.lineStyle(1, colors.gridHeadingBorder, 0.5 * gridAlpha, 0.5, true);
this.headingsGraphics.moveTo(x, bounds.top);
this.headingsGraphics.lineTo(x, bounds.top + cellHeight);
this.gridLinesColumns.push({ column: column - 1, x, width: gridOffsets.getColumnWidth(column - 1) });
Expand Down Expand Up @@ -281,7 +281,7 @@ export class GridHeadings extends Container {
for (let y = topOffset; y <= bottomOffset; y += currentHeight) {
currentHeight = gridOffsets.getRowHeight(row);
if (gridAlpha !== 0) {
this.headingsGraphics.lineStyle(1, colors.cursorCell, 0.25 * gridAlpha, 0.5, true);
this.headingsGraphics.lineStyle(1, colors.gridHeadingBorder, 0.5 * gridAlpha, 0.5, true);
this.headingsGraphics.moveTo(bounds.left, y);
this.headingsGraphics.lineTo(bounds.left + this.rowWidth, y);
this.gridLinesRows.push({ row: row - 1, y, height: gridOffsets.getRowHeight(row - 1) });
Expand Down Expand Up @@ -345,7 +345,7 @@ export class GridHeadings extends Container {
const { viewport } = this.app;
const cellHeight = CELL_HEIGHT / viewport.scale.x;
const bounds = viewport.getVisibleBounds();
this.headingsGraphics.lineStyle(1, colors.cursorCell, 0.25, 0.5, true);
this.headingsGraphics.lineStyle(1, colors.gridHeadingBorder, 1, 0.5, true);
this.headingsGraphics.moveTo(bounds.left + this.rowWidth, viewport.top);
this.headingsGraphics.lineTo(bounds.left + this.rowWidth, viewport.bottom);
this.headingsGraphics.moveTo(bounds.left, bounds.top + cellHeight);
Expand Down
1 change: 1 addition & 0 deletions src/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const colors = {
boxCellsDeleteColor: Number(`0x${red['400'].replace('#', '')}`),
boxCellsColor: 0x6cd4ff,
boxCellsAlpha: 0.333,
gridHeadingBorder: 0xcfd7de,
defaultBorderColor: 0,
lightGray: '#f6f8fa',
mediumGray: '#cfd7de',
Expand Down

0 comments on commit 2ddc03f

Please sign in to comment.