From 003b8e041d6b2af1c6d2ebdd10e485b77ca61adb Mon Sep 17 00:00:00 2001 From: Jonian Guveli Date: Sun, 15 Oct 2023 18:01:01 +0300 Subject: [PATCH] export helper function from theme --- unite@hardpixel.eu/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unite@hardpixel.eu/theme.js b/unite@hardpixel.eu/theme.js index 6453754..90bc77c 100644 --- a/unite@hardpixel.eu/theme.js +++ b/unite@hardpixel.eu/theme.js @@ -12,7 +12,7 @@ function fileExists(path) { return GLib.file_test(path, GLib.FileTest.EXISTS) } -function isColorDark({ red, green, blue }) { +export function isColorDark({ red, green, blue }) { // HSP equation from http://alienryderflex.com/hsp.html const hsp = Math.sqrt( 0.299 * (red * red) +