Sha256: 8d028528e354675b7c053d867b258d33157e25bf688a5203ccb66dae00909e26

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

# frozen_string_literal: true

module RubyJard
  class Layouts
    WideLayout = RubyJard::Templates::LayoutTemplate.new(
      min_width: 120,
      min_height: 24,
      fill_height: false,
      children: [
        RubyJard::Templates::LayoutTemplate.new(
          height_ratio: 80,
          width_ratio: 50,
          children: [
            RubyJard::Templates::ScreenTemplate.new(
              screen: :source,
              height_ratio: 70,
              adjust_mode: :expand
            ),
            RubyJard::Templates::ScreenTemplate.new(
              screen: :backtrace,
              height_ratio: 30,
              min_height: 3
            )
          ]
        ),
        RubyJard::Templates::LayoutTemplate.new(
          height_ratio: 80,
          width_ratio: 50,
          children: [
            RubyJard::Templates::ScreenTemplate.new(
              screen: :variables,
              height_ratio: 80,
              adjust_mode: :expand
            ),
            RubyJard::Templates::ScreenTemplate.new(
              screen: :threads,
              height_ratio: 20,
              min_height: 3
            )
          ]
        ),
        RubyJard::Templates::ScreenTemplate.new(
          height: 2,
          screen: :menu
        )
      ]
    )
  end
end
RubyJard::Layouts.add_layout('wide', RubyJard::Layouts::WideLayout)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_jard-0.3.1 lib/ruby_jard/layouts/wide_layout.rb
ruby_jard-0.3.0 lib/ruby_jard/layouts/wide_layout.rb
ruby_jard-0.2.3 lib/ruby_jard/layouts/wide_layout.rb