Class: Shellfie::Themes::MacOS

Inherits:
Base
  • Object
show all
Defined in:
lib/shellfie/themes/macos.rb

Instance Method Summary collapse

Methods inherited from Base

#color_for, #title_alignment

Instance Method Details

#button_colorsObject



30
31
32
# File 'lib/shellfie/themes/macos.rb', line 30

def button_colors
  %w[#ff5f56 #ffbd2e #27c93f]
end

#button_styleObject



34
35
36
# File 'lib/shellfie/themes/macos.rb', line 34

def button_style
  :circles
end

#buttons_positionObject



38
39
40
# File 'lib/shellfie/themes/macos.rb', line 38

def buttons_position
  :left
end

#colorsObject



22
23
24
25
26
27
28
# File 'lib/shellfie/themes/macos.rb', line 22

def colors
  super.merge(
    background: "#1e1e1e",
    title_bar: "#3c3c3c",
    title_text: "#ffffff"
  )
end

#fontObject



42
43
44
45
46
47
48
49
50
# File 'lib/shellfie/themes/macos.rb', line 42

def font
  {
    family: "SF Mono",
    size: 14,
    line_height: 1.4,
    fallback_family: "Menlo",
    emoji_family: "Apple Color Emoji"
  }
end

#nameObject



8
9
10
# File 'lib/shellfie/themes/macos.rb', line 8

def name
  "macos"
end

#window_decorationObject



12
13
14
15
16
17
18
19
20
# File 'lib/shellfie/themes/macos.rb', line 12

def window_decoration
  {
    title_bar_height: 28,
    button_size: 12,
    button_spacing: 8,
    corner_radius: 10,
    shadow: { blur: 50, offset_x: 0, offset_y: 25, color: "rgba(0,0,0,0.4)" }
  }
end