Style new issue form

This commit is contained in:
Erik Kundt
2023-08-11 11:43:54 +02:00
parent d50f02f46b
commit ba019f652f
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -37,6 +37,7 @@ pub struct Colors {
pub context_color_fg: Color,
pub container_border_fg: Color,
pub container_border_focus_fg: Color,
pub input_placeholder_fg: Color,
}
#[derive(Debug, Clone)]
@@ -107,6 +108,7 @@ pub fn default_dark() -> Theme {
context_color_fg: Color::Cyan,
container_border_fg: COLOR_DEFAULT_DARKEST,
container_border_focus_fg: COLOR_DEFAULT_DARK,
input_placeholder_fg: COLOR_DEFAULT_DARK,
},
icons: Icons {
property_divider: '∙',
+2 -2
View File
@@ -250,7 +250,7 @@ impl WidgetComponent for CommentBody {
}
pub struct NewForm {
///
/// The issue this form writes its input values to.
_issue: Issue,
// This form's fields: title, tags, assignees, description.
inputs: Vec<Input>,
@@ -261,7 +261,7 @@ pub struct NewForm {
impl NewForm {
pub fn new(_context: &Context, theme: &Theme) -> Self {
let foreground = theme.colors.default_fg;
let placeholder_style = Style::default().fg(theme.colors.container_border_fg);
let placeholder_style = Style::default().fg(theme.colors.input_placeholder_fg);
let inactive_style = Style::default().fg(theme.colors.container_border_fg);
let borders = Borders::default()
.modifiers(BorderType::Rounded)