# File ext/themes.rb, line 203 def request(obj) if @@label == nil #Can't initialize at global scope because $window may not have been set @@label = ShadeLabelTheme.new @@checkgen = ShadeCheckGenTheme.new @@checkgenc = ShadeCheckGenCTheme.new end if obj.kind_of?(Label) return @@label elsif obj.kind_of?(CheckBox) or obj.kind_of?(RadioButton) return @@checkgen elsif obj.kind_of?(CheckBox::CheckedHk) or obj.kind_of?(RadioButton::CheckedHk) return @@checkgenc end return self end