Skip to content

Indicator color does not auto-adjust based on avg. luminosity of wallpaper to ensure legibility #16

@AdamWagner

Description

@AdamWagner

This is only really an issue with the "pill"-style indicators – the "icon" style uses much more space, but is always legible regardless of the wallpaper.

The current background color for the pills is 99% white, with a 0.2 alpha when inactive and 0.99 alpha when active. This means the indicators are almost invisible against a light background.

Potential solution: determine the avg luminosity of the wallpaper and change background color to {dark color} when above a certain threshold.

Likely edge cases:

  • Gradient wallpapers that are light on top & dark on bottom (or vice versa). It may be possible to calculate the luminosity for a region of the wallpaper based on the user's indicator offset settings.
  • Dynamic wallpapers that change over time will require stackline to periodically check luminosity and update background color if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions