mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-02 01:40:33 +08:00
Style new issue form
This commit is contained in:
@@ -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: '∙',
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user