🎨 Contrast Fix

Free Feature - Improve Readability with WCAG Standards

Overview

The Contrast Fix feature automatically adjusts text colors in JobTread schedule views to ensure optimal readability. Using the WCAG (Web Content Accessibility Guidelines) contrast formula, it dynamically enhances text visibility against various background colors in Month, Week, and Day schedule views.

Key Features

Getting Started

Prerequisites

Enabling the Feature

  1. Click the JT Power Tools extension icon in your Chrome toolbar
  2. Locate the "Contrast Fix" toggle
  3. Toggle it ON - the switch will turn blue
  4. Navigate to any JobTread page (especially schedule views)
  5. Text colors will automatically adjust for better readability
Auto-Disable with Themes

Contrast Fix automatically disables when you enable Dark Mode or Custom Theme, as those features include their own contrast optimizations.

How It Works

WCAG Contrast Formula

The feature uses the WCAG 2.0 relative luminance formula to calculate contrast ratios:

  1. Detects the background color of text elements
  2. Calculates the luminance (brightness) of the background
  3. Determines the optimal text color (black or white) for maximum contrast
  4. Applies the calculated color automatically
What is WCAG?

The Web Content Accessibility Guidelines (WCAG) define standards for web accessibility. A contrast ratio of 4.5:1 is recommended for normal text, and 3:1 for large text.

Real-Time Updates

Contrast Fix uses a MutationObserver to monitor the page for changes:

Where It Works

Schedule Views Only

Contrast Fix is specifically designed for JobTread schedule views:

What Gets Enhanced

Within schedule views, Contrast Fix improves:

Schedule-Specific Feature

Contrast Fix does not affect other JobTread pages like Dashboard, Budget, or Jobs. It's optimized exclusively for schedule views.

Visual Examples

Before Contrast Fix

After Contrast Fix

Current Date Highlighting

How It Works

When viewing schedule pages, Contrast Fix adds special highlighting to today's date:

  1. Detects the current date from your system
  2. Finds the corresponding date cell in the schedule
  3. Applies a distinctive background color
  4. Ensures text remains readable with contrast adjustment

Benefits

Best Practices

When to Use Contrast Fix

Ideal Scenarios:

When Not to Use

You might prefer to disable Contrast Fix if:

Compatibility

Works With

Mutually Exclusive With

Automatic Exclusivity

When you enable Dark Mode or Custom Theme, Contrast Fix automatically disables itself. Re-enabling Contrast Fix will disable the theme features.

Troubleshooting

Text Colors Not Changing

Solution:

Colors Look Wrong

Solution:

Current Date Not Highlighted

Solution:

Performance Issues

Solution:

Technical Details

Luminance Calculation

The WCAG formula for relative luminance:

L = 0.2126 * R + 0.7152 * G + 0.0722 * B

Where R, G, and B are the linearized red, green, and blue values.

Contrast Ratio

The contrast ratio between two luminance values:

Contrast Ratio = (L1 + 0.05) / (L2 + 0.05)

Where L1 is the lighter color and L2 is the darker color.

Decision Threshold

The feature uses a luminance threshold of 0.5:

Accessibility Benefits

WCAG Compliance

By using the WCAG formula, Contrast Fix helps meet accessibility standards:

Who Benefits

Related Guides