mirror of
https://github.com/outbackdingo/hyprcosmic.git
synced 2026-08-25 14:53:21 +00:00
import-theme translates a HyDE hypr.theme into cosmic.conf, reusing the Phase 1 parser — which is the payoff for choosing Hyprland-style syntax. Nothing is dropped silently. Every source key either lands in the output or carries a Note explaining why not, classified as NoEquivalent, NeedsCompositorPatch, DifferentProgram or Lossy. Gradient borders contribute their first stop as the accent and say so. Handles real-world quirks found in actual theme files: HyDE's |> destination header (no '=', would otherwise be a parse error), colon-keys like shadow:enabled, and nested blur blocks. Tests run against the verbatim Catppuccin-Mocha theme, and assert that the generated conf both parses and resolves against the registry. Verified end-to-end on Tokyo-Night, a theme absent from the tests: import -> apply produced 8 correct cosmic-config files with 20 settings reported. 64 tests.