Number control (#282)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-02-05 10:36:14 -05:00
1 parent f3aeb58b38
commit 74082f406a
9 files changed
+203 -5

No files matched your search

@@ -0,0 +1,44 @@
<component name="NumberControl" extends="LayoutGroup" includes="Focus">
<interface>
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
<field id="description" type="string" alias="DescriptionLabel.text" />
<field id="min" type="integer" value="-999999" />
<field id="max" type="integer" value="999999" />
<field id="value" type="integer" onChange="OnValueChange" />
<function name="BindPreference" />
</interface>
<children>
<Label id="DisplayTextLabel" width="450" />
<Label id="DescriptionLabel"
width="450"
color="0xb4b4b4ff"
wrap="true">
<Font role="font" uri="font:SystemFontFile" size="18" />
</Label>
<LayoutGroup layoutDirection="horiz">
<Button
id="MinusButton"
iconUri=""
focusedIconUri=""
minWidth="64"
maxWidth="64"
showFocusFootprint="true"
text="-" />
<Button
id="NumberButton"
iconUri=""
focusedIconUri=""
minWidth="150"
showFocusFootprint="true"
text="0" />
<Button
id="PlusButton"
iconUri=""
focusedIconUri=""
minWidth="64"
maxWidth="64"
showFocusFootprint="true"
text="+" />
</LayoutGroup>
</children>
</component>