Skip to content

Commit

Permalink
Flakehub CI, config, bumped ratatui to 0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Oct 24, 2023
1 parent e145602 commit ab59861
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: "Publish tags to FlakeHub"
name: Publish to FlakeHub

on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"

workflow_dispatch:
inputs:
tag:
Expand All @@ -13,14 +15,18 @@ on:
jobs:
flakehub-publish:
runs-on: "ubuntu-latest"

permissions:
id-token: "write"
contents: "read"

steps:
- uses: "actions/checkout@v3"
with:
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"

- uses: "DeterminateSystems/nix-installer-action@main"

- uses: "DeterminateSystems/flakehub-push@main"
with:
visibility: "public"
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["command-line-utilities"]

[dependencies]
crossterm = "0.27.0"
tui = { package = "ratatui", version = "0.23.1-alpha.6", default-features = false, features = [ "crossterm", "serde" ] }
tui = { package = "ratatui", version = "0.24.0", default-features = false, features = [ "crossterm", "serde" ] }
tokio = { version = "1.33.0", features = [ "rt", "macros", "rt-multi-thread", "fs" ] }
clap = { version = "4.4.6", features = [ "derive", "cargo" ] }
serde = { version = "1.0.189", features = [ "derive" ] }
Expand Down
1 change: 1 addition & 0 deletions book/src/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ The how-to of getting this application up and running.

- [Installation](installation.md)
- [Configuration](configuration.md)
- [Flake](flake.md)
16 changes: 16 additions & 0 deletions book/src/guide/flake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Usage as a flake

[![FlakeHub](https://img.shields.io/endpoint?url=https://flakehub.com/f/Xithrius/twitch-tui/badge)](https://flakehub.com/flake/Xithrius/twitch-tui)

Add twitch-tui to your `flake.nix`:

```nix
{
inputs.twitch-tui.url = "https://flakehub.com/f/Xithrius/twitch-tui/*.tar.gz";
outputs = { self, twitch-tui }: {
# Use in your outputs
};
}
```
9 changes: 0 additions & 9 deletions src/utils/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pub const BORDER_NAME_DARK: Style = Style {
bg: None,
add_modifier: Modifier::empty(),
sub_modifier: Modifier::empty(),
underline_color: None,
};

#[allow(dead_code)]
Expand All @@ -15,60 +14,52 @@ pub const BORDER_NAME_LIGHT: Style = Style {
bg: None,
add_modifier: Modifier::empty(),
sub_modifier: Modifier::empty(),
underline_color: None,
};

pub const DATETIME_DARK: Style = Style {
fg: Some(Color::Rgb(173, 173, 184)),
bg: None,
add_modifier: Modifier::empty(),
sub_modifier: Modifier::empty(),
underline_color: None,
};

pub const DATETIME_LIGHT: Style = Style {
fg: Some(Color::Rgb(83, 83, 95)),
bg: None,
add_modifier: Modifier::empty(),
sub_modifier: Modifier::empty(),
underline_color: None,
};

pub const HIGHLIGHT_NAME_DARK: Style = Style {
fg: Some(Color::Black),
bg: Some(Color::White),
add_modifier: Modifier::BOLD,
sub_modifier: Modifier::empty(),
underline_color: None,
};
pub const HIGHLIGHT_NAME_LIGHT: Style = Style {
fg: Some(Color::White),
bg: Some(Color::Black),
add_modifier: Modifier::BOLD,
sub_modifier: Modifier::empty(),
underline_color: None,
};

pub const COLUMN_TITLE: Style = Style {
fg: Some(Color::LightCyan),
bg: None,
add_modifier: Modifier::BOLD,
sub_modifier: Modifier::empty(),
underline_color: None,
};

pub const SYSTEM_CHAT: Style = Style {
fg: Some(Color::Red),
bg: None,
add_modifier: Modifier::BOLD,
sub_modifier: Modifier::empty(),
underline_color: None,
};

pub const DASHBOARD_TITLE_COLOR: Style = Style {
fg: Some(Color::Rgb(135, 120, 165)),
bg: None,
add_modifier: Modifier::empty(),
sub_modifier: Modifier::empty(),
underline_color: None,
};

0 comments on commit ab59861

Please sign in to comment.