From fbfa6b899594f20fbe933646e6148988b9c4b3bf Mon Sep 17 00:00:00 2001 From: Kazunobu Kuriyama Date: Tue, 13 Oct 2015 01:21:52 +0900 Subject: [PATCH] menubar/icon_theme.lua: Handle scalable icons correctly This bug was caused by typos. Closes https://github.com/awesomeWM/awesome/pull/525. --- lib/menubar/icon_theme.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/menubar/icon_theme.lua b/lib/menubar/icon_theme.lua index f29b14d9f..e21e0d699 100644 --- a/lib/menubar/icon_theme.lua +++ b/lib/menubar/icon_theme.lua @@ -113,7 +113,7 @@ local directory_matches_size = function(self, subdirectory, icon_size) if kind == "Fixed" then return icon_size == size - elseif kind == "Scaled" then + elseif kind == "Scalable" then return icon_size >= min_size and icon_size <= max_size elseif kind == "Threshold" then return icon_size >= size - threshold and icon_size <= size + threshold @@ -127,7 +127,7 @@ local directory_size_distance = function(self, subdirectory, icon_size) if kind == "Fixed" then return math.abs(icon_size - size) - elseif kind == "Scaled" then + elseif kind == "Scalable" then if icon_size < min_size then return min_size - icon_size elseif icon_size > max_size then