Lines Matching refs:icon_size
109 local directory_matches_size = function(self, subdirectory, icon_size)
113 return icon_size == size
115 return icon_size >= min_size and icon_size <= max_size
117 return icon_size >= size - threshold and icon_size <= size + threshold
123 local directory_size_distance = function(self, subdirectory, icon_size)
127 return math.abs(icon_size - size)
129 if icon_size < min_size then
130 return min_size - icon_size
131 elseif icon_size > max_size then
132 return icon_size - max_size
136 if icon_size < size - threshold then
137 return min_size - icon_size
138 elseif icon_size > size + threshold then
139 return icon_size - max_size
147 local lookup_icon = function(self, icon_name, icon_size)
152 if directory_matches_size(self, subdir, icon_size) then
169 local dist = directory_size_distance(self, subdir, icon_size)
190 find_icon_path_helper = function(self, icon_name, icon_size)
191 local filename = lookup_icon(self, icon_name, icon_size)
198 filename = find_icon_path_helper(parent_icon_theme, icon_name, icon_size)
226 function icon_theme:find_icon_path(icon_name, icon_size)
227 icon_size = icon_size or 16
232 local filename = find_icon_path_helper(self, icon_name, icon_size)
238 …ilename = find_icon_path_helper(icon_theme("hicolor", self.base_directories), icon_name, icon_size)