styles.xml 3.61 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <color name="bg">#aaaaaa</color>
  <color name="text">#000000</color>
  <color name="buttonbg">#ffffff</color>

  <style name="StarwispButton" parent="android:style/Widget.Button">
    <item name="android:textColor">@color/text</item>
    <item name="android:textSize">50sp</item>
    <item name="android:layout_margin">10dip</item>
    <item name="android:background">@drawable/swarmbutton</item>
12
    <item name="android:layout_marginBottom">5dp</item>
13
14
  </style>

15
16
17
18
19
20
21
22
23
  <style name="StarwispFancyToggleButton" parent="android:style/Widget.Button">
    <item name="android:textColor">@color/text</item>
    <item name="android:textSize">50sp</item>
    <item name="android:layout_margin">10dip</item>
    <item name="android:drawableTop">@drawable/swarmtoggledrawable</item>
    <item name="android:background">@drawable/swarmtoggle</item>
    <item name="android:layout_marginBottom">5dp</item>
  </style>

24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  <style name="StarwispYesToggleButton" parent="android:style/Widget.Button">
    <item name="android:textColor">@color/text</item>
    <item name="android:textSize">50sp</item>
    <item name="android:layout_margin">10dip</item>
    <item name="android:background">@drawable/swarmtoggledrawable_yes</item>
    <item name="android:layout_marginBottom">5dp</item>
  </style>

  <style name="StarwispMaybeToggleButton" parent="android:style/Widget.Button">
    <item name="android:textColor">@color/text</item>
    <item name="android:textSize">50sp</item>
    <item name="android:layout_margin">10dip</item>
    <item name="android:background">@drawable/swarmtoggledrawable_maybe</item>
    <item name="android:layout_marginBottom">5dp</item>
  </style>

  <style name="StarwispNoToggleButton" parent="android:style/Widget.Button">
    <item name="android:textColor">@color/text</item>
    <item name="android:textSize">50sp</item>
    <item name="android:layout_margin">10dip</item>
    <item name="android:background">@drawable/swarmtoggledrawable_no</item>
    <item name="android:layout_marginBottom">5dp</item>
  </style>

48
49
50
51
52
53
54
  <style name="StarwispSpinnerItem" parent="android:Widget.TextView.SpinnerItem">
<!--    <item name="android:textAppearance">@style/StarwispTextAppearanceSpinnerItem</item> -->
    <item name="android:background">@drawable/swarmspinner</item>
  </style>

  <style name="StarwispTextAppearanceSpinnerItem" parent="android:TextAppearance.Widget.TextView.SpinnerItem">
    <item name="android:textColor">@color/text</item>
55
    <item name="android:textSize">20sp</item>
56
57
58
59
  </style>

  <style name="StarwispSpinner" parent="android:style/Widget.Spinner">
    <item name="android:textColor">@color/text</item>
60
    <item name="android:textSize">20sp</item>
61
62
63
64
65
66
67
68
69
70
71
72
73
74
    <item name="android:background">@drawable/swarmspinner</item>
  </style>

  <style name="StarwispSeekBar" parent="android:style/Widget.SeekBar">
    <item name="android:progressDrawable">@drawable/seekprogress</item>
    <item name="android:thumb">@drawable/seekthumb</item>
  </style>

  <style name="StarwispTheme" parent="android:Theme.Light">
    <item name="android:textColor">@color/text</item>
    <item name="android:textColorLink">#005500</item>
    <item name="android:windowBackground">@drawable/bg_style</item>
    <item name="android:colorBackground">@color/bg</item>
    <item name="android:buttonStyle">@style/StarwispButton</item>
Dave Griffiths's avatar
Dave Griffiths committed
75
    <item name="android:buttonStyleToggle">@style/StarwispButton</item>
76
77
78
79
80
81
82
    <item name="android:seekBarStyle">@style/StarwispSeekBar</item>
    <item name="android:spinnerItemStyle">@style/StarwispSpinnerItem</item>
    <item name="android:spinnerStyle">@style/StarwispSpinner</item>
  </style>


</resources>