Skip to content

Commit

Permalink
support panel floating
Browse files Browse the repository at this point in the history
  • Loading branch information
mlyxshi authored Feb 29, 2024
1 parent 74fa336 commit 61e53de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/panels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ let
example = "autohide";
description = "The hiding mode of the panel.";
};
floating = lib.mkEnableOption "enable or disable floating style";
widgets = lib.mkOption {
type = with lib.types; listOf (either str widgetType);
default = [
Expand Down Expand Up @@ -143,6 +144,7 @@ let
var panel = new Panel;
panel.height = ${builtins.toString panel.height}
panel.floating = ${lib.boolToString panel.floating}
var panelWidgets = {}
${if panel.alignment != null then "panel.alignment = \"${panel.alignment}\"" else ""}
${if panel.hiding != null then "panel.hiding = \"${panel.hiding}\"" else ""}
Expand Down

0 comments on commit 61e53de

Please sign in to comment.