Skip to content

Commit

Permalink
export helper function from theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Oct 15, 2023
1 parent 65ee40d commit 003b8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion [email protected]/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) +
Expand Down

0 comments on commit 003b8e0

Please sign in to comment.