2024-09-12 13:07:34 -10:00
|
|
|
# Examples
|
2023-09-13 16:33:53 +02:00
|
|
|
|
2024-09-19 01:11:24 -10:00
|
|
|
## `applet`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to create an applet.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run applet
|
|
|
|
|
```
|
|
|
|
|
|
2023-09-13 16:33:53 +02:00
|
|
|
## `application`
|
|
|
|
|
|
|
|
|
|
Start here as a template for creating an application with libcosmic's application API.
|
|
|
|
|
|
|
|
|
|
```sh
|
2024-09-12 13:07:34 -10:00
|
|
|
just run application
|
2023-09-13 16:33:53 +02:00
|
|
|
```
|
|
|
|
|
|
2024-09-19 01:11:24 -10:00
|
|
|
## `calendar`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to use the calendar widget.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run calendar
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## `config`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to use the configuration system. There is no GUI in this
|
|
|
|
|
example.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run config
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## `context-menu`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to use the context menu widget.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run context-menu
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## `image-button`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to use the image-button widget.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run image-button
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## `menu`
|
|
|
|
|
|
|
|
|
|
Demonstrates how use the menu widget.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run menu
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## `multi-window`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to open multiple windows.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run multi-window
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## `nav-context`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to use the navigation bar widget.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run nav-context
|
|
|
|
|
```
|
|
|
|
|
|
2023-09-13 16:33:53 +02:00
|
|
|
## `open-dialog`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to create an open file dialog
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run open-dialog
|
2024-09-12 13:07:34 -10:00
|
|
|
```
|
2024-09-19 01:11:24 -10:00
|
|
|
|
|
|
|
|
## `text-input`
|
|
|
|
|
|
|
|
|
|
Demonstrates how to use the text input widgets.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
just run text-input
|
|
|
|
|
```
|