Skip to content

Commit

Permalink
Pass size and position values to convert
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN authored Aug 21, 2024
1 parent 19acdaf commit 0ab9e41
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 23 deletions.
4 changes: 3 additions & 1 deletion modules/widgets/application-title-bar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ in
};
};
convert =
{ layout
{ position
, size
, layout
, windowControlButtons
, windowTitle
, overrideForMaximized
Expand Down
19 changes: 12 additions & 7 deletions modules/widgets/battery.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,18 @@ in {
};
};

convert = { showPercentage, settings }: {
name = "org.kde.plasma.battery";
config = lib.recursiveUpdate {
General = lib.filterAttrs (_: v: v != null) {
inherit showPercentage;
};
} settings;
convert =
{ position
, size
, showPercentage
, settings
}: {
name = "org.kde.plasma.battery";
config = lib.recursiveUpdate {
General = lib.filterAttrs (_: v: v != null) {
inherit showPercentage;
};
} settings;
};
};
}
4 changes: 3 additions & 1 deletion modules/widgets/digital-clock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ in
};

convert =
{ date
{ position
, size
, date
, time
, timeZone
, calendar
Expand Down
4 changes: 3 additions & 1 deletion modules/widgets/icon-tasks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ in
};
};
convert =
{ appearance
{ position
, size
, appearance
, behavior
, launchers
, settings
Expand Down
19 changes: 12 additions & 7 deletions modules/widgets/keyboard-layout.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,18 @@ in
};
};

convert = { displayStyle, settings }: {
name = "org.kde.plasma.keyboardlayout";
config = lib.recursiveUpdate {
General = lib.filterAttrs (_: v: v != null) {
inherit displayStyle;
};
} settings;
convert =
{ position
, size
, displayStyle
, settings
}: {
name = "org.kde.plasma.keyboardlayout";
config = lib.recursiveUpdate {
General = lib.filterAttrs (_: v: v != null) {
inherit displayStyle;
};
} settings;
};
};
}
4 changes: 3 additions & 1 deletion modules/widgets/kicker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ in
};
};
convert =
{ icon
{ position
, size
, icon
, customButtonImage
, applicationNameFormat
, behavior
Expand Down
4 changes: 3 additions & 1 deletion modules/widgets/kickerdash.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ in
};
};
convert =
{ icon
{ position
, size
, icon
, customButtonImage
, applicationNameFormat
, behavior
Expand Down
4 changes: 3 additions & 1 deletion modules/widgets/kickoff.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ in
};
};
convert =
{ icon
{ position
, size
, icon
, label
, sortAlphabetically
, compactDisplayStyle
Expand Down
4 changes: 3 additions & 1 deletion modules/widgets/plasma-panel-colorizer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,9 @@ in
};
};
convert =
{ general
{ position
, size
, general
, presetAutoLoading
, widgetBackground
, textAndIcons
Expand Down
4 changes: 3 additions & 1 deletion modules/widgets/system-monitor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ in
};

convert =
{ title
{ position
, size
, title
, showTitle
, showLegend
, displayStyle
Expand Down
4 changes: 3 additions & 1 deletion modules/widgets/system-tray.nix
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ in
});

convert =
{ pin
{ position
, size
, pin
, icons
, items
, settings
Expand Down

0 comments on commit 0ab9e41

Please sign in to comment.