Device color based on thresholds

Splitting them would allow handling two different PRs, I think that’s indeed better.