Skip to content

Commit

Permalink
Extracted palettes into a seperate crate and added it as a dep
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBloom committed Jan 16, 2024
1 parent 9c274e2 commit dc16b57
Show file tree
Hide file tree
Showing 74 changed files with 3 additions and 1,334 deletions.
74 changes: 1 addition & 73 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,80 +3,8 @@ name = "webatui"
version = "0.1.0"
edition = "2021"

[features]
apprentice = []
atelier = []
atlas = []
black_metal = []
brogrammer = []
brush_trees = []
circus = []
classic = []
codeschool = []
colors = []
cupertino = []
danqing = []
darcula = []
darkviolet = []
dracula = []
equilibrium = []
espresso = []
eva = []
framer = []
fruit_soda = []
gigavolt = []
github = []
gruvbox = []
hardcore = []
heetch = []
helios = []
horizon = []
humanoid = []
ia = []
icy = []
kimber = []
materia = []
material_theme = []
material_vivid = []
mellow = []
mexico_light = []
nebula = []
nord = []
nova = []
one_light = []
onedark = []
outrun = []
papercolor = []
pasque = []
pinky = []
porple = []
purpledream = []
qualia = []
rebecca = []
rose_pine = []
sagelight = []
sakura = []
sandcastle = []
shades_of_purple = []
silk = []
snazzy = []
solarflare = []
solarized = []
summercamp = []
summerfruit = []
synth_midnight = []
tender = []
twilight = []
unikitty = []
vice = []
windows = []
woodland = []
xcode_dust = []
zenburn = []

[dependencies]
base16-palettes = "0.1.0"
ratatui = { version = "0.25", default-features = false }
web-sys = { version = "0.3", features = ["Window", "Screen", "TouchEvent", "TouchList", "Touch"] }
yew = { version = "0.21", features = ["csr"] }
hex-literal = "0.4.1"
enum_dispatch = "0.3"
3 changes: 1 addition & 2 deletions src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// - Improve the calculations for the character grid.

Check failure on line 2 in src/backend.rs

View workflow job for this annotation

GitHub Actions / Formatting Checks

Diff in /home/runner/work/webatui/webatui/src/backend.rs
// - Explicit set font size, margins, etc (we can't rely on the user defining CSS for us)

use base16_palettes::{Palette, Base16Palette, Base16Color};
use ratatui::{
buffer::Cell,
prelude::{Backend, Rect},
Expand All @@ -11,8 +12,6 @@ use std::{borrow::Cow, io::Result};
use web_sys::{wasm_bindgen::JsValue, MouseEvent};
use yew::{html, Callback, Html};

use crate::palette::{Palette, Base16Palette, Base16Color};

/// The backend used to render text to HTML.
/// The backend used to take ratatui widgets and render them into HTML. This is achieved through a
/// three-step rendering process.
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use std::{cell::RefCell, cmp::Ordering, rc::Rc};

use backend::{DehydratedSpan, YewBackend};
use prelude::palette::Palette;
use base16_palettes::Palette;
use ratatui::{prelude::Rect, Frame, Terminal};
use touch_scroll::TouchScroll;
use web_sys::{
Expand All @@ -18,7 +18,6 @@ use web_sys::{
use yew::{Component, Context, Properties};

pub mod backend;
pub mod palette;
pub mod prelude;
mod touch_scroll;

Expand Down
29 changes: 0 additions & 29 deletions src/palette/apprentice.rs

This file was deleted.

Loading

0 comments on commit dc16b57

Please sign in to comment.