An LCARS header panel.

lcarsHeader(
  title = NULL,
  color = "golden-tanoi",
  title_color = color,
  background_color = "#000000",
  title_right = TRUE,
  title_invert = FALSE,
  round = c("both", "right", "left", "none"),
  width = "100%"
)

lcarsh1(
  title = NULL,
  color = "atomic-tangerine",
  title_color = color,
  background_color = "#000000",
  title_align = c("center", "right", "left"),
  title_invert = FALSE,
  width = "auto"
)

lcarsh2(
  title = NULL,
  color = "atomic-tangerine",
  title_color = color,
  background_color = "#000000",
  title_align = c("center", "right", "left"),
  title_invert = FALSE,
  width = "auto"
)

lcarsh3(
  title = NULL,
  color = "atomic-tangerine",
  title_color = color,
  background_color = "#000000",
  title_align = c("center", "right", "left"),
  title_invert = FALSE,
  width = "auto"
)

lcarsh4(
  title = NULL,
  color = "atomic-tangerine",
  title_color = color,
  background_color = "#000000",
  title_align = c("center", "right", "left"),
  title_invert = FALSE,
  width = "auto"
)

lcarsh5(
  title = NULL,
  color = "atomic-tangerine",
  title_color = color,
  background_color = "#000000",
  title_align = c("center", "right", "left"),
  title_invert = FALSE,
  width = "auto"
)

lcarsh6(
  title = NULL,
  color = "atomic-tangerine",
  title_color = color,
  background_color = "#000000",
  title_align = c("center", "right", "left"),
  title_invert = FALSE,
  width = "auto"
)

Arguments

title

character, optional title.

color

header color. Any hex color or a named LCARS color.

title_color

text color. Any hex color or a named LCARS color.

background_color

color behind text.

title_right

logical, right align title.

title_invert

logical, invert the color and background color for the title rectangle.

round

character, sides of header to round. The default is to present the header in LCARS full pill style.

width

a valid CSS unit.

title_align

character, for the heading replacers: center, right or left.

Value

HTML

Details

In addition to lcarsHeader there are also some LCARS style heading replacers, lcarsh1 through lcarsh6. These default to centered text, whereas lcarsHeader is strictly right or left.

See also

Examples

lcarsHeader("A title")
#> <div class="lcars-hdr" style="width:100%;">
#>   <div class="hdr-pill-left"><svg style = "fill: #FFCC66 ;height:30px;width:45px;">
#>            <use xlink:href="svg/sprites.svg#lcars-svg-endcap_left" height="30" width="45"></use>
#>            </svg></div>
#>   <div class="blocktext_black lcars-hdr-rect" style="background-color:#FFCC66;"></div>
#>   <div class="lcars-hdr-title" style="color:#FFCC66;background-color:#000000;font-size:30px;line-height:29px;">A title</div>
#>   <div class="hdr-pill-right"><svg style = "fill: #FFCC66 ;height:30px;width:45px;">
#>            <use xlink:href="svg/sprites.svg#lcars-svg-endcap_right" height="30" width="45"></use>
#>            </svg></div>
#> </div>