feat: add jank hover highlight for links

This commit is contained in:
Anna
2022-02-15 18:36:16 -05:00
parent 1c22fe16b3
commit 1c1fd5d6d5
3 changed files with 45 additions and 3 deletions
+9
View File
@@ -29,6 +29,15 @@ internal static class ColourUtil {
);
}
internal static uint Vector4ToAbgr(Vector4 col) {
return RgbaToAbgr(ComponentsToRgba(
(byte) Math.Round(col.X * 255),
(byte) Math.Round(col.Y * 255),
(byte) Math.Round(col.Z * 255),
(byte) Math.Round(col.W * 255)
));
}
internal static uint ComponentsToRgba(byte red, byte green, byte blue, byte alpha = 0xFF) => alpha
| (uint) (red << 24)
| (uint) (green << 16)