Class: Shellfie::Themes::MacOS
- Inherits:
-
Base
- Object
- Base
- Shellfie::Themes::MacOS
show all
- Defined in:
- lib/shellfie/themes/macos.rb
Instance Method Summary
collapse
Methods inherited from Base
#color_for, #title_alignment
Instance Method Details
30
31
32
|
# File 'lib/shellfie/themes/macos.rb', line 30
def button_colors
%w[#ff5f56 #ffbd2e #27c93f]
end
|
34
35
36
|
# File 'lib/shellfie/themes/macos.rb', line 34
def button_style
:circles
end
|
38
39
40
|
# File 'lib/shellfie/themes/macos.rb', line 38
def buttons_position
:left
end
|
#colors ⇒ Object
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
|
#font ⇒ Object
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
|
#name ⇒ Object
8
9
10
|
# File 'lib/shellfie/themes/macos.rb', line 8
def name
"macos"
end
|
#window_decoration ⇒ Object
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
|