setAccentColor
Sets the system accent color and highlighting of active window border.
The accentColor
parameter accepts the following values:
Color string - Sets a custom accent color using standard CSS color formats (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in RGBA/HSLA formats are ignored and the color is treated as fully opaque.
true
- Uses the system's default accent color from user preferences in System Settings.false
- Explicitly disables accent color highlighting for the window.
Examples: