<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
    <div x="1%" y="1%" width="98%" height="98%" layout="vertical-row" >

        <header text_align="center" width="80%" align="center" text="SuperTuxKart Options"/>
        <spacer height="15" width="10"/>

        <tabs id="options_choice" height="10%" max_height="110" x="2%" width="98%" align="center">
            <icon-button id="tab_video" width="128" height="128" icon="gui/options_video.png"
                    I18N="Section in the settings menu" text="Graphics"/>
            <icon-button id="tab_audio" width="128" height="128" icon="gui/options_audio.png"/>
            <icon-button id="tab_ui" width="128" height="128" icon="gui/options_ui.png"/>
            <icon-button id="tab_players" width="128" height="128" icon="gui/options_players.png"/>
            <icon-button id="tab_controls" width="128" height="128" icon="gui/options_input.png"/>
        </tabs>

        <box proportion="1" width="100%" layout="vertical-row">

            <spacer height="15" width="10"/>

            <!-- ************ GRAPHICAL EFFECTS SETTINGS ************ -->
            <div width="75%" height="fit" layout="horizontal-row" id="outer_box" >
                <label I18N="In the video settings" text="Graphical Effects Level" align="center"/>
                <spacer width="20" height="20"/>

                <div layout="vertical-row" proportion="1" height="fit" id="inner_box">
                    <gauge id="gfx_level" min_value="1" max_value="8" width="300" align="center" />
                    <spacer height="5" width="10"/>
                    <button id="custom" text="Custom settings..." I18N="In the video settings" align="center"/>
                </div>
            </div>

            <spacer height="10" width="10"/>

            <!-- ************ VSYNC ************ -->
            <div width="75%" height="fit" layout="horizontal-row" >
                <spacer width="40" height="2" />
                <checkbox id="vsync"/>
                <spacer width="20" height="2" />
                <label height="100%" I18N="In the video settings" text="Vertical Sync (requires restart)"/>
            </div>

            <spacer height="10" width="10"/>

            <!-- ************ RESOLUTION CHOICE ************ -->
            <spacer height="10" width="10"/>
            <label width="100%" I18N="In the video settings" text="Resolution"/>

            <scrollable_ribbon id="resolutions" proportion="1" label_location="each"
                               width="100%" square_items="false"
                               align="center" child_width="128" child_height="128" max_height="150" />

            <spacer height="10" width="10"/>

            <div width="75%" height="fit" layout="horizontal-row" >
                <spacer width="40" height="100%" />
                <checkbox id="fullscreen"/>
                <spacer width="20" height="100%" />
                <label height="100%" I18N="In the video settings" text="Fullscreen"/>
            </div>

            <div width="75%" layout="horizontal-row" height="fit">
                <spacer width="40" height="100%" />
                <checkbox id="rememberWinpos"/>
                <spacer width="20" height="100%" />
                <label I18N="In the video settings" text="Remember window location"/>
            </div>

            <spacer height="10" width="10"/>

            <div width="100%" height="fit" layout="horizontal-row" >
                <spacer width="40" height="100%" />
                <button id="apply_resolution"
                    I18N="In the video settings" text="Apply new resolution" />
            </div>

            <spacer height="15" width="4"/>

        </box>
    </div>

    <icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
</stkgui>