<?xml version="1.0" encoding="UTF-8"?>

<!--
/* Copyright (C) 2009-2022 Jerry Casiano
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.
 *
 * If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
*/
-->

<schemalist>

    <enum id="org.gnome.FontManager.Mode">
        <value nick="Manage" value="0" />
        <value nick="Browse" value="1" />
        <value nick="Compare" value="2" />
    </enum>

    <enum id="org.gnome.FontManager.FontPreviewMode">
        <value nick="preview" value="0" />
        <value nick="waterfall" value="1" />
        <value nick="lorem-ipsum" value="2" />
    </enum>

    <enum id="org.gnome.FontManager.SideBarMode">
        <value nick="Category" value="0" />
        <value nick="Collection" value="1" />
    </enum>

    <enum id="org.gnome.FontManager.BrowseMode">
        <value nick="List" value="0" />
        <value nick="Grid" value="1" />
    </enum>

    <enum id="org.gnome.FontManager.TitleButtonStyle">
        <value nick="Normal" value="0" />
        <value nick="Flat" value="1" />
    </enum>

    <enum id="org.gnome.FontManager.GoogleFonts.PreviewMode">
        <value nick="waterfall" value="0" />
        <value nick="lorem-ipsum" value="1" />
    </enum>

    <enum id="org.gnome.FontManager.Waterfall.PredefinedSize">
        <value nick="48 Points Linear" value="0" />
        <value nick="72 Points 1.1 Ratio" value="1" />
        <value nick="96 Points Linear" value="2" />
        <value nick="96 Points 1.1 Ratio" value="3" />
        <value nick="120 Points 1.2 Ratio" value="4" />
        <value nick="144 Points 1.3 Ratio" value="5" />
        <value nick="192 Points 1.4 Ratio" value="6" />
        <value nick="Custom" value="7" />
    </enum>

    <schema id="org.gnome.FontManager" path="/org/gnome/font-manager/">

        <key name="mode" enum="org.gnome.FontManager.Mode">
            <default>"Manage"</default>
            <summary>Mode</summary>
            <description>Possible modes are Manage, Browse and Compare.</description>
        </key>

        <key name="wide-layout" type="b">
            <default>true</default>
            <summary>Layout type</summary>
            <description>false for default layout, true for 3 column layout</description>
        </key>

        <key name="wide-layout-on-maximize" type="b">
            <default>true</default>
            <summary>Layout type</summary>
            <description>Switch to wide layout when window is maximized</description>
        </key>

        <key name="use-csd" type="b">
            <default>true</default>
            <summary>Use CSD</summary>
            <description>false to disable Client Side Decorations</description>
        </key>

        <key name="enable-animations" type="b">
            <default>true</default>
            <summary>Enable Animations</summary>
            <description>false to disable GTK+ animations</description>
        </key>

        <key name="prefer-dark-theme" type="b">
            <default>false</default>
            <summary>Use dark theme variant if available</summary>
            <description>Whether the application prefers to use a dark theme</description>
        </key>

        <key name="title-button-style" enum="org.gnome.FontManager.TitleButtonStyle">
            <default>"Normal"</default>
            <summary>Titlebar button style</summary>
            <description>Possible modes are Normal and Flat.</description>
        </key>

        <key name="window-position" type="(ii)">
            <summary>Window position</summary>
            <description>On screen position of the main window. (x, y)</description>
            <default>(-1, -1)</default>
        </key>

        <key name="window-size" type="(ii)">
            <summary>Window size</summary>
            <description>Width and height of the main window.</description>
            <default>(900, 600)</default>
        </key>

        <key name="is-maximized" type="b">
            <default>false</default>
            <summary>Window state</summary>
            <description>Whether window is maximized</description>
        </key>

        <key name="sidebar-size" type="i">
            <summary>Sidebar size</summary>
            <description>Size of the sidebar in pixels.</description>
            <default>275</default>
        </key>

        <key name="sidebar-mode" enum="org.gnome.FontManager.SideBarMode">
            <summary>Sidebar Mode</summary>
            <description>Possible modes are Category and Collection.</description>
            <default>"Category"</default>
        </key>

        <key name="content-pane-position" type="i">
            <summary>Content area size</summary>
            <description>Position of the content pane.</description>
            <default>240</default>
        </key>

        <key name="preview-font-size" type="d">
            <range min="6.0" max="96.0"/>
            <summary>Preview font size</summary>
            <description>Size point to use in the preview area.</description>
            <default>10.0</default>
        </key>

        <key name="preview-mode" enum="org.gnome.FontManager.FontPreviewMode">
            <summary>Preview Mode</summary>
            <description>Possible modes are Preview, Waterfall and Lorem Ipsum.</description>
            <default>"waterfall"</default>
        </key>

        <key name="preview-page" type="i">
            <summary>Selected preview page</summary>
            <description>Last selected preview page</description>
            <default>0</default>
        </key>

        <key name="preview-text" type="s">
            <summary>Preview text</summary>
            <description>Last preview text used</description>
            <default>"    The quick brown fox jumps over the lazy dog.

    ABCDEFGHIJKLMNOPQRSTUVWXYZ
    abcdefghijklmnopqrstuvwxyz
    1234567890.:,;(*!?')

    "</default>
        </key>

        <key name="browse-mode" enum="org.gnome.FontManager.BrowseMode">
            <summary>Browse Mode</summary>
            <description>Possible modes are List and Grid.</description>
            <default>"Grid"</default>
        </key>

        <key name="browse-font-size" type="d">
            <range min="6.0" max="96.0"/>
            <summary>Browser font size</summary>
            <description>Size point to use in Browse mode.</description>
            <default>12.0</default>
        </key>

        <key name="browse-preview-text" type="s">
            <summary>Preview text</summary>
            <description>Last preview text used in Browse mode</description>
            <default>""</default>
        </key>

        <key name="compare-font-size" type="d">
            <range min="6.0" max="96.0"/>
            <summary>Compare font size</summary>
            <description>Size point to use in Compare mode.</description>
            <default>12.0</default>
        </key>

        <key name="compare-foreground-color" type="s">
            <summary>Compare mode foreground color</summary>
            <description>Color to use for foreground (text color) in RGB format.</description>
            <default>"rgb(0,0,0)"</default>
        </key>

        <key name="compare-background-color" type="s">
            <summary>Compare mode background color</summary>
            <description>Color to use for background in RGB format</description>
            <default>"rgb(255,255,255)"</default>
        </key>

        <key name="compare-list" type="as">
            <summary>Compare list</summary>
            <description>Array of string containing font descriptions to compare.</description>
            <default>[]</default>
        </key>

        <key name="compare-preview-text" type="s">
            <summary>Preview text</summary>
            <description>Last preview text used in Compare mode</description>
            <default>""</default>
        </key>

        <key name="charmap-font-size" type="d">
            <range min="6.0" max="96.0"/>
            <summary>Character Map font size</summary>
            <description>Size point to use in Character Map Mode.</description>
            <default>16.0</default>
        </key>

        <key name="selected-category" type="s">
            <summary>Selected Category</summary>
            <description>Last selected category</description>
            <default>"0"</default>
        </key>

        <key name="selected-collection" type="s">
            <summary>Selected Collection</summary>
            <description>Last selected collection</description>
            <default>"0"</default>
        </key>

        <key name="selected-font" type="s">
            <summary>Selected Font</summary>
            <description>Last selected Font</description>
            <default>"0"</default>
        </key>

        <key name="min-waterfall-size" type="d">
            <range min="6.0" max="48.0"/>
            <summary>Minimum waterfall preview size</summary>
            <description>Minimum size point to render in Waterfall mode.</description>
            <default>8.0</default>
        </key>

        <key name="max-waterfall-size" type="d">
            <range min="6.0" max="192.0"/>
            <summary>Maximum waterfall preview size</summary>
            <description>Maximum size point to render in Waterfall mode.</description>
            <default>48.0</default>
        </key>

        <key name="waterfall-size-ratio" type="d">
            <range min="1.0" max="24.0"/>
            <summary>Waterfall point size common ratio</summary>
            <description>Waterfall point size common ratio.</description>
            <default>1.0</default>
        </key>

        <key name="predefined-waterfall-size" enum="org.gnome.FontManager.Waterfall.PredefinedSize">
            <summary>Waterfall Preview Predefined Size Setting</summary>
            <description>Waterfall Preview Predefined Size Setting</description>
            <default>"48 Points Linear"</default>
        </key>

        <key name="waterfall-show-line-size" type="b">
            <default>true</default>
            <summary>Whether to display line size in Waterfall preview</summary>
            <description>true to show line sizes in Waterfall preview</description>
        </key>

        <key name="language-filter-list" type="as">
            <summary>Language Filter list</summary>
            <description>Array of string containing language selections.</description>
            <default>[]</default>
        </key>

        <key name="language-filter-min-coverage" type="d">
            <range min="1.0" max="100.0"/>
            <summary>Language Filter list minimum coverage</summary>
            <description>Minimum coverage for language filter</description>
            <default>90.0</default>
        </key>

        <key name="restrict-network-access" type="b">
            <default>false</default>
            <summary>Whether access to network is restricted by administrator</summary>
            <description>true to prevent the application from attempting to access the network</description>
        </key>

        <key name="google-fonts-preview-mode" enum="org.gnome.FontManager.GoogleFonts.PreviewMode">
            <summary>Google Fonts Preview Mode</summary>
            <description>Possible modes are Waterfall and Lorem Ipsum.</description>
            <default>"waterfall"</default>
        </key>

        <key name="google-fonts-foreground-color" type="s">
            <summary>Google Fonts preview foreground color</summary>
            <description>Color to use for foreground (text color) in RGB format.</description>
            <default>"rgb(0,0,0)"</default>
        </key>

        <key name="google-fonts-background-color" type="s">
            <summary>Google Fonts preview background color</summary>
            <description>Color to use for background in RGB format</description>
            <default>"rgb(255,255,255)"</default>
        </key>

        <key name="google-fonts-font-size" type="d">
            <range min="6.0" max="96.0"/>
            <summary>Google Fonts preview font size</summary>
            <description>Size point to use in Google Fonts lorem-ipsum mode.</description>
            <default>16.0</default>
        </key>

        <key name="google-fonts-preview-text" type="s">
            <summary>Google Fonts preview text</summary>
            <description>Last preview text used in Google Fonts waterfall preview</description>
            <default>""</default>
        </key>

    </schema>

</schemalist>
