<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2026, Jiri Eischmann <jiri@eischmann.cz> and the meshy contributors -->
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<schemalist gettext-domain="meshy">
  <schema id="page.codeberg.sesivany.Meshy" path="/page/codeberg/sesivany/Meshy/">
    <key name="window-width" type="i">
      <default>800</default>
      <summary>Window width</summary>
    </key>
    <key name="window-height" type="i">
      <default>600</default>
      <summary>Window height</summary>
    </key>
    <key name="window-maximized" type="b">
      <default>false</default>
      <summary>Window maximized</summary>
    </key>
    <key name="last-device-address" type="s">
      <default>''</default>
      <summary>Last connected device address</summary>
    </key>
    <key name="last-device-name" type="s">
      <default>''</default>
      <summary>Last connected device name</summary>
    </key>
    <key name="last-transport" type="s">
      <default>'ble'</default>
      <summary>Last transport type (ble, usb or tcp)</summary>
    </key>
    <key name="tcp-companions" type="as">
      <default>[]</default>
      <summary>Saved TCP/WiFi companions (name|host:port)</summary>
    </key>
    <key name="ble-paired-devices" type="as">
      <default>[]</default>
      <summary>Paired BLE device UUIDs (macOS)</summary>
      <description>List of peripheral UUIDs that have been successfully paired</description>
    </key>
    <key name="color-scheme" type="s">
      <default>'system'</default>
      <summary>Color scheme preference</summary>
      <description>Options: system, light, dark, custom</description>
    </key>
    <key name="custom-theme" type="s">
      <default>'meshcore'</default>
      <summary>Custom theme name</summary>
    </key>
    <key name="default-channel-notification-level" type="i">
      <default>0</default>
      <summary>Default channel notification level</summary>
      <description>0=All, 1=Mentions, 2=None</description>
    </key>
    <key name="run-in-background" type="b">
      <default>true</default>
      <summary>Run in background</summary>
      <description>Keep running after closing the window to receive messages</description>
    </key>
    <key name="autostart" type="b">
      <default>true</default>
      <summary>Autostart</summary>
      <description>Automatically start when you log in</description>
    </key>
    <key name="contact-sort" type="s">
      <default>'heard'</default>
      <summary>Contact list sort order</summary>
      <description>Options: heard, messages, az</description>
    </key>
    <key name="contact-favorites-first" type="b">
      <default>true</default>
      <summary>Show favorite contacts first</summary>
    </key>
    <key name="channel-sort" type="s">
      <default>'messages'</default>
      <summary>Channel list sort order</summary>
      <description>Options: messages, az</description>
    </key>
    <key name="custom-tile-url" type="s">
      <default>''</default>
      <summary>Custom map tile URL</summary>
      <description>Raster tile URL with {z}/{x}/{y} placeholders, or vector style JSON URL. Empty = use default.</description>
    </key>
    <key name="custom-tile-type" type="s">
      <default>''</default>
      <summary>Custom tile source type</summary>
      <description>Either 'raster' or 'vector'. Empty = use default OFM.</description>
    </key>
    <key name="auto-backup" type="b">
      <default>true</default>
      <summary>Automatic backup</summary>
      <description>Create daily automatic backups of device data, kept for 7 days</description>
    </key>
    <key name="default-routing-mode" type="s">
      <default>'classic'</default>
      <summary>Default routing mode</summary>
      <description>Options: classic, smart</description>
    </key>
    <key name="auto-backup-sections" type="as">
      <default>['device_settings', 'contacts', 'channels', 'messages', 'regions', 'discovered_contacts', 'path_history', 'local_settings']</default>
      <summary>Auto-backup sections</summary>
      <description>Which data sections to include in automatic backups</description>
    </key>
  </schema>
</schemalist>
