lib/drawio_dsl/schema/diagram.rb in drawio_dsl-0.11.0 vs lib/drawio_dsl/schema/diagram.rb in drawio_dsl-0.11.1
- old
+ new
@@ -13,10 +13,10 @@
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
def initialize(**args)
@host = args[:host] || SecureRandom.alphanumeric(3)
# TODO: assess and resolve this inconsistency
- @theme = args[:theme] || KConfig.configuration.drawio.theme.random_background_type
+ @theme = args[:theme] || KConfig.configuration.drawio.theme.random_background_key
@bg_theme = args[:bg_theme] || :not_set
@style = DrawioDsl::Schema::CommonStyle.new(**args) do
default_style = KConfig.configuration.drawio.base_style