Skip to content

Commit

Permalink
Add preset visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
melody-rs committed Nov 24, 2023
1 parent 6a0a0d8 commit 2da24de
Show file tree
Hide file tree
Showing 8 changed files with 680 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions crates/ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ itertools.workspace = true

anyhow.workspace = true

once_cell.workspace = true
ron.workspace = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
luminol-term = { version = "0.4.0", path = "../term/" }
154 changes: 154 additions & 0 deletions crates/ui/assets/preset_catppuccin_frappe.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
Visuals(
dark_mode: true,
override_text_color: Some(Color32((198, 208, 245, 255))),
widgets: Widgets(
noninteractive: WidgetVisuals(
bg_fill: Color32((48, 52, 70, 255)),
weak_bg_fill: Color32((48, 52, 70, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((131, 139, 167, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 1.0,
color: Color32((198, 208, 245, 255)),
),
expansion: 0.0,
),
inactive: WidgetVisuals(
bg_fill: Color32((65, 69, 89, 255)),
weak_bg_fill: Color32((65, 69, 89, 255)),
bg_stroke: Stroke(
width: 0.0,
color: Color32((131, 139, 167, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 1.0,
color: Color32((198, 208, 245, 255)),
),
expansion: 0.0,
),
hovered: WidgetVisuals(
bg_fill: Color32((98, 104, 128, 255)),
weak_bg_fill: Color32((98, 104, 128, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((131, 139, 167, 255)),
),
rounding: Rounding(
nw: 3.0,
ne: 3.0,
sw: 3.0,
se: 3.0,
),
fg_stroke: Stroke(
width: 1.5,
color: Color32((198, 208, 245, 255)),
),
expansion: 1.0,
),
active: WidgetVisuals(
bg_fill: Color32((81, 87, 109, 255)),
weak_bg_fill: Color32((81, 87, 109, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((131, 139, 167, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 2.0,
color: Color32((198, 208, 245, 255)),
),
expansion: 1.0,
),
open: WidgetVisuals(
bg_fill: Color32((65, 69, 89, 255)),
weak_bg_fill: Color32((65, 69, 89, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((131, 139, 167, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 1.0,
color: Color32((198, 208, 245, 255)),
),
expansion: 0.0,
),
),
selection: Selection(
bg_fill: Color32((65, 80, 115, 51)),
stroke: Stroke(
width: 1.0,
color: Color32((131, 139, 167, 255)),
),
),
hyperlink_color: Color32((242, 213, 207, 255)),
faint_bg_color: Color32((65, 69, 89, 255)),
extreme_bg_color: Color32((35, 38, 52, 255)),
code_bg_color: Color32((41, 44, 60, 255)),
warn_fg_color: Color32((239, 159, 118, 255)),
error_fg_color: Color32((234, 153, 156, 255)),
window_rounding: Rounding(
nw: 6.0,
ne: 6.0,
sw: 6.0,
se: 6.0,
),
window_shadow: Shadow(
extrusion: 32.0,
color: Color32((48, 52, 70, 255)),
),
window_fill: Color32((48, 52, 70, 255)),
window_stroke: Stroke(
width: 1.0,
color: Color32((131, 139, 167, 255)),
),
menu_rounding: Rounding(
nw: 6.0,
ne: 6.0,
sw: 6.0,
se: 6.0,
),
panel_fill: Color32((48, 52, 70, 255)),
popup_shadow: Shadow(
extrusion: 16.0,
color: Color32((48, 52, 70, 255)),
),
resize_corner_size: 12.0,
text_cursor: Stroke(
width: 2.0,
color: Color32((192, 222, 255, 255)),
),
text_cursor_preview: false,
clip_rect_margin: 3.0,
button_frame: true,
collapsing_header_frame: false,
indent_has_left_vline: true,
striped: false,
slider_trailing_fill: false,
interact_cursor: None,
image_loading_spinners: true,
)
154 changes: 154 additions & 0 deletions crates/ui/assets/preset_catppuccin_latte.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
Visuals(
dark_mode: false,
override_text_color: Some(Color32((76, 79, 105, 255))),
widgets: Widgets(
noninteractive: WidgetVisuals(
bg_fill: Color32((239, 241, 245, 255)),
weak_bg_fill: Color32((239, 241, 245, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((140, 143, 161, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 1.0,
color: Color32((76, 79, 105, 255)),
),
expansion: 0.0,
),
inactive: WidgetVisuals(
bg_fill: Color32((204, 208, 218, 255)),
weak_bg_fill: Color32((204, 208, 218, 255)),
bg_stroke: Stroke(
width: 0.0,
color: Color32((140, 143, 161, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 1.0,
color: Color32((76, 79, 105, 255)),
),
expansion: 0.0,
),
hovered: WidgetVisuals(
bg_fill: Color32((172, 176, 190, 255)),
weak_bg_fill: Color32((172, 176, 190, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((140, 143, 161, 255)),
),
rounding: Rounding(
nw: 3.0,
ne: 3.0,
sw: 3.0,
se: 3.0,
),
fg_stroke: Stroke(
width: 1.5,
color: Color32((76, 79, 105, 255)),
),
expansion: 1.0,
),
active: WidgetVisuals(
bg_fill: Color32((188, 192, 204, 255)),
weak_bg_fill: Color32((188, 192, 204, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((140, 143, 161, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 2.0,
color: Color32((76, 79, 105, 255)),
),
expansion: 1.0,
),
open: WidgetVisuals(
bg_fill: Color32((204, 208, 218, 255)),
weak_bg_fill: Color32((204, 208, 218, 255)),
bg_stroke: Stroke(
width: 1.0,
color: Color32((140, 143, 161, 255)),
),
rounding: Rounding(
nw: 2.0,
ne: 2.0,
sw: 2.0,
se: 2.0,
),
fg_stroke: Stroke(
width: 1.0,
color: Color32((76, 79, 105, 255)),
),
expansion: 0.0,
),
),
selection: Selection(
bg_fill: Color32((16, 65, 163, 102)),
stroke: Stroke(
width: 1.0,
color: Color32((140, 143, 161, 255)),
),
),
hyperlink_color: Color32((220, 138, 120, 255)),
faint_bg_color: Color32((204, 208, 218, 255)),
extreme_bg_color: Color32((220, 224, 232, 255)),
code_bg_color: Color32((230, 233, 239, 255)),
warn_fg_color: Color32((254, 100, 11, 255)),
error_fg_color: Color32((230, 69, 83, 255)),
window_rounding: Rounding(
nw: 6.0,
ne: 6.0,
sw: 6.0,
se: 6.0,
),
window_shadow: Shadow(
extrusion: 32.0,
color: Color32((239, 241, 245, 255)),
),
window_fill: Color32((239, 241, 245, 255)),
window_stroke: Stroke(
width: 1.0,
color: Color32((140, 143, 161, 255)),
),
menu_rounding: Rounding(
nw: 6.0,
ne: 6.0,
sw: 6.0,
se: 6.0,
),
panel_fill: Color32((239, 241, 245, 255)),
popup_shadow: Shadow(
extrusion: 16.0,
color: Color32((239, 241, 245, 255)),
),
resize_corner_size: 12.0,
text_cursor: Stroke(
width: 2.0,
color: Color32((0, 83, 125, 255)),
),
text_cursor_preview: false,
clip_rect_margin: 3.0,
button_frame: true,
collapsing_header_frame: false,
indent_has_left_vline: true,
striped: false,
slider_trailing_fill: false,
interact_cursor: None,
image_loading_spinners: true,
)
Loading

0 comments on commit 2da24de

Please sign in to comment.