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.0.alpha.2 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.1 lib/core/ruby/color_theme_colors.rb
dsu-3.0.0.alpha.0 lib/core/ruby/color_theme_colors.rb
dsu-2.4.4 lib/core/ruby/color_theme_colors.rb
dsu-2.4.3 lib/core/ruby/color_theme_colors.rb
dsu-2.4.2 lib/core/ruby/color_theme_colors.rb
dsu-2.4.1 lib/core/ruby/color_theme_colors.rb
dsu-2.4.0 lib/core/ruby/color_theme_colors.rb
dsu-2.3.2 lib/core/ruby/color_theme_colors.rb
dsu-2.3.1 lib/core/ruby/color_theme_colors.rb
dsu-2.3.0 lib/core/ruby/color_theme_colors.rb
dsu-2.2.2 lib/core/ruby/color_theme_colors.rb
dsu-2.2.1 lib/core/ruby/color_theme_colors.rb
dsu-2.2.0 lib/core/ruby/color_theme_colors.rb
dsu-2.2.0.rc.2 lib/core/ruby/color_theme_colors.rb
dsu-2.2.0.rc.1 lib/core/ruby/color_theme_colors.rb
dsu-2.1.4 lib/core/ruby/color_theme_colors.rb
dsu-2.1.3 lib/core/ruby/color_theme_colors.rb
dsu-2.1.2 lib/core/ruby/color_theme_colors.rb
dsu-2.1.1 lib/core/ruby/color_theme_colors.rb