marta-issues icon indicating copy to clipboard operation
marta-issues copied to clipboard

Custom etty terminal theme is not loaded

Open laggardkernel opened this issue 2 years ago • 3 comments

The custom etty theme is not loaded when put as

~/Library/Application Support/org.yanex.marta/Themes/OneLight.ettyTheme

But it does get loaded when put into /Applications/Marta.app/Contents/Resources/Themes/.

background #fafafa
cursor #cc00be
cursorText #ffffff
foreground #383a42
name "OneL ight"
selectedText #383a42
selection #bfceff

ansiColors [
    #383a42
    #e45649
    #50a14f
    #c18401
    #2f5af3
    #a626a4
    #00b7eb
    #fafafa
    #797979
    #e06c75
    #98c379
    #e5c07b
    #4b72ff
    #c678dd
    #00b7eb
    #fafafa
]

And my conf ~/Library/Application Support/org.yanex.marta/conf.marco

environment {
    terminal "iTerm2"
    textEditor "Visual Studio Code"
}

behavior {
    theme "Classic"
}

etty {
    environ {
        LC_TERMINAL "Marta"
    }
    theme "OneLight"
    fonts {
        preferences [ "Iosevka Term SS14" 14 ]
    }
}

fonts {
    preferences [ "Iosevka Term SS14" 14 ]
}

Environment

  • Marta: 0.8.1
  • macOS: 10.14.6

laggardkernel avatar Dec 13 '21 15:12 laggardkernel

Ok, this is unrelated, please forgive me...

But I don't know where else to ask this. How do you know which elements the ansiColors block refers to? I am trying to build a Dracula theme.

CodeGrammer45 avatar Jan 12 '22 02:01 CodeGrammer45

@CodeGrammer45 ansiColors refers to the pre-defined color palette in a terminal: black, red, green, yellow, blue, magenta, cyan, white, and their 8 bright variants like bright black, bright red, etc. TUI apps could read and use these 16 colors.

To be specific, ansiColors refers color00 - color15. You can copy them from the dracula theme repo.

https://github.com/dracula/kitty/blob/master/dracula.conf

laggardkernel avatar Jan 12 '22 13:01 laggardkernel

@laggardkernel Ah, thank you so much! I was researching it and I found that it was related to terminal colors, but for the life of me I could not find a template!

You rock.

CodeGrammer45 avatar Jan 12 '22 16:01 CodeGrammer45