All files / src/apps/timeline scale-config.ts

0% Statements 0/65
100% Branches 1/1
100% Functions 1/1
0% Lines 0/65

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68                                                                                                                                       
// IMPORTANT: This config is render-focused only (colors, widths, padding, spacing).
// Keep layout/state logic out of this file to preserve consistent scale styling.
export const scaleStyle = {
  panel: {
    fillColor: 0x141414,
    fillAlpha: 0.92,
    borderColor: 0x2f2f2f,
    borderAlpha: 0.8,
    borderWidth: 1,
    separatorColor: 0x7a7a7a,
    separatorAlpha: 0.9,
    separatorWidth: 1,
  },
  topScale: {
    overlayExtraHeight: 3,
    labelInset: 5,
    labelMajor: {
      color: 0xf0f0f0,
      fontSize: 15,
    },
    labelMinor: {
      color: 0xb0b0b0,
      fontSize: 13,
    },
    milestoneLabel: {
      color: 0xe6e6e6,
      fontSize: 14,
    },
  },
  ticks: {
    major: {
      color: 0x777777,
      alpha: 0.9,
      width: 1,
    },
    minor: {
      color: 0x4b4b4b,
      alpha: 0.7,
      width: 1,
    },
    extended: {
      major: {
        color: 0x4a4a4a,
        alpha: 0.35,
        width: 1,
      },
      minor: {
        color: 0x333333,
        alpha: 0.22,
        width: 1,
      },
    },
  },
  changeScale: {
    overlayExtraWidth: 3,
    rightPaddingBase: 12,
    axisInset: 12,
    tickPadding: 22,
    axisColor: 0x777777,
    axisAlpha: 0.9,
    axisWidth: 1,
    labelColor: 0xcfcfcf,
    labelFontSize: 12,
    labelPad: 8,
    tickSize: 6,
  },
} as const;