mirror of
https://github.com/wayvr-org/wayvr.git
synced 2026-11-20 09:01:18 -08:00
131 lines
5.8 KiB
XML
131 lines
5.8 KiB
XML
<layout version="2">
|
|
<include src="@/gui/t_group_box.xml" />
|
|
<include src="@/gui/t_dropdown_button.xml" />
|
|
|
|
<template name="SettingsGroupBox">
|
|
<rectangle macro="group_box" id="${id}" width="100%" max_width="100%" flex_direction="column">
|
|
<GroupBoxTitle translation="${translation}" src_builtin="${icon}" />
|
|
</rectangle>
|
|
</template>
|
|
|
|
<template name="SettingsSplitHoriz2">
|
|
<div gap="8" width="100%" max_width="100%" flex_wrap="wrap" >
|
|
<div id="${id1}" flex_basis="10%" flex_grow="1"/>
|
|
<div id="${id2}" flex_basis="10%" flex_grow="1"/>
|
|
</div>
|
|
</template>
|
|
|
|
<template name="SettingsSplitHoriz3">
|
|
<div gap="8" width="100%" max_width="100%" flex_wrap="wrap" >
|
|
<div id="${id1}" flex_basis="10%" flex_grow="1"/>
|
|
<div id="${id2}" flex_basis="10%" flex_grow="1"/>
|
|
<div id="${id3}" flex_basis="10%" flex_grow="1"/>
|
|
</div>
|
|
</template>
|
|
|
|
<template name="CheckBoxSetting">
|
|
<CheckBox id="${id}" text="${text}" translation="${translation}" checked="${checked}" tooltip="${tooltip}" sprite_src_builtin="${sprite_src_builtin}" />
|
|
</template>
|
|
|
|
<template name="SliderSetting">
|
|
<Slider id="${id}" width="200" height="24" min_value="${min}" max_value="${max}" step="${step}" value="${value}" tooltip="${tooltip}" />
|
|
<label text="${text}" weight="bold" translation="${translation}" />
|
|
</template>
|
|
|
|
<template name="RangeSetting">
|
|
<Slider id="${id}" width="200" height="24" min_value="${min}" max_value="${max}" step="${step}" value="${value}" value2="${value2}" tooltip="${tooltip}" />
|
|
<label text="${text}" weight="bold" translation="${translation}" />
|
|
</template>
|
|
|
|
<template name="SelectSetting">
|
|
<label text="${text}" translation="${translation}" tooltip="${tooltip}" />
|
|
<RadioGroup id="${id}" />
|
|
</template>
|
|
|
|
<template name="SelectOption">
|
|
<RadioBox text="${text}" translation="${translation}" value="${value}" tooltip="${tooltip}" />
|
|
</template>
|
|
|
|
<!-- title, sprite, color, tooltip_str -->
|
|
<template name="DiagnosticsRow">
|
|
<div align_items="center">
|
|
<label text="${title}" weight="bold" min_width="140"/>
|
|
<Button tooltip_str="${tooltip_str}" color="background(transparent)">
|
|
<sprite width="24" height="24" color="${color}" src_builtin="${sprite}" parent_color="ignore"/>
|
|
</Button>
|
|
</div>
|
|
</template>
|
|
|
|
<!-- name, info -->
|
|
<template name="DiagnosticsDrmCard">
|
|
<GroupBox>
|
|
<div gap="8">
|
|
<sprite width="24" height="24" src_builtin="@/dashboard/gpu.svg"/>
|
|
<label text="${name}"/>
|
|
</div>
|
|
<label text="${info}"/>
|
|
</GroupBox>
|
|
</template>
|
|
|
|
<template name="StatRow">
|
|
<div flex_direction="row" justify_content="space_between" align_items="center" gap="12" width="100%">
|
|
<label weight="bold" translation="${translation}" />
|
|
<label id="${id}" weight="bold" />
|
|
</div>
|
|
</template>
|
|
|
|
<template name="ButtonText">
|
|
<Button id="${id}" height="32" tooltip="${translation}_HELP" padding="4" gap="8" width="100%">
|
|
<sprite src_builtin="${icon}" min_height="24" min_width="24" />
|
|
<label align="left" translation="${translation}" weight="bold"/>
|
|
</Button>
|
|
</template>
|
|
|
|
<template name="DangerButton">
|
|
<Button id="${id}" color="danger" border_color="danger(rgb-mult-0.5)" height="32" tooltip="${translation}_HELP" padding="4" gap="8">
|
|
<sprite src_builtin="${icon}" height="24" width="24" />
|
|
<label align="left" translation="${translation}" weight="bold" min_width="200" />
|
|
</Button>
|
|
</template>
|
|
|
|
<template name="AutostartApp">
|
|
<div id="${id}_root" flex_direction="row">
|
|
<Button id="${id}" color="#AA3333" height="24" padding="4" margin_top="-2" margin_bottom="-2"
|
|
hover_color="danger" hover_border_color="danger(rgb-mult-0.5)" >
|
|
<sprite src_builtin="@/dashboard/close.svg" height="20" width="20" />
|
|
</Button>
|
|
<div padding_left="8">
|
|
<label align="left" text="${text}" weight="bold" overflow="hidden" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<macro name="tab_style" color="background" />
|
|
|
|
<elements>
|
|
<div gap="4" width="100%" height="100%" overflow_x="hidden">
|
|
<div flex_direction="column" gap="8">
|
|
<Tabs id="tabs">
|
|
<Tab macro="tab_style" name="general" translation="GENERAL_SETTINGS" sprite_src_builtin="@/dashboard/settings.svg" />
|
|
<Tab macro="tab_style" name="appearance" translation="APP_SETTINGS.APPEARANCE" sprite_src_builtin="@/dashboard/palette.svg" />
|
|
<Tab macro="tab_style" name="controls" translation="APP_SETTINGS.CONTROLS" sprite_src_builtin="@/dashboard/controller.svg" />
|
|
<Tab macro="tab_style" name="overlays" translation="APP_SETTINGS.OVERLAYS" sprite_src_builtin="@/dashboard/window.svg" />
|
|
<Tab macro="tab_style" name="hid" text="HID" sprite_src_builtin="@/dashboard/mouse.svg" />
|
|
<Tab macro="tab_style" name="misc" translation="APP_SETTINGS.MISC" sprite_src_builtin="@/dashboard/blocks.svg" />
|
|
<Tab macro="tab_style" name="autostart_apps" translation="APP_SETTINGS.AUTOSTART_APPS" sprite_src_builtin="@/dashboard/apps.svg" />
|
|
<Tab macro="tab_style" name="statistics" translation="APP_SETTINGS.STATISTICS" sprite_src_builtin="@/dashboard/barchart.svg" />
|
|
<Tab macro="tab_style" name="diagnostics" translation="APP_SETTINGS.DIAGNOSTICS.TITLE" sprite_src_builtin="@/dashboard/diagnostics.svg" />
|
|
<Tab macro="tab_style" name="troubleshooting" translation="APP_SETTINGS.TROUBLESHOOTING" sprite_src_builtin="@/dashboard/cpu.svg" />
|
|
</Tabs>
|
|
<!-- wayvr version, filled-in at runtime -->
|
|
<label id="label_version"/>
|
|
</div>
|
|
<div position="relative" width="100%" height="100%" overflow_y="scroll">
|
|
<div gap="4" id="settings_root" position="absolute" width="100%">
|
|
<!-- filled-in at runtime -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</elements>
|
|
</layout>
|