Notification Priority

I've been building a status bar widget and I'm trying to get it to match that of my pixel 2 (Android 8.1)

The problem is that I have too many icons visible because in the Android settings I have the ability to set the notification priority for each app. If I have the app priority set to low, then it's icon isn't displayed.

I'd like to write a formula in KWGT to have the icon hidden (likely via width) given it's priority. I'd imagine it could return "low, medium, high, urgent" or just "0, 1, 2, 3"

$if(ni(0, priority)=0, hide, show)$