From 0eab121185b7818f1d6cd23b85cb726227faa54c Mon Sep 17 00:00:00 2001 From: ynqa Date: Sun, 1 Dec 2024 15:52:03 +0900 Subject: [PATCH] chore: rename example -> derive and change default style for prefix --- promkit-derive/examples/{example.rs => derive.rs} | 0 promkit-derive/src/text_editor.rs | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) rename promkit-derive/examples/{example.rs => derive.rs} (100%) diff --git a/promkit-derive/examples/example.rs b/promkit-derive/examples/derive.rs similarity index 100% rename from promkit-derive/examples/example.rs rename to promkit-derive/examples/derive.rs diff --git a/promkit-derive/src/text_editor.rs b/promkit-derive/src/text_editor.rs index b6ce759b..607b6f16 100644 --- a/promkit-derive/src/text_editor.rs +++ b/promkit-derive/src/text_editor.rs @@ -5,7 +5,11 @@ use syn::{parse::Error, punctuated::Punctuated, spanned::Spanned, Meta, MetaName pub fn create_state(attr: &syn::Attribute) -> Result { let mut prefix = quote! { String::from("❯❯ ") }; let mut prefix_style = quote! { - promkit::style::StyleBuilder::new().fgc(promkit::crossterm::style::Color::DarkGreen).build() + promkit::style::StyleBuilder::new().attrs( + promkit::crossterm::style::Attributes::from( + promkit::crossterm::style::Attribute::Bold, + ) + ).build() }; let mut active_char_style = quote! { promkit::style::StyleBuilder::new().bgc(promkit::crossterm::style::Color::DarkCyan).build()