Sha256: 5bdd50a5b95099c2b8c85ed60339f39c51660d9bebb39e4fe2b8b0a08c6a2dd8
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
module Pageflow class Theme attr_reader :name, :directory_name, :options def initialize(name, options = {}) @name = name.to_s @directory_name = name.to_s @options = options end def stylesheet_path "pageflow/themes/#{name}.css" end def has_home_button? !@options[:no_home_button] end def has_scroll_back_indicator? !!@options[:scroll_back_indicator] end def supports_scroll_indicator_modes? !!@options[:scroll_indicator_modes] end def supports_emphasized_pages? !!@options[:emphasized_pages] end def page_change_by_scrolling? !@options[:no_page_change_by_scrolling] end def change_to_parent_page_at_storyline_boundary? !@options[:no_change_to_parent_page_at_storyline_boundary] end def hide_text_on_swipe? !@options[:no_hide_text_on_swipe] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.10.0 | lib/pageflow/theme.rb |