Rename sixtyfps-viewer -> slint-viewer

This commit is contained in:
Olivier Goffart 2022-02-02 13:17:29 +01:00
parent 8f3d378d2d
commit 69908a32b6
14 changed files with 32 additions and 32 deletions

View file

@ -1,12 +1,12 @@
# SixtyFPS Bash example
This shows how to use [`sixtyfps-viewer`](../../tools/viewer) to display dialog from a bash script.
This shows how to use [`slint-viewer`](../../tools/viewer) to display dialog from a bash script.
This assume that the `sixtyfps-viewer` tool is in patch. This can be achieved with cargo install.
This assume that the `slint-viewer` tool is in patch. This can be achieved with cargo install.
(use the `--path tools/viewer` option to install it from the current repository.)
```bash
cargo install sixtyfps-viewer
cargo install slint-viewer
```
The examples also assume that [`jq`](https://stedolan.github.io/jq/) is in the path

View file

@ -2,7 +2,7 @@
# Copyright © SixtyFPS GmbH <info@sixtyfps.io>
# SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
OUTPUT=$(sixtyfps-viewer - --save-data - << EOF
OUTPUT=$(slint-viewer - --save-data - << EOF
import { StandardButton, GridBox, LineEdit } from "std-widgets.slint";
_ := Dialog {
property name <=> name-le.text;

View file

@ -19,7 +19,7 @@ swap_total_kb=`sed -n -e "s,SwapTotal:\s\+\(.*\)\s\+.\+,\1,p"< /proc/meminfo`
swap_free_kb=`sed -n -e "s,SwapFree:\s\+\(.*\)\s\+.\+,\1,p"< /proc/meminfo`
swap_used_kb=$((swap_total_kb - swap_free_kb))
sixtyfps-viewer `dirname $0`/sysinfo.60 --load-data - <<EOT
slint-viewer `dirname $0`/sysinfo.60 --load-data - <<EOT
{
"os_name": "$os_name",
"uptime": "$uptime",

View file

@ -22,7 +22,7 @@ swap_free_mb=`sysctl -n vm.swapusage | sed -n -e 's,.*free = \(.*\)\..*M.*$,\1,p
swap_free_kb=$((swap_free_mb * 1024))
partitions=`df -lk | tail -n+2 | sed 's/\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*.*\)/{ "dev": "\1", "mnt": "\9", "total": \2, "free": \4 },/' | sed '$s/,$//'`
sixtyfps-viewer `dirname $0`/sysinfo.60 --load-data - <<EOT
slint-viewer `dirname $0`/sysinfo.60 --load-data - <<EOT
{
"os_name": "$os_name",
"uptime": "$uptime",