Skip to content

Commit 0ae469d

Browse files
component
1 parent 537a1e7 commit 0ae469d

1 file changed

Lines changed: 21 additions & 27 deletions

File tree

index.ts

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,63 +58,57 @@ const plugin: Plugin = (async (ctx) => {
5858
template: {
5959
type: "box",
6060
direction: "column",
61-
border: ["top", "bottom", "left", "right"],
62-
borderStyle: "rounded",
61+
border: ["left"],
62+
borderStyle: "heavy",
6363
borderColor: "accent",
64-
bg: "#1a1a2e",
64+
bg: "backgroundPanel",
6565
paddingX: 2,
66-
paddingY: 1,
66+
paddingY: 0,
67+
minWidth: 60,
68+
alignSelf: "center",
6769
gap: 1,
6870
children: [
6971
{
7072
type: "box",
7173
direction: "row",
7274
gap: 1,
7375
children: [
74-
{ type: "text", content: "📦", fg: "accent" },
7576
{
7677
type: "text",
77-
content: "DCP — Select files to prune",
78-
fg: "accent",
78+
content: "Select files to prune",
79+
fg: "text",
7980
bold: true,
8081
},
8182
],
8283
},
83-
{
84-
type: "text",
85-
content: "─────────────────────────────────",
86-
fg: "textMuted",
87-
},
8884
{
8985
type: "checklist",
9086
items: "{{items}}",
91-
fg: "text",
92-
fgChecked: "#2ecc71",
93-
onToggle: "item-toggled",
94-
},
95-
{
96-
type: "text",
97-
content: "─────────────────────────────────",
9887
fg: "textMuted",
88+
fgChecked: "text",
89+
bgChecked: "backgroundElement",
90+
borderColorChecked: "accent",
91+
onToggle: "item-toggled",
9992
},
10093
{
10194
type: "box",
10295
direction: "row",
10396
gap: 2,
97+
justifyContent: "flex-end",
10498
children: [
10599
{
106100
type: "confirm-button",
107-
label: " ✓ Confirm Prune ",
108-
fg: "#1a1a2e",
109-
bg: "#2ecc71",
110-
onConfirm: "confirm-prune",
101+
label: " Cancel ",
102+
fg: "textMuted",
103+
bg: "backgroundPanel",
104+
onConfirm: "cancel-prune",
111105
},
112106
{
113107
type: "confirm-button",
114-
label: " ✗ Cancel ",
115-
fg: "text",
116-
bg: "#e94560",
117-
onConfirm: "cancel-prune",
108+
label: " Confirm ",
109+
fg: "background",
110+
bg: "accent",
111+
onConfirm: "confirm-prune",
118112
},
119113
],
120114
},

0 commit comments

Comments
 (0)