Skip to main content

Crate chromasync_core

Crate chromasync_core 

Source

Structs§

ChromasyncConfig
Defines sync profiles and records where each configured target writes its generated artifacts.
ConfigHook
One command hook under [[hooks]].
ConfigTarget
One row of the chromasync config under [[targets]].
InstallSummary
Summary of a successful install_target call, for echoing back to the user.
ListedTarget
OutputRegistry
PackInfo
PackRegistry
ResolvedArtifact
A single artifact paired with the directory it should be written to and whether existing files may be overwritten.
RoutedArtifact
A generated artifact paired with its target-specific write policy.
SyncProfile
One runnable generation profile under [[configs]].

Enums§

CoreError
HookEvents
Hook event list that accepts either on = "event" or on = ["event"].
PackError
SyncMode
Sync profile mode. Auto is deliberately separate from ThemeMode because resolving the user’s current desktop preference belongs at the CLI boundary.

Functions§

config_file_path
Path to the managed chromasync config file, if a user config directory can be located.
expand_tilde
Expand a leading ~ or ~/ to the user’s home directory.
export_tokens
generate
generate_from_wallpaper
generate_from_wallpaper_with_output_registry
generate_palette
generate_routed_with_output_registry
Generate artifacts with a target-specific output route while sharing the expensive palette preparation across every target.
generate_with_output_registry
install_target
Install a target TOML into the user config and record its output directory.
list_packs
list_targets
list_templates
load_output_registry
pack_info
pack_search_roots
palette_from_extracted_seeds
Compose a palette from ranked image seed candidates.
preview
write_artifacts
Write generated artifacts into output_dir.
write_resolved_artifacts
Write artifacts to their individually resolved destinations.