Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Style new issue form
Erik Kundt committed 2 years ago
commit ba019f652f18aa5b41278488e863ff014426580f
parent d50f02f46bf9da530f01a92fd086add3e7511dfb
2 files changed +4 -2
modified src/ui/theme.rs
@@ -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: '∙',
modified src/ui/widget/issue.rs
@@ -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)