Skip to content

Commit

Permalink
Added new format bar icons and selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
aforcier committed Apr 16, 2015
1 parent 8303e45 commit 14c3938
Show file tree
Hide file tree
Showing 79 changed files with 218 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_bold_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_bold_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_bold_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_bold"
android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_html_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_html_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_html_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_html"
android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_italic_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_italic_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_italic_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_italic"
android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_link_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_link_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_link_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_link"
android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_media_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_media_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_media_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_media"
android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_ol_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_ol_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_ol_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_ol"
android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_quote_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_quote_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_quote_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_quote"
android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_ul_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_ul_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_ul_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_ul"
android:gravity="center"/>
</item>
</selector>
3 changes: 3 additions & 0 deletions WordPressEditor/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
<color name="format_bar_background">#eeeeee</color>
<color name="image_options_label">#cccccc</color>
<color name="pressed_wordpress">#CC78C8E6</color>

<color name="format_bar_button_normal_color">@color/wp_gray</color>
<color name="format_bar_button_highlighted_color">@color/wp_blue</color>
</resources>
2 changes: 2 additions & 0 deletions WordPressEditor/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="format_bar_height">40dp</dimen>
<dimen name="format_bar_button_underline_top">37dp</dimen>
<dimen name="format_bar_button_underline_width">2dp</dimen>
<dimen name="post_editor_content_side_margin">20dp</dimen>


Expand Down
5 changes: 5 additions & 0 deletions WordPressEditor/src/main/res/values/wp_colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="wp_gray">#87a6bc</color>
<color name="wp_blue">#0087be</color>
</resources>

0 comments on commit 14c3938

Please sign in to comment.