Documentation
¶
Overview ¶
Copyright 2023 The Gitea Authors. All rights reserved. SPDX-License-Identifier: MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLuminance ¶
return luminance given RGB channels Reference from: https://www.w3.org/WAI/GL/wiki/Relative_luminance
func HexToRBGColor ¶
Get color as RGB values in 0..255 range from the hex color string (with or without #)
func UseLightTextOnBackground ¶
Reference from: https://firsching.ch/github_labels.html In the future WCAG 3 APCA may be a better solution. Check if text should use light color based on RGB of background
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.