Skip to content

Commit

Permalink
fix: latte dark/light being inverted (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Covkie authored Dec 3, 2024
1 parent f3c116b commit 652fa31
Show file tree
Hide file tree
Showing 68 changed files with 136 additions and 136 deletions.
4 changes: 2 additions & 2 deletions src/templates/alias.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/alias.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["mauve"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/all-scroll.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/all-scroll.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/bottom_left_corner.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/bottom_left_corner.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/bottom_right_corner.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/bottom_right_corner.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/bottom_side.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/bottom_side.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/cell.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/cell.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/center_ptr.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/center_ptr.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/col-resize.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/col-resize.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/color-picker.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/color-picker.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/context-menu.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/context-menu.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["mauve"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/copy.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/copy.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["green"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/crosshair.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/crosshair.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/default.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/default.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/dnd-move.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/dnd-move.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/dnd-no-drop.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/dnd-no-drop.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["red"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/down-arrow.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/down-arrow.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/draft.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/draft.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/help.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/help.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["blue"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/left-arrow.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/left-arrow.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/left_side.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/left_side.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/no-drop.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/no-drop.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["red"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/not-allowed.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/not-allowed.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["red"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/openhand.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/openhand.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/pencil.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/pencil.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/pirate.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/pirate.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["red"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/pointer.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/pointer.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/progress-01.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/progress-01.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["lavender"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/progress-02.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/progress-02.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["lavender"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/progress-03.tera
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ whiskers:
- flavor
filename: "svgs/catppuccin-{{flavor.identifier}}-{{accent}}-cursors/progress-03.svg"
---
{%- if accent == 'dark' %}
{%- if (flavor.light and accent == 'light') or (flavor.dark and accent == 'dark') %}
{%- set inner = flavor.colors["base"] -%}
{%- set border = flavor.colors["text"] -%}
{%- set special = flavor.colors["lavender"] -%}
{% elif accent == 'light' %}
{% elif (flavor.dark and accent == 'light') or (flavor.light and accent == 'dark') %}
{%- set inner = flavor.colors["text"] -%}
{%- set border = flavor.colors["base"] -%}
{%- set special = border -%}
Expand Down
Loading

0 comments on commit 652fa31

Please sign in to comment.