lighttroupe/luz

View on GitHub
engine/user_object_settings/user_object_setting_theme.rb

Summary

Maintainability
A
25 mins
Test Coverage
require 'user_object_setting'    #,'theme_combobox'

class UserObjectSettingTheme < UserObjectSetting
    attr_accessor :theme

    def to_yaml_properties
        super + ['@theme']
    end

    def after_load
        @theme ||= $engine.project.themes.first
        super
    end

    def immediate_value
        @theme
    end

    def summary
        summary_format(@theme.title) if @theme
    end
end