aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-25 18:09:51 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-25 18:09:51 +0100
commit68912eae2db30fb36c27121cfa064a39c292da5a (patch)
tree21c4d10b9ac444f45e76005fc87eeeba5a72fbf7
parentf011ac73727aeda00cfa57997581408e9133b08c (diff)
spinner style
-rw-r--r--Crow.csproj1
-rw-r--r--Styles/Spinner.style2
-rw-r--r--src/GraphicObjects/Spinner.cs1
3 files changed, 4 insertions, 0 deletions
diff --git a/Crow.csproj b/Crow.csproj
index 146ffd1a..6c98dc12 100644
--- a/Crow.csproj
+++ b/Crow.csproj
@@ -241,6 +241,7 @@
<EmbeddedResource Include="Styles\GroupBox.style" />
<EmbeddedResource Include="Styles\ComboBox.style" />
<EmbeddedResource Include="Styles\Label.style" />
+ <EmbeddedResource Include="Styles\Spinner.style" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" />
diff --git a/Styles/Spinner.style b/Styles/Spinner.style
new file mode 100644
index 00000000..a5be8e2a
--- /dev/null
+++ b/Styles/Spinner.style
@@ -0,0 +1,2 @@
+Focusable = true
+Height = -1
diff --git a/src/GraphicObjects/Spinner.cs b/src/GraphicObjects/Spinner.cs
index 49d323e0..ffc9472b 100644
--- a/src/GraphicObjects/Spinner.cs
+++ b/src/GraphicObjects/Spinner.cs
@@ -23,6 +23,7 @@ using OpenTK.Input;
namespace Crow
{
+ [DefaultStyle("#Crow.Styles.Spinner.style")]
[DefaultTemplate("#Crow.Templates.Spinner.goml")]
public class Spinner : NumericControl
{