Marta File Manager
Link to repository
https://github.com/grokdesigns/marta-catppuccin.git
Screenshots
https://marta.sh/
Any additional comments?
No response
Submission Guidelines
- [x] I have read and followed Catppuccin's submission guidelines.
- For the Whiskers template, you don't need to do
{%- set palette = flavor.colors -%}and access colors underpalettelikepalette.red. Because you are using a matrix of flavors, colors are available globally under justredor<insert-name-of-color>. So you can remove that{%- set palette = flavor.colors -%}line and you can remove thepalette.before each color name. - Instead of using
| upperon every hex color, you should usewhiskers.hex_format: https://github.com/catppuccin/whiskers#hex-format.
---
whiskers:
version: 2.5.1
matrix:
- variant: ["generated-themes"]
- flavor
filename: "catppuccin-marta-{{flavor.identifier}}.theme"
+ hex_format: "{{R}}{{G}}{{B}}{{Z}}"
---
You can also prefix colors with # by default:
---
whiskers:
version: 2.5.1
matrix:
- variant: ["generated-themes"]
- flavor
filename: "catppuccin-marta-{{flavor.identifier}}.theme"
- hex_format: "{{R}}{{G}}{{B}}{{Z}}"
+ hex_format: "#{{R}}{{G}}{{B}}{{Z}}"
---
- What's the point of the
variantvariant in the matrix?variant: ["generated-themes"] - It looks like you are manually moving the template output to
output/? Instead we should use thethemes/directory for output themes, and this can be done automatically:
- filename: "catppuccin-marta-{{flavor.identifier}}.theme"
+ filename: "themes/catppuccin-marta-{{flavor.identifier}}.theme"
While we are at it, we can remove the "marta-" text from the filename:
- filename: "themes/catppuccin-marta-{{flavor.identifier}}.theme"
+ filename: "themes/catppuccin-{{flavor.identifier}}.theme"
@uncenter Thanks for the advice! Fairly new to these templates. I've made the changes you recommended.
Sweet!.
- You still need to remove the
| upperfilters from every color code; that is no longer needed because of thehex_formatsetting we configured. - In
{% if flavor.identifier=='latte'%}light{% else %}dark{% endif %}, instead of checking if the flavor is latte withflavor.identifier=='latte'we should use theflavor.lightboolean. - Since there is only one template, we can move it out of
templates/and into the root of the repository. It should be calledmarta.tera(notmarta-catppuccin.tera). - You might want to remove the blank line between the end of the front matter and the line with
name "Catppuccin - {{flavor.identifier}}"- this is causing that extra line at the top of the generated theme files. - In the line with
name "Catppuccin - {{flavor.identifier}}", you could try:
-name "Catppuccin - {{flavor.identifier}}"
+name "Catppuccin {{flavor.name}}"
Please test the Frappé flavor specifically in Marta, because the name field for the flavor has an accent mark that may or may not work with Marta (it most likely will be fine but it can't hurt to be extra careful!).
@uncenter Don't know how I missed the upper thing, sorry! I think I got everything this time.
Frappé worked without any issues:
@uncenter Don't know how I missed the upper thing, sorry! I think I got everything this time.
No worries, nice work. You don't need to check flavor.light==true since that equality expression is redundant; if flavor.light is true, it will evaluate as true, so you don't need to doubly check if it is true with ==true - does that make sense?
- appearance "{% if flavor.light==true %}light{% else %}dark{% endif %}"
+ appearance "{% if flavor.light %}light{% else %}dark{% endif %}"
Frappé worked without any issues:
Sweet! I think we can drop the dash (-) between "Catppuccin" and the name of the flavor, as we normally do with other ports.
Done and done!