Sha256: ece7ad9d0fbf5fcac21cf3589b0670bc278c1ea1891b123606c1d388796a9377

Contents?: true

Size: 422 Bytes

Versions: 49

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module ColorThemeColors
  DEFAULT_THEME_COLORS = { color: :default, mode: :default, background: :default }.freeze

  # Ensures that default colors and mode are represented in the returned Hash.
  def merge_default_colors
    # TODO: Error checking.
    DEFAULT_THEME_COLORS.merge(dup)
  end

  def merge_default_colors!
    # TODO: Error checking.
    merge!(merge_default_colors)
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
dsu-3.0.5 lib/core/ruby/color_theme_colors.rb
dsu-3.0.4 lib/core/ruby/color_theme_colors.rb
doto-0.0.1.pre.alpha.1 lib/core/ruby/color_theme_colors.rb
dsu-3.0.3 lib/core/ruby/color_theme_colors.rb
dsu-3.0.1 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.beta.3 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.beta.2 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.beta.1 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.beta.0 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.12 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.11 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.10 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.9 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.8 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.7 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.6 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.5 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.4 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.3 lib/core/ruby/color_theme_colors.rb