Skip to contents

Returns the settings of a built-in theme of GC_theme(), to see them or to start a theme of your own.

Usage

geneviewer_theme(name = "default")

Arguments

name

Name of the theme: "default", "classic", "dark", "vintage", "infographic", "publication" or "bw".

Value

A list of theme settings, to use as the theme of GC_theme().

Examples

geneviewer_theme("dark")
#> $fontFamily
#> [1] "sans-serif"
#> 
#> $background
#> [1] "#333333"
#> 
#> $textColor
#> [1] "#eeeeee"
#> 
#> $lineColor
#> [1] "#eeeeee"
#> 
#> $palette
#> [1] "dark"
#> 
#> $title
#> $title$titleFont
#> $title$titleFont$fontSize
#> [1] "18px"
#> 
#> 
#> $title$subtitleFont
#> $title$subtitleFont$fontSize
#> [1] "12px"
#> 
#> $title$subtitleFont$fill
#> [1] "#aaaaaa"
#> 
#> 
#> 
#> $clusterTitle
#> $clusterTitle$subtitleFont
#> $clusterTitle$subtitleFont$fill
#> [1] "#aaaaaa"
#> 
#> 
#> 
#> $genes
#> $genes$stroke
#> [1] "none"
#> 
#> $genes$corner_radius
#> [1] 3
#> 
#> 
#> $transcript
#> $transcript$styleExons
#> $transcript$styleExons$strokeWidth
#> [1] 0
#> 
#> $transcript$styleExons$cornerRadius
#> [1] 3
#> 
#> 
#> $transcript$styleUTRs
#> $transcript$styleUTRs$cornerRadius
#> [1] 3
#> 
#> 
#> 
#> $labels
#> $labels$fontStyle
#> [1] "normal"
#> 
#> $labels$fontSize
#> [1] "12px"
#> 
#> 
#> $coordinates
#> $coordinates$tickStyle
#> $coordinates$tickStyle$lineLength
#> [1] 5
#> 
#> 
#> 
#> $scale
#> $scale$textStyle
#> $scale$textStyle$fontSize
#> [1] "12px"
#> 
#> 
#> $scale$tickStyle
#> $scale$tickStyle$lineLength
#> [1] 5
#> 
#> 
#> 
#> $scaleBar
#> $scaleBar$labelStyle
#> $scaleBar$labelStyle$fontSize
#> [1] "12px"
#> 
#> 
#> 
#> $legend
#> $legend$corner_radius
#> [1] 3
#> 
#> 
#> $links
#> $links$normal_color
#> [1] "#759aa0"
#> 
#> $links$inverted_color
#> [1] "#dd6b66"
#> 
#> $links$low_color
#> [1] "#333333"
#> 
#> $links$linkStyle
#> $links$linkStyle$fillOpacity
#> [1] 0.6
#> 
#> 
#> $links$colorBarOptions
#> $links$colorBarOptions$barOptions
#> $links$colorBarOptions$barOptions$stroke
#> [1] "none"
#> 
#> 
#> $links$colorBarOptions$labelOptions
#> $links$colorBarOptions$labelOptions$fontSize
#> [1] 12
#> 
#> 
#> $links$colorBarOptions$titleOptions
#> $links$colorBarOptions$titleOptions$fontSize
#> [1] 12
#> 
#> 
#> 
#> 
#> $tooltip
#> $tooltip$backgroundColor
#> [1] "#ffffff"
#> 
#> $tooltip$color
#> [1] "#6d6e73"
#> 
#> $tooltip$border
#> [1] "1px solid #b7b9be"
#> 
#> $tooltip$borderRadius
#> [1] "4px"
#> 
#> $tooltip$fontSize
#> [1] "12px"
#> 
#> $tooltip$fontFamily
#> [1] "sans-serif"
#> 
#> $tooltip$padding
#> [1] "8px"
#> 
#> $tooltip$boxShadow
#> [1] "1px 2px 10px rgba(0, 0, 0, 0.2)"
#> 
#> 
#> $trackMouse
#> $trackMouse$backgroundColor
#> [1] "#ffffff"
#> 
#> $trackMouse$color
#> [1] "#6d6e73"
#> 
#> $trackMouse$border
#> [1] "1px solid #b7b9be"
#> 
#> $trackMouse$borderRadius
#> [1] "4px"
#> 
#> $trackMouse$fontSize
#> [1] "12px"
#> 
#> $trackMouse$fontFamily
#> [1] "sans-serif"
#> 
#> $trackMouse$padding
#> [1] "8px"
#> 
#> $trackMouse$boxShadow
#> [1] "1px 2px 10px rgba(0, 0, 0, 0.2)"
#> 
#> 

# A theme of your own, based on "classic"
my_theme <- utils::modifyList(geneviewer_theme("classic"),
                              list(textColor = "navy"))