benchmark-toolbox: add benchmark-toolbox
a unified benchmarking tool
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
<brls:TabFrame
|
||||
title="@i18n/demo/title"
|
||||
iconInterpolation="linear"
|
||||
icon="@res/img/borealis_96.png">
|
||||
|
||||
<!-- Dynamic tab - required to get references to the views in the code -->
|
||||
<brls:Tab label="@i18n/demo/tabs/components" >
|
||||
<ComponentsTab />
|
||||
</brls:Tab>
|
||||
|
||||
<!-- Static tab linking to another XML -->
|
||||
<brls:Tab label="@i18n/demo/tabs/layout" >
|
||||
<brls:View xml="@res/xml/tabs/layout.xml" />
|
||||
</brls:Tab>
|
||||
|
||||
<brls:Tab label="@i18n/demo/tabs/recycling">
|
||||
<RecyclingListTab />
|
||||
</brls:Tab>
|
||||
|
||||
<brls:Separator />
|
||||
|
||||
<brls:Tab label="@i18n/demo/tabs/popups" />
|
||||
<brls:Tab label="@i18n/demo/tabs/hos_layout" />
|
||||
|
||||
<brls:Separator />
|
||||
|
||||
<brls:Tab label="@i18n/demo/tabs/misc_layouts" />
|
||||
<brls:Tab label="@i18n/demo/tabs/misc_components" />
|
||||
<brls:Tab label="@i18n/demo/tabs/misc_tools" />
|
||||
|
||||
<brls:Separator />
|
||||
|
||||
<!-- Static tab with inline XML -->
|
||||
<brls:Tab label="@i18n/demo/tabs/about" >
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="column"
|
||||
paddingTop="@style/about/padding_top_bottom"
|
||||
paddingBottom="@style/about/padding_top_bottom"
|
||||
paddingLeft="@style/about/padding_sides"
|
||||
paddingRight="@style/about/padding_sides" >
|
||||
|
||||
<brls:Image
|
||||
width="auto"
|
||||
height="33%"
|
||||
image="@res/img/borealis_256.png"
|
||||
marginBottom="@style/about/description_margin"/>
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="row"
|
||||
marginBottom="@style/about/description_margin">
|
||||
|
||||
<brls:Label
|
||||
width="40%"
|
||||
height="auto"
|
||||
text="@i18n/demo/about/title"
|
||||
fontSize="36"
|
||||
horizontalAlign="right"
|
||||
verticalAlign="top" />
|
||||
|
||||
<brls:Label
|
||||
width="auto"
|
||||
height="auto"
|
||||
text="@i18n/demo/about/description"
|
||||
marginLeft="@style/about/description_margin" />
|
||||
|
||||
</brls:Box>
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="column"
|
||||
alignItems="center"
|
||||
justifyContent="spaceEvenly"
|
||||
grow="1.0" >
|
||||
|
||||
<brls:Label
|
||||
width="auto"
|
||||
height="auto"
|
||||
text="@i18n/demo/about/github" />
|
||||
|
||||
<brls:Label
|
||||
width="auto"
|
||||
height="auto"
|
||||
text="@i18n/demo/about/licence" />
|
||||
|
||||
<brls:Label
|
||||
width="auto"
|
||||
height="auto"
|
||||
text="@i18n/demo/about/logo_credit" />
|
||||
|
||||
</brls:Box>
|
||||
|
||||
</brls:Box>
|
||||
|
||||
</brls:Tab>
|
||||
|
||||
</brls:TabFrame>
|
||||
@@ -0,0 +1,216 @@
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto">
|
||||
|
||||
<brls:ScrollingFrame
|
||||
width="auto"
|
||||
height="auto"
|
||||
grow="1.0" >
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="column"
|
||||
paddingLeft="@style/brls/tab_frame/content_padding_sides"
|
||||
paddingRight="@style/brls/tab_frame/content_padding_sides"
|
||||
paddingTop="@style/brls/tab_frame/content_padding_top_bottom"
|
||||
paddingBottom="@style/brls/tab_frame/content_padding_top_bottom">
|
||||
|
||||
<brls:Label
|
||||
width="auto"
|
||||
height="auto"
|
||||
text="@i18n/demo/welcome"
|
||||
marginBottom="10px" />
|
||||
|
||||
<!-- Buttons -->
|
||||
<brls:Header
|
||||
width="auto"
|
||||
height="auto"
|
||||
title="@i18n/demo/components/buttons_header"
|
||||
marginBottom="30px" />
|
||||
|
||||
<brls:Box
|
||||
width="100%"
|
||||
height="auto"
|
||||
axis="row"
|
||||
marginBottom="30px">
|
||||
|
||||
<brls:Button
|
||||
id="button_primary"
|
||||
width="auto"
|
||||
height="auto"
|
||||
style="primary"
|
||||
grow="1.0"
|
||||
marginRight="30px"
|
||||
text="@i18n/demo/components/button_primary" />
|
||||
|
||||
<brls:Button
|
||||
id="button_highlight"
|
||||
width="auto"
|
||||
height="auto"
|
||||
style="highlight"
|
||||
text="@i18n/demo/components/button_highlight"
|
||||
focusDown="button_bordered" />
|
||||
|
||||
</brls:Box>
|
||||
|
||||
<brls:Box
|
||||
width="100%"
|
||||
height="auto"
|
||||
axis="row"
|
||||
marginBottom="30px">
|
||||
|
||||
<brls:Button
|
||||
width="33%"
|
||||
height="auto"
|
||||
marginRight="30px"
|
||||
text="@i18n/demo/components/button_wrapping" />
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
grow="1.0"
|
||||
axis="column">
|
||||
|
||||
<brls:Button
|
||||
id="button_bordered"
|
||||
width="auto"
|
||||
height="auto"
|
||||
padding="10px"
|
||||
style="bordered"
|
||||
fontSize="16"
|
||||
text="@i18n/demo/components/button_bordered"
|
||||
marginBottom="30px" />
|
||||
|
||||
<brls:Button
|
||||
width="auto"
|
||||
height="auto"
|
||||
padding="10px"
|
||||
style="borderless"
|
||||
fontSize="16"
|
||||
text="@i18n/demo/components/button_borderless" />
|
||||
|
||||
</brls:Box>
|
||||
|
||||
</brls:Box>
|
||||
|
||||
<!-- Labels -->
|
||||
<brls:Header
|
||||
width="auto"
|
||||
height="auto"
|
||||
title="@i18n/demo/components/labels_header"
|
||||
marginBottom="30px" />
|
||||
|
||||
<brls:Label
|
||||
width="auto"
|
||||
height="auto"
|
||||
text="@i18n/demo/components/regular_label"
|
||||
marginBottom="30px" />
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="row"
|
||||
justifyContent="spaceEvenly"
|
||||
marginBottom="30px" >
|
||||
|
||||
<brls:Label
|
||||
width="30%"
|
||||
height="auto"
|
||||
text="@i18n/demo/components/label_left"
|
||||
horizontalAlign="left" />
|
||||
|
||||
<brls:Label
|
||||
width="30%"
|
||||
height="auto"
|
||||
text="@i18n/demo/components/label_center"
|
||||
horizontalAlign="center" />
|
||||
|
||||
<brls:Label
|
||||
width="30%"
|
||||
height="auto"
|
||||
text="@i18n/demo/components/label_right"
|
||||
horizontalAlign="right" />
|
||||
|
||||
</brls:Box>
|
||||
|
||||
<!-- Images -->
|
||||
<brls:Header
|
||||
width="auto"
|
||||
height="auto"
|
||||
title="@i18n/demo/components/images_header_title"
|
||||
subtitle="@i18n/demo/components/images_header_subtitle"
|
||||
marginBottom="30px" />
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="row"
|
||||
alignItems="center"
|
||||
justifyContent="spaceEvenly"
|
||||
marginBottom="30px">
|
||||
|
||||
<CaptionedImage
|
||||
width="auto"
|
||||
height="auto"
|
||||
imageWidth="76px"
|
||||
imageHeight="76px"
|
||||
image="@res/img/tiles.png"
|
||||
caption="@i18n/demo/components/images_downscaled" />
|
||||
|
||||
<CaptionedImage
|
||||
id="image_original"
|
||||
width="auto"
|
||||
height="auto"
|
||||
imageWidth="auto"
|
||||
imageHeight="auto"
|
||||
image="@res/img/tiles.png"
|
||||
caption="@i18n/demo/components/images_original" />
|
||||
|
||||
<CaptionedImage
|
||||
id="image_upscaled"
|
||||
width="auto"
|
||||
height="auto"
|
||||
imageWidth="170px"
|
||||
imageHeight="170px"
|
||||
maxWidth="170px"
|
||||
image="@res/img/tiles.png"
|
||||
caption="@i18n/demo/components/images_upscaled"
|
||||
focusDown="image_cropped" />
|
||||
|
||||
</brls:Box>
|
||||
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="row"
|
||||
alignItems="center"
|
||||
justifyContent="spaceEvenly">
|
||||
|
||||
<CaptionedImage
|
||||
width="auto"
|
||||
height="auto"
|
||||
imageWidth="400px"
|
||||
imageHeight="75px"
|
||||
image="@res/img/tiles.png"
|
||||
scalingType="stretch"
|
||||
caption="@i18n/demo/components/images_stretched" />
|
||||
|
||||
<CaptionedImage
|
||||
id="image_cropped"
|
||||
width="auto"
|
||||
height="auto"
|
||||
imageWidth="auto"
|
||||
imageHeight="75px"
|
||||
image="@res/img/tiles.png"
|
||||
scalingType="crop"
|
||||
caption="@i18n/demo/components/images_cropped"
|
||||
focusUp="image_upscaled" />
|
||||
|
||||
</brls:Box>
|
||||
|
||||
</brls:Box>
|
||||
|
||||
</brls:ScrollingFrame>
|
||||
|
||||
</brls:Box>
|
||||
@@ -0,0 +1,4 @@
|
||||
<brls:Rectangle
|
||||
width="auto"
|
||||
height="auto"
|
||||
color="#50FFDD" />
|
||||
@@ -0,0 +1,11 @@
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto">
|
||||
|
||||
<brls:Rectangle
|
||||
width="auto"
|
||||
height="auto"
|
||||
grow="1.0"
|
||||
color="#0000FF" />
|
||||
|
||||
</brls:Box>
|
||||
@@ -0,0 +1,21 @@
|
||||
<brls:Box
|
||||
width="auto"
|
||||
height="auto"
|
||||
axis="column"
|
||||
alignItems="center">
|
||||
|
||||
<brls:Image
|
||||
id="image"
|
||||
width="auto"
|
||||
height="auto"
|
||||
focusable="true"
|
||||
marginBottom="20px" />
|
||||
|
||||
<brls:Label
|
||||
id="label"
|
||||
width="auto"
|
||||
height="auto"
|
||||
horizontalAlign="center"
|
||||
textColor="@theme/captioned_image/caption" />
|
||||
|
||||
</brls:Box>
|
||||
Reference in New Issue
Block a user