Put a dark test layer underneath a pale icon. On the icon layer, enable Lock Alpha and brush a contrasting color across both an edge and a transparent corner. The corner should stay clear and the edge should keep its softness.
A solid brush can cover texture inside the silhouette. Use a separate color blend layer or a translucent stroke when that texture should remain visible.