Skip to main content

Module config

Module config 

Source

Macrosยง

theme ๐Ÿ”’

Structsยง

ScopeIconColors
Colors for different scope type icons in the hierarchy view.
ScopeIcons
Icons for different scope types in the hierarchy view. Each field maps to a wellen::ScopeType and contains a Remix icon string.
ServerConfig
SurferBehavior
SurferConfig
SurferGesture
Mouse gesture configurations. Color and linewidth are configured in the theme using SurferTheme::gesture.
SurferLayout
SurferLineStyle
SurferRelationArrow
SurferTheme
SurferTicks
Tick mark configuration
ThemeColorPair
ThemeColorTriple
VariableIconColors
Colors for different variable type icons in the hierarchy view. Each field contains a Color32 value for the corresponding variable type.
VariableIcons
Icons for different variable types in the hierarchy view. Each field contains a Remix icon string.
WcpConfig

Enumsยง

ArrowKeyBindings
Select the function of the arrow keys
AutoLoad
PrimaryMouseDrag
Select the function when dragging with primary mouse button
TransitionValue

Constantsยง

CONFIG_FILE ๐Ÿ”’
LOCAL_DIR
OLD_CONFIG_FILE ๐Ÿ”’
THEMES_DIR ๐Ÿ”’

Staticsยง

BUILTIN_THEMES ๐Ÿ”’
Built-in theme names and their corresponding embedded content
PROJECT_DIR

Functionsยง

all_theme_names ๐Ÿ”’
default_colors ๐Ÿ”’
default_next ๐Ÿ”’
default_true ๐Ÿ”’
deserialize_color_map ๐Ÿ”’
deserialize_hex_color ๐Ÿ”’
deserialize_theme ๐Ÿ”’
find_local_configs
Searches for .surfer directories upward from the current location until it reaches root. Returns an empty vector in case the search fails in any way. If any .surfer directories are found, they will be returned in a Vec<PathBuf> in a pre-order of most top-level to most local. All plain files are ignored.
get_luminance ๐Ÿ”’
hex_string_to_color32 ๐Ÿ”’