Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update theme

  • Loading branch information...
commit 1407f95172384e2ca6ae664fa40a7759c577bea8 1 parent 9d2aae1
@longerian longerian authored
View
7 AndroidManifest.xml
@@ -43,34 +43,29 @@ limitations under the License.
>
<intent-filter >
<action android:name="android.intent.action.MAIN" />
-
+ <category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activity.RubyChinaIndexActivity"
android:screenOrientation="portrait"
- android:logo="@color/transparent"
/>
<activity
android:name=".activity.TopicEditingActivity"
android:screenOrientation="portrait"
- android:logo="@color/transparent"
/>
<activity
android:name=".activity.TopicDetailActivity"
android:screenOrientation="portrait"
- android:logo="@color/transparent"
/>
<activity
android:name=".activity.RCPreferenceActivity"
android:screenOrientation="portrait"
- android:logo="@color/transparent"
/>
<activity
android:name=".activity.UserIndexActivity"
android:screenOrientation="portrait"
- android:logo="@color/transparent"
/>
<service
android:name=".RCService"
View
8 res/drawable/actionbar_tab_bg.xml
@@ -16,9 +16,9 @@ limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/rc_tab_unselected_holo" />
- <item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/rc_tab_selected_holo" />
- <item android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/rc_tab_selected_pressed_holo" />
- <item android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/rc_tab_selected_pressed_holo" />
+ <item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/rc_tab_unselected" />
+ <item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/rc_tab_selected" />
+ <item android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/rc_tab_selected_pressed" />
+ <item android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/rc_tab_selected_pressed" />
</selector>
View
8 res/drawable/image_button_bg_selector.xml
@@ -16,9 +16,9 @@ limitations under the License.
-->
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@color/ruby_china_half_blue" android:state_active="true" />
- <item android:state_selected="false" android:state_pressed="true" android:drawable="@color/ruby_china_half_blue" />
+ <item android:drawable="@color/ruby_china_yellow" android:state_active="true" />
+ <item android:state_selected="false" android:state_pressed="true" android:drawable="@color/ruby_china_yellow" />
<item android:state_selected="false" android:drawable="@color/transparent" />
- <item android:state_selected="true" android:drawable="@color/ruby_china_half_blue" />
- <item android:state_checked="true" android:drawable="@color/ruby_china_half_blue" />
+ <item android:state_selected="true" android:drawable="@color/ruby_china_yellow" />
+ <item android:state_checked="true" android:drawable="@color/ruby_china_yellow" />
</selector>
View
10 res/drawable/list_bg_selector.xml
@@ -16,9 +16,9 @@ limitations under the License.
-->
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@color/ruby_china_half_blue" android:state_active="true" />
- <item android:state_selected="false" android:state_pressed="true" android:drawable="@color/ruby_china_half_blue" />
- <item android:state_selected="false" android:drawable="@drawable/list_bg" />
- <item android:state_selected="true" android:drawable="@color/ruby_china_half_blue" />
- <item android:state_checked="true" android:drawable="@color/ruby_china_half_blue" />
+ <item android:drawable="@color/ruby_china_yellow" android:state_active="true" />
+ <item android:state_selected="false" android:state_pressed="true" android:drawable="@color/ruby_china_yellow" />
+ <item android:state_selected="false" android:drawable="@color/white" />
+ <item android:state_selected="true" android:drawable="@color/ruby_china_yellow" />
+ <item android:state_checked="true" android:drawable="@color/ruby_china_yellow" />
</selector>
View
2  res/drawable/list_divider.xml
@@ -18,7 +18,7 @@ limitations under the License.
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
- <gradient android:height="1.0px" android:startColor="#ffcccccc" android:endColor="#ffcccccc" android:angle="0.0" android:centerColor="#ff999999" />
+ <gradient android:height="1.0px" android:startColor="#ffeaeaea" android:endColor="#ffeaeaea" android:angle="90.0" android:centerColor="#ff999999" />
</shape>
</item>
</layer-list>
View
BIN  res/drawable/rc_tab_selected_holo.9.png → res/drawable/rc_tab_selected.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  ...awable/rc_tab_selected_pressed_holo.9.png → res/drawable/rc_tab_selected_pressed.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/rc_tab_unselected.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable/rc_tab_unselected_holo.9.png
Deleted file not rendered
View
4 res/drawable/reply_count_bg.xml
@@ -20,8 +20,8 @@ limitations under the License.
android:radius="12dip"
/>
<gradient
- android:startColor="#FF1C7FDB"
- android:endColor="#FF1C7FDB"
+ android:startColor="@color/ruby_china_section_bg"
+ android:endColor="@color/ruby_china_section_bg"
android:angle="90.0"
/>
</shape>
View
2  res/drawable/selected_background.xml
@@ -15,5 +15,5 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
- <solid android:color="@color/ruby_china_blue" />
+ <solid android:color="@color/ruby_china_yellow" />
</shape>
View
4 res/layout/node_section_header.xml
@@ -22,6 +22,6 @@ limitations under the License.
android:paddingTop="2dip"
android:paddingBottom="2dip"
android:paddingLeft="5dip"
- android:textColor="@color/black"
- android:background="@color/ruby_china_blue"
+ android:textColor="#FF8BA5D2"
+ android:background="@color/ruby_china_section_bg"
/>
View
2  res/layout/site_child_item.xml
@@ -20,7 +20,7 @@ limitations under the License.
android:padding="8dip"
android:background="@drawable/list_bg_selector"
android:gravity="center_vertical">
- <ImageView
+ <ImageView
android:id="@+id/icon"
android:layout_width="24dip"
android:layout_height="24dip"
View
2  res/layout/site_group_item.xml
@@ -26,7 +26,7 @@ limitations under the License.
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="@color/black"
+ android:textColor="@color/ruby_china_section_text"
android:textSize="16sp"
/>
<TextView
View
1  res/layout/sites_layout.xml
@@ -26,6 +26,7 @@ limitations under the License.
android:cacheColorHint="@color/transparent"
android:childDivider="@drawable/list_divider"
android:divider="@drawable/list_divider"
+ android:dividerHeight="1px"
android:fastScrollEnabled="true"
android:listSelector="@color/transparent"
android:background="@color/white"
View
3  res/layout/topic_body_layout.xml
@@ -33,7 +33,6 @@ limitations under the License.
android:padding="4dip"
android:src="@drawable/default_gravatar"
android:contentDescription="@string/alt_avatar"
- android:background="@drawable/image_button_bg_selector"
/>
<TextView
android:id="@+id/title"
@@ -73,6 +72,6 @@ limitations under the License.
android:background="#ffffffff"
android:padding="10.0dip"
android:textSize="18.0sp"
- android:textAppearance="@style/RCTextAppearance"
+ android:textColor="#ff464646"
/>
</RelativeLayout>
View
1  res/layout/topic_detail_layout.xml
@@ -49,6 +49,7 @@ limitations under the License.
android:layout_toLeftOf="@+id/ic_reply"
android:hint="@string/hint_reply_via_web"
android:layout_centerVertical="true"
+ android:enabled="false"
/>
<ImageView
android:id="@+id/ic_reply"
View
2  res/layout/topic_item.xml
@@ -65,6 +65,6 @@ limitations under the License.
android:layout_centerVertical="true"
android:gravity="center"
android:textSize="16sp"
- android:textColor="#FFFFFFFF"
+ android:textColor="@color/ruby_china_section_text"
/>
</RelativeLayout>
View
2  res/layout/user_topic_item.xml
@@ -43,6 +43,6 @@ limitations under the License.
android:layout_centerVertical="true"
android:gravity="center"
android:textSize="16sp"
- android:textColor="#FFFFFFFF"
+ android:textColor="@color/ruby_china_section_text"
/>
</RelativeLayout>
View
8 res/values/colors.xml
@@ -32,4 +32,12 @@ limitations under the License.
<color name="ruby_china_blue">#ff33b5e5</color>
<color name="ruby_china_half_blue">#8833b5e5</color>
<color name="ruby_china_dark_blue">#ff0099cc</color>
+
+ <color name="ruby_china_action_bar_bg">#ff292929</color>
+ <color name="ruby_china_yellow">#ffffbb33</color>
+ <color name="ruby_china_half_yellow">#88ffbb33</color>
+ <color name="ruby_china_dark_yellow">#ffff8800</color>
+
+ <color name="ruby_china_section_text">#ff8ba5d2</color>
+ <color name="ruby_china_section_bg">#fff3f5f7</color>
</resources>
View
45 res/values/styles.xml
@@ -15,44 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
- <style name="Theme" parent="@android:style/Theme" />
- <style name="Theme.PlainText" parent="@style/Theme">
- <item name="android:textAppearance">@style/TextAppearance.Theme.PlainText</item>
- </style>
- <style name="TextAppearance.Theme.PlainText" parent="@android:style/TextAppearance.Theme">
- <item name="android:textStyle">normal</item>
- </style>
- <style name="RCTextAppearance" parent="@android:style/TextAppearance">
- <item name="android:textColor">#ff464646</item>
- </style>
- <style name="RCTitleAppearance" parent="@android:style/TextAppearance">
- <item name="android:textSize">14.0sp</item>
- <item name="android:textStyle">bold</item>
- <item name="android:textColor">#fff6f6f6</item>
- <item name="android:singleLine">true</item>
- <item name="android:shadowColor">#bb000000</item>
- <item name="android:shadowRadius">2.75</item>
- </style>
- <style name="RCButtonAppearance" parent="@android:style/Widget.Button">
- <item name="android:textColor">#ff464646</item>
- </style>
- <style name="RCSectionHeader" parent="@android:style/Widget.TextView">
- <item name="android:textSize">16.0dip</item>
- <item name="android:textStyle">bold</item>
- <item name="android:paddingLeft">6.0dip</item>
- <item name="android:paddingTop">2.0dip</item>
- <item name="android:paddingRight">4.0dip</item>
- <item name="android:paddingBottom">5.0dip</item>
- <item name="android:layout_marginLeft">1.0px</item>
- <item name="android:layout_marginTop">1.0px</item>
- <item name="android:layout_marginRight">1.0px</item>
- <item name="android:shadowColor">#ffffffff</item>
- <item name="android:shadowDx">0.0</item>
- <item name="android:shadowDy">2.0</item>
- <item name="android:shadowRadius">1.0</item>
- </style>
-
- <style name="Theme.RubyChina" parent="Theme.Sherlock.Light.ForceOverflow">
+ <style name="Theme.RubyChina" parent="Theme.Sherlock.Light.DarkActionBar">
<item name="android:actionBarItemBackground">@drawable/rc_selectable_background</item>
<item name="actionBarItemBackground">@drawable/rc_selectable_background</item>
@@ -65,12 +28,12 @@ limitations under the License.
</style>
<!-- style for the action -->
- <style name="RubyChinaActionBarStyle" parent="Widget.Sherlock.Light.ActionBar">
- <item name="android:background">@color/white</item>
+ <style name="RubyChinaActionBarStyle" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
+ <item name="android:background">@color/ruby_china_action_bar_bg</item>
</style>
<!-- style for the tabs -->
- <style name="RubyChinaActionBarTabStyle" parent="Widget.Sherlock.Light.ActionBar.TabBar">
+ <style name="RubyChinaActionBarTabStyle" parent="Widget.Sherlock.Light.ActionBar.TabBar.Inverse">
<item name="android:background">@drawable/actionbar_tab_bg</item>
<item name="android:gravity">center</item>
</style>
Please sign in to comment.
Something went wrong with that request. Please try again.