Skip to content

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

Closed

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

Activity

  1. added
    enhancement
    on Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions