require 'glimmer_klondike_solitaire/model/game' class GlimmerKlondikeSolitaire module View class ActionPanel include Glimmer::UI::CustomWidget option :game body { composite { grid_layout(1, false) { margin_width 10 margin_height 0 margin_top 10 margin_bottom 5 } background :dark_green button { layout_data :center, :center, true, false text 'Restart Game' on_widget_selected { game.restart! } } } } end end end