@gtkx/cli 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "CLI for GTKX - create and develop GTK4 React applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtk",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"ejs": "^3.1.10",
|
|
55
55
|
"react-refresh": "^0.18.0",
|
|
56
56
|
"vite": "^7.3.0",
|
|
57
|
-
"@gtkx/ffi": "0.10.
|
|
58
|
-
"@gtkx/react": "0.10.
|
|
57
|
+
"@gtkx/ffi": "0.10.2",
|
|
58
|
+
"@gtkx/react": "0.10.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/ejs": "^3.1.5",
|
|
@@ -267,35 +267,33 @@ export const App = () => {
|
|
|
267
267
|
|
|
268
268
|
return (
|
|
269
269
|
<AdwApplicationWindow title="My App" defaultWidth={800} defaultHeight={600} onCloseRequest={quit}>
|
|
270
|
-
<
|
|
271
|
-
<
|
|
272
|
-
<
|
|
273
|
-
<AdwHeaderBar>
|
|
274
|
-
<
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
270
|
+
<AdwToolbarView>
|
|
271
|
+
<Toolbar.Top>
|
|
272
|
+
<AdwHeaderBar>
|
|
273
|
+
<Slot for={AdwHeaderBar} id="titleWidget">
|
|
274
|
+
<AdwWindowTitle title="My App" subtitle="Welcome" />
|
|
275
|
+
</Slot>
|
|
276
|
+
</AdwHeaderBar>
|
|
277
|
+
</Toolbar.Top>
|
|
278
|
+
<AdwBanner
|
|
279
|
+
title="Welcome to the app!"
|
|
280
|
+
buttonLabel="Dismiss"
|
|
281
|
+
revealed={showBanner}
|
|
282
|
+
onButtonClicked={() => setShowBanner(false)}
|
|
283
|
+
/>
|
|
284
|
+
<AdwStatusPage
|
|
285
|
+
iconName="applications-system-symbolic"
|
|
286
|
+
title="Welcome"
|
|
287
|
+
description="Get started with your new GTKX app"
|
|
288
|
+
vexpand
|
|
289
|
+
>
|
|
290
|
+
<GtkButton
|
|
291
|
+
label="Get Started"
|
|
292
|
+
cssClasses={["suggested-action", "pill"]}
|
|
293
|
+
halign={Gtk.Align.CENTER}
|
|
284
294
|
/>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
title="Welcome"
|
|
288
|
-
description="Get started with your new GTKX app"
|
|
289
|
-
vexpand
|
|
290
|
-
>
|
|
291
|
-
<GtkButton
|
|
292
|
-
label="Get Started"
|
|
293
|
-
cssClasses={["suggested-action", "pill"]}
|
|
294
|
-
halign={Gtk.Align.CENTER}
|
|
295
|
-
/>
|
|
296
|
-
</AdwStatusPage>
|
|
297
|
-
</AdwToolbarView>
|
|
298
|
-
</Slot>
|
|
295
|
+
</AdwStatusPage>
|
|
296
|
+
</AdwToolbarView>
|
|
299
297
|
</AdwApplicationWindow>
|
|
300
298
|
);
|
|
301
299
|
};
|
|
@@ -279,12 +279,10 @@ Modern app layout with top/bottom bars:
|
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
### AdwApplicationWindow
|
|
282
|
-
Modern window
|
|
282
|
+
Modern application window:
|
|
283
283
|
```tsx
|
|
284
284
|
<AdwApplicationWindow title="My App" defaultWidth={800} defaultHeight={600} onCloseRequest={quit}>
|
|
285
|
-
<
|
|
286
|
-
<AdwToolbarView>...</AdwToolbarView>
|
|
287
|
-
</Slot>
|
|
285
|
+
<AdwToolbarView>...</AdwToolbarView>
|
|
288
286
|
</AdwApplicationWindow>
|
|
289
287
|
```
|
|
290
288
|
|
|
@@ -372,13 +372,11 @@ Nested submenu.
|
|
|
372
372
|
Import from `@gtkx/ffi/adw` for enums and `@gtkx/react` for components.
|
|
373
373
|
|
|
374
374
|
### AdwApplicationWindow
|
|
375
|
-
Modern application window
|
|
375
|
+
Modern application window.
|
|
376
376
|
|
|
377
377
|
```tsx
|
|
378
378
|
<AdwApplicationWindow title="App" defaultWidth={800} defaultHeight={600} onCloseRequest={quit}>
|
|
379
|
-
<
|
|
380
|
-
<AdwToolbarView>...</AdwToolbarView>
|
|
381
|
-
</Slot>
|
|
379
|
+
<AdwToolbarView>...</AdwToolbarView>
|
|
382
380
|
</AdwApplicationWindow>
|
|
383
381
|
```
|
|
384
382
|
|