Skip to content

Commit

Permalink
chore: rename example -> derive and change default style for prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Dec 1, 2024
1 parent 2ad189f commit fd4e9c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
File renamed without changes.
6 changes: 5 additions & 1 deletion promkit-derive/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ use syn::{parse::Error, punctuated::Punctuated, spanned::Spanned, Meta, MetaName
pub fn create_state(attr: &syn::Attribute) -> Result<TokenStream, Error> {
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()
Expand Down

0 comments on commit fd4e9c4

Please sign in to comment.