Skip to content

Commit

Permalink
Renamed legacy editor button selectors and images
Browse files Browse the repository at this point in the history
  • Loading branch information
aforcier committed Apr 16, 2015
1 parent 6195fe0 commit 8303e45
Show file tree
Hide file tree
Showing 72 changed files with 88 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private WPEditImageSpan createWPEditImageSpanLocal(Context context, MediaFile me
}

private WPEditImageSpan createWPEditImageSpanRemote(Context context, MediaFile mediaFile) {
int drawable = mediaFile.isVideo() ? R.drawable.media_movieclip : R.drawable.dashicon_format_image_big_grey;
int drawable = mediaFile.isVideo() ? R.drawable.media_movieclip : R.drawable.legacy_dashicon_format_image_big_grey;
Uri uri = Uri.parse(mediaFile.getFileURL());
WPEditImageSpan imageSpan = new WPEditImageSpan(context, drawable, uri);
imageSpan.setMediaFile(mediaFile);
Expand Down Expand Up @@ -1046,7 +1046,7 @@ public void appendGallery(MediaGallery mediaGallery) {

editableText.insert(selectionStart, " ");
MediaGalleryImageSpan is = new MediaGalleryImageSpan(getActivity(), mediaGallery,
R.drawable.icon_mediagallery_placeholder);
R.drawable.legacy_icon_mediagallery_placeholder);
editableText.setSpan(is, selectionStart, selectionEnd + 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
AlignmentSpan.Standard as = new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER);
editableText.setSpan(as, selectionStart, selectionEnd + 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</shape>
</item>
<item>
<bitmap android:src="@drawable/dashicon_editor_bold" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_editor_bold" android:gravity="center"/>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?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 android:state_checked="true" android:drawable="@drawable/legacy_format_bar_button_bold_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_bold_selected_state"/>
<item>
<bitmap android:src="@drawable/dashicon_admin_links_grey" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_editor_bold_grey" android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</shape>
</item>
<item>
<bitmap android:src="@drawable/dashicon_admin_links" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_editor_italic" android:gravity="center"/>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?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 android:state_checked="true" android:drawable="@drawable/legacy_format_bar_button_italic_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_italic_selected_state"/>
<item>
<bitmap android:src="@drawable/dashicon_editor_italic_grey" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_editor_italic_grey" android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</shape>
</item>
<item>
<bitmap android:src="@drawable/dashicon_editor_insertmore" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_admin_links" android:gravity="center"/>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?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 android:state_checked="true" android:drawable="@drawable/legacy_format_bar_button_link_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_link_selected_state"/>
<item>
<bitmap android:src="@drawable/dashicon_editor_bold_grey" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_admin_links_grey" android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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 android:state_checked="true" android:drawable="@drawable/legacy_format_bar_button_media_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_media_selected_state"/>
<item>
<bitmap android:src="@drawable/noticon_picture_grey" android:gravity="center"/>
</item>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/format_bar_button_selected"/>
</shape>
</item>
<item>
<bitmap android:src="@drawable/legacy_dashicon_editor_insertmore" android:gravity="center"/>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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/legacy_format_bar_button_more_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_more_selected_state"/>
<item>
<bitmap android:src="@drawable/legacy_dashicon_editor_insertmore_grey" android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</shape>
</item>
<item>
<bitmap android:src="@drawable/dashicon_editor_italic" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_format_quote" android:gravity="center"/>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?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_more_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_more_selected_state"/>
<item android:state_checked="true" android:drawable="@drawable/legacy_format_bar_button_quote_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_quote_selected_state"/>
<item>
<bitmap android:src="@drawable/dashicon_editor_insertmore_grey" android:gravity="center"/>
<bitmap android:src="@drawable/legacy_dashicon_format_quote_grey" android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/format_bar_button_selected"/>
</shape>
</item>
<item>
<bitmap android:src="@drawable/legacy_dashicon_editor_strikethrough" android:gravity="center"/>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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/legacy_format_bar_button_strike_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_strike_selected_state"/>
<item>
<bitmap android:src="@drawable/legacy_dashicon_editor_strikethrough_grey" android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/format_bar_button_selected"/>
</shape>
</item>
<item>
<bitmap android:src="@drawable/legacy_dashicon_editor_underline" android:gravity="center"/>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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/legacy_format_bar_button_underline_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_underline_selected_state"/>
<item>
<bitmap android:src="@drawable/legacy_dashicon_editor_underline_grey" android:gravity="center"/>
</item>
</selector>
Original file line number Diff line number Diff line change
Expand Up @@ -100,49 +100,49 @@
style="@style/ToggleButton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/format_bar_button_bold_selector" />
android:background="@drawable/legacy_format_bar_button_bold_selector" />

<ToggleButton
android:id="@+id/em"
style="@style/ToggleButton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/format_bar_button_italic_selector" />
android:background="@drawable/legacy_format_bar_button_italic_selector" />

<ToggleButton
android:id="@+id/underline"
style="@style/ToggleButton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/format_bar_button_underline_selector" />
android:background="@drawable/legacy_format_bar_button_underline_selector" />

<ToggleButton
android:id="@+id/strike"
style="@style/ToggleButton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/format_bar_button_strike_selector" />
android:background="@drawable/legacy_format_bar_button_strike_selector" />

<ToggleButton
android:id="@+id/bquote"
style="@style/ToggleButton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/format_bar_button_quote_selector" />
android:background="@drawable/legacy_format_bar_button_quote_selector" />

<Button
android:id="@+id/link"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:minWidth="@dimen/format_bar_height"
android:background="@drawable/format_bar_button_link_selector" />
android:background="@drawable/legacy_format_bar_button_link_selector" />

<Button
android:id="@+id/more"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:minWidth="@dimen/format_bar_height"
android:background="@drawable/format_bar_button_more_selector" />
android:background="@drawable/legacy_format_bar_button_more_selector" />
</LinearLayout>
</HorizontalScrollView>

Expand All @@ -151,7 +151,7 @@
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:minWidth="@dimen/format_bar_height"
android:background="@drawable/format_bar_button_media_selector" />
android:background="@drawable/legacy_format_bar_button_media_selector" />
</LinearLayout>

</LinearLayout>

0 comments on commit 8303e45

Please sign in to comment.