Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alacritty deprecated YAML format for TOML #210

Merged
merged 2 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 12 additions & 5 deletions packages/alacritty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<!-- version -->
<a href="#">
<img alt="version" src="https://img.shields.io/badge/version%20-v1.0.1-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
<img alt="version" src="https://img.shields.io/badge/version%20-v1.1.0-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
</a>
</p>

Expand All @@ -23,11 +23,10 @@


# Installation
1. Open [aura-theme.yml](https://raw.githubusercontent.com/daltonmenezes/aura-theme/main/packages/alacritty/aura-theme.yml) and save it in `~/.config/alacritty`
1. Open [aura-theme.toml](https://raw.githubusercontent.com/daltonmenezes/aura-theme/main/packages/alacritty/aura-theme.toml) and save it in `~/.config/alacritty`
2. Edit the Alacritty config file by adding:
```yml
import:
- ~/.config/alacritty/aura-theme.yml
```toml
import = ["~/.config/alacritty/aura-theme.toml"]
```

<br/>
Expand All @@ -51,13 +50,21 @@ Done! ✨ 🎉
</a>
</p>
</td>
<td valign="bottom">
<p align="center">
<a href="https://github.com/MadJlzz">
<img src="https://github.com/madjlzz.png?size=100" align="center" />
</a>
</p>
</td>
</tr>
</thead>

<tbody>
<tr>
<td><a href="https://github.com/daltonmenezes">Dalton Menezes</a></td>
<td><a href="https://github.com/joaopealves">João Pedro Alves</a></td>
<td><a href="https://github.com/MadJlzz">Julien Klaer</a></td>
</tr>
</tbody>
</table>
Expand Down
35 changes: 35 additions & 0 deletions packages/alacritty/aura-theme.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Colors (Aura Theme)

# Default colors
[colors.primary]
background = '#15141b'
foreground = '#edecee'

# Normal colors
[colors.normal]
black = '#110f18'
red = '#ff6767'
green = '#61ffca'
yellow = '#ffca85'
blue = '#a277ff'
magenta = '#a277ff'
cyan = '#61ffca'
white = '#edecee'

# Bright colors
[colors.bright]
black = '#4d4d4d'
red = '#ff6767'
green = '#61ffca'
yellow = '#ffca85'
blue = '#a277ff'
magenta = '#a277ff'
cyan = '#61ffca'
white = '#edecee'

[colors.selection]
text = 'CellForeground'
background = '#29263c'

[colors.cursor]
cursor = '#a277ff'
35 changes: 0 additions & 35 deletions packages/alacritty/aura-theme.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/ports/alacritty/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export async function AlacrittyPort(Aura: AuraAPI) {
const { info } = constants

const portName = 'Alacritty terminal'
const version = '1.0.1'
const version = '1.1.0'
const previewURL = `https://github.com/${info.author.username}/assets/blob/master/images/${info.slug}/aura-alacritty-preview.png?raw=true`
const templateFolder = resolve(__dirname, 'templates')

await createPort({
template: resolve(templateFolder, `${info.slug}.yml`),
template: resolve(templateFolder, `${info.slug}.toml`),
replacements: {
...colorSchemes.dark,
...info,
Expand Down
15 changes: 11 additions & 4 deletions src/ports/alacritty/templates/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{{{ basic-heading }}}

# Installation
1. Open [{{ slug }}.yml](https://raw.githubusercontent.com/{{ author.username }}/{{ slug }}/main/packages/alacritty/{{ slug }}.yml) and save it in `~/.config/alacritty`
1. Open [{{ slug }}.toml](https://raw.githubusercontent.com/{{ author.username }}/{{ slug }}/main/packages/alacritty/{{ slug }}.toml) and save it in `~/.config/alacritty`
2. Edit the Alacritty config file by adding:
```yml
import:
- ~/.config/alacritty/{{ slug }}.yml
```toml
import = ["~/.config/alacritty/{{ slug }}.toml"]
```

{{{ done }}}
Expand All @@ -22,13 +21,21 @@
</a>
</p>
</td>
<td valign="bottom">
<p align="center">
<a href="https://github.com/MadJlzz">
<img src="https://github.com/madjlzz.png?size=100" align="center" />
</a>
</p>
</td>
</tr>
</thead>

<tbody>
<tr>
{{{ author-tbody }}}
<td><a href="https://github.com/joaopealves">João Pedro Alves</a></td>
<td><a href="https://github.com/MadJlzz">Julien Klaer</a></td>
</tr>
</tbody>
</table>
Expand Down
35 changes: 35 additions & 0 deletions src/ports/alacritty/templates/aura-theme.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Colors ({{ displayName }})

# Default colors
[colors.primary]
background = '{{ accent12 }}'
foreground = '{{ accent7 }}'

# Normal colors
[colors.normal]
black = '{{ accent21 }}'
red = '{{ accent5 }}'
green = '{{ accent2 }}'
yellow = '{{ accent3 }}'
blue = '{{ accent1 }}'
magenta = '{{ accent1 }}'
cyan = '{{ accent2 }}'
white = '{{ accent7 }}'

# Bright colors
[colors.bright]
black = '{{ accent15 }}'
red = '{{ accent5 }}'
green = '{{ accent2 }}'
yellow = '{{ accent3 }}'
blue = '{{ accent1 }}'
magenta = '{{ accent1 }}'
cyan = '{{ accent2 }}'
white = '{{ accent7 }}'

[colors.selection]
text = 'CellForeground'
background = '{{ accent38 }}'

[colors.cursor]
cursor = '{{ accent1 }}'
35 changes: 0 additions & 35 deletions src/ports/alacritty/templates/aura-theme.yml

This file was deleted.