Skip to content

Commit

Permalink
Nix/HM module: add input-field:fade_timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Mar 6, 2024
1 parent c731933 commit 907d27e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nix/hm-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ in {
default = true;
};

fade_timeout = mkOption {
description = "Milliseconds before the input field should be faded (0 to fade immediately)";
type = int;
default = 1000;
};

placeholder_text = mkOption {
description = "The placeholder text of the input field";
type = str;
Expand Down Expand Up @@ -367,6 +373,7 @@ in {
inner_color = ${input-field.inner_color}
font_color = ${input-field.font_color}
fade_on_empty = ${boolToString input-field.fade_on_empty}
fade_timeout = ${toString input-field.fade_timeout}
placeholder_text = ${input-field.placeholder_text}
hide_input = ${boolToString input-field.hide_input}
rounding = ${toString input-field.rounding}
Expand Down

0 comments on commit 907d27e

Please sign in to comment.