Class: Shellfie::Themes::WindowsTerminal

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

Instance Method Summary collapse

Methods inherited from Base

#button_colors, #color_for

Instance Method Details

#button_styleObject



48
49
50
# File 'lib/shellfie/themes/windows_terminal.rb', line 48

def button_style
  :icons
end

#buttons_positionObject



52
53
54
# File 'lib/shellfie/themes/windows_terminal.rb', line 52

def buttons_position
  :right
end

#colorsObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/shellfie/themes/windows_terminal.rb', line 23

def colors
  super.merge(
    background: "#0c0c0c",
    foreground: "#cccccc",
    title_bar: "#1f1f1f",
    title_text: "#ffffff",
    black: "#0c0c0c",
    red: "#c50f1f",
    green: "#13a10e",
    yellow: "#c19c00",
    blue: "#0037da",
    magenta: "#881798",
    cyan: "#3a96dd",
    white: "#cccccc",
    bright_black: "#767676",
    bright_red: "#e74856",
    bright_green: "#16c60c",
    bright_yellow: "#f9f1a5",
    bright_blue: "#3b78ff",
    bright_magenta: "#b4009e",
    bright_cyan: "#61d6d6",
    bright_white: "#f2f2f2"
  )
end

#fontObject



60
61
62
63
64
65
66
67
# File 'lib/shellfie/themes/windows_terminal.rb', line 60

def font
  {
    family: "Cascadia Mono",
    size: 14,
    line_height: 1.3,
    fallback_family: "Consolas"
  }
end

#nameObject



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

def name
  "windows"
end

#title_alignmentObject



56
57
58
# File 'lib/shellfie/themes/windows_terminal.rb', line 56

def title_alignment
  :left
end

#window_decorationObject



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

def window_decoration
  {
    title_bar_height: 32,
    button_size: 10,
    button_width: 46,
    button_spacing: 0,
    corner_radius: 0,
    shadow: { blur: 15, offset_x: 0, offset_y: 5, color: "rgba(0,0,0,0.25)" }
  }
end