Skip to content

Commit

Permalink
fix(alacritty): following proper way of updating a port
Browse files Browse the repository at this point in the history
  • Loading branch information
MadJlzz committed May 17, 2024
1 parent 35c22b3 commit 65f8feb
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 100 deletions.
10 changes: 9 additions & 1 deletion 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 Down Expand Up @@ -50,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
53 changes: 30 additions & 23 deletions packages/alacritty/aura-theme.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
foreground = "#edecee"
# Colors (Aura Theme)

[colors.cursor]
cursor = "#a277ff"

[colors.selection]
text = "CellForeground"
background = "#29263c"
# 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"
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"
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.

0 comments on commit 65f8feb

Please sign in to comment.