Sha256: 899b9d94ceed6e3385aa8c88c6c8a9c9aaf283155f41a3f08e4aa09e6bfbe6fa

Contents?: true

Size: 585 Bytes

Versions: 2

Compression:

Stored size: 585 Bytes

Contents

class MainWindowLayout < MK::WindowLayout
  MAIN_WINDOW_IDENTIFIER = 'MAIN_WINDOW'

  def layout
    frame [[335, 390], [402, 114]], MAIN_WINDOW_IDENTIFIER
    styleMask NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask
    contentMinSize [402, 92]

    add NSTextField, :remove_me
  end

  def remove_me_style
    size [37, 16]
    center ['50%', '50%']
    autoresizing_mask :pin_to_center
    background_color NSColor.clearColor
    opaque false

    editable false
    selectable true
    bordered false
    bezeled false

    string_value 'Hello!'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
motion-kit-templates-1.0.1 templates/mk-osx/files/app/main/main_window_layout.rb
motion-kit-templates-1.0.0 templates/mk-osx/files/app/main/main_window_layout.rb