         self.iconLayer.frame = imageRect
         self.iconLayer.mask?.frame = self.iconLayer.bounds
         self.titleLayer.frame = titleRect
+        self.rimLayer.frame = self.layer?.bounds.insetBy(dx: -0.5, dy: -0.5) ?? .zero
         if !initState {
             NSAnimationContext.endGrouping()
         }

        self.titleLayer.contentsScale = scale
        self.iconLayer.contentsScale = scale
    }
    
    public override func layer(_ layer: CALayer, shouldInheritContentsScale newScale: CGFloat,
                               from window: NSWindow) -> Bool {
        return true
    }
}


        self.layer?.borderColor = props.borderColor.cgColor
        self.layer?.backgroundColor = props.bezelColor.cgColor
        
        self.rimLayer.opacity = props.rimOpacity
        self.rimLayer.cornerRadius = props.cornerRadius
        
        self.shadow = props.shadow
        
        self.iconLayer.backgroundColor = props.iconColor.cgColor
        self.titleLayer.foregroundColor = props.textColor.cgColor
