Sha256: 8c8a512c7bf3c3737dabc3cdf98940fc5db8395104ff549a606e9359de918f4c
Contents?: true
Size: 772 Bytes
Versions: 14
Compression:
Stored size: 772 Bytes
Contents
module Redcar class EditView class SelectThemeDialog < FilterListDialog def initialize super() @matches = EditView.themes.sort @matches.delete(EditView.theme) @matches.insert(0, EditView.theme + " (Current)") end def close super end def update_list(filter) @last_list = @matches filtered_list = @last_list if filter.length >= 1 filtered_list = filter_and_rank_by(filtered_list, filter, filtered_list.length) do |match| match end end filtered_list end def selected(text, ix, closing=false) if @last_list close Redcar::EditView.theme = text end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems