Isn't it easier just to check if any rule is marked and in case not, mark the "Default rule" to blue?