Rework the settings app around hub pages (home, network, displays, input, apps, privacy, system) with a redesigned sidebar, shared nav state, and new hub view components. Alongside the redesign: validate webview inputs into root commands (users, firewall, snapshots, wifi), fix set_charge_threshold writing the percentage via tee stdin, prevent streaming installs from hanging on inherited stdin, add frontend type fixes, sync versions to 0.8.2, and clean up clippy/svelte-check warnings.
29 lines
848 B
Svelte
29 lines
848 B
Svelte
<script lang="ts">
|
|
import { invoke } from "@tauri-apps/api/core";
|
|
import ViewScaffold from "$lib/components/ViewScaffold.svelte";
|
|
import Group from "$lib/components/Group.svelte";
|
|
import Hint from "$lib/components/Hint.svelte";
|
|
</script>
|
|
|
|
<ViewScaffold title="Monitors">
|
|
<Group
|
|
title="Two different jobs"
|
|
hint="Live arrange, mirror, and named profiles."
|
|
>
|
|
<Hint text="Layout tab is the login config. This opens the live TUI." />
|
|
<button class="primary" onclick={() => invoke("open_breadmon")}>Open breadmon</button>
|
|
</Group>
|
|
</ViewScaffold>
|
|
|
|
<style>
|
|
.primary {
|
|
align-self: flex-start;
|
|
margin-top: var(--space-sm, 8px);
|
|
background-color: var(--accent);
|
|
color: var(--on-accent);
|
|
border: none;
|
|
border-radius: var(--radius-primary, 8px);
|
|
padding: var(--space-sm, 8px) var(--space-lg, 16px);
|
|
cursor: pointer;
|
|
}
|
|
</style>
|