diff options
Diffstat (limited to 'libs/editor/WordPressEditor/src/main/res')
159 files changed, 2201 insertions, 0 deletions
diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ab_icon_edit.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ab_icon_edit.png Binary files differnew file mode 100644 index 000000000..4b8f443e1 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ab_icon_edit.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/format_bar_chevron.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/format_bar_chevron.png Binary files differnew file mode 100644 index 000000000..d47a4f1ce --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/format_bar_chevron.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ic_close_white_24dp.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ic_close_white_24dp.png Binary files differnew file mode 100644 index 000000000..0fd15563a --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ic_close_white_24dp.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ic_post_settings.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ic_post_settings.png Binary files differnew file mode 100644 index 000000000..4e4959dcd --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/ic_post_settings.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_admin_links.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_admin_links.png Binary files differnew file mode 100644 index 000000000..55fb8739a --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_admin_links.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_admin_links_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_admin_links_grey.png Binary files differnew file mode 100644 index 000000000..5b66e714c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_admin_links_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_bold.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_bold.png Binary files differnew file mode 100644 index 000000000..0ba4b95e8 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_bold.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_bold_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_bold_grey.png Binary files differnew file mode 100644 index 000000000..fc896135d --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_bold_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_insertmore.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_insertmore.png Binary files differnew file mode 100644 index 000000000..444f735ab --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_insertmore.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_insertmore_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_insertmore_grey.png Binary files differnew file mode 100644 index 000000000..32411efc7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_insertmore_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_italic.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_italic.png Binary files differnew file mode 100644 index 000000000..48db52143 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_italic.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_italic_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_italic_grey.png Binary files differnew file mode 100644 index 000000000..eea6add02 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_italic_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_strikethrough.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_strikethrough.png Binary files differnew file mode 100644 index 000000000..7cb2dcd30 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_strikethrough.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_strikethrough_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_strikethrough_grey.png Binary files differnew file mode 100644 index 000000000..90354d05d --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_strikethrough_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_underline.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_underline.png Binary files differnew file mode 100644 index 000000000..7e14c49a5 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_underline.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_underline_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_underline_grey.png Binary files differnew file mode 100644 index 000000000..978f97519 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_editor_underline_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_image_big_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_image_big_grey.png Binary files differnew file mode 100644 index 000000000..a61883996 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_image_big_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_quote.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_quote.png Binary files differnew file mode 100644 index 000000000..7f7c5181e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_quote.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_quote_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_quote_grey.png Binary files differnew file mode 100644 index 000000000..4dc307fc7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_dashicon_format_quote_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_icon_mediagallery_placeholder.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_icon_mediagallery_placeholder.png Binary files differnew file mode 100644 index 000000000..9e2b6e412 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/legacy_icon_mediagallery_placeholder.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/list_focused_wordpress.9.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/list_focused_wordpress.9.png Binary files differnew file mode 100644 index 000000000..130a206d3 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/list_focused_wordpress.9.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/media_icon_32dp.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/media_icon_32dp.png Binary files differnew file mode 100644 index 000000000..046432898 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/media_icon_32dp.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/media_movieclip.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/media_movieclip.png Binary files differnew file mode 100644 index 000000000..bb49bcdc2 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/media_movieclip.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/noticon_picture.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/noticon_picture.png Binary files differnew file mode 100644 index 000000000..7900b9283 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/noticon_picture.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/noticon_picture_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/noticon_picture_grey.png Binary files differnew file mode 100644 index 000000000..c4ca1c13c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-hdpi/noticon_picture_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ab_icon_edit.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ab_icon_edit.png Binary files differnew file mode 100644 index 000000000..46d12a96d --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ab_icon_edit.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/format_bar_chevron.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/format_bar_chevron.png Binary files differnew file mode 100644 index 000000000..03b57a17c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/format_bar_chevron.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ic_close_white_24dp.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ic_close_white_24dp.png Binary files differnew file mode 100644 index 000000000..76e07f097 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ic_close_white_24dp.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ic_post_settings.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ic_post_settings.png Binary files differnew file mode 100644 index 000000000..3e2020016 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/ic_post_settings.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_admin_links.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_admin_links.png Binary files differnew file mode 100644 index 000000000..eef4505a5 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_admin_links.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_admin_links_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_admin_links_grey.png Binary files differnew file mode 100644 index 000000000..f545cd651 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_admin_links_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_bold.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_bold.png Binary files differnew file mode 100644 index 000000000..4519f6c04 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_bold.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_bold_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_bold_grey.png Binary files differnew file mode 100644 index 000000000..b85e41382 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_bold_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_insertmore.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_insertmore.png Binary files differnew file mode 100644 index 000000000..61ae586af --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_insertmore.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_insertmore_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_insertmore_grey.png Binary files differnew file mode 100644 index 000000000..912987466 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_insertmore_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_italic.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_italic.png Binary files differnew file mode 100644 index 000000000..dbcea3513 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_italic.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_italic_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_italic_grey.png Binary files differnew file mode 100644 index 000000000..6a776b669 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_italic_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_strikethrough.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_strikethrough.png Binary files differnew file mode 100644 index 000000000..006acefc1 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_strikethrough.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_strikethrough_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_strikethrough_grey.png Binary files differnew file mode 100644 index 000000000..c18266381 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_strikethrough_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_underline.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_underline.png Binary files differnew file mode 100644 index 000000000..c3c76dbc8 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_underline.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_underline_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_underline_grey.png Binary files differnew file mode 100644 index 000000000..f728bd9cf --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_editor_underline_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_image_big_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_image_big_grey.png Binary files differnew file mode 100644 index 000000000..95dbdd936 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_image_big_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_quote.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_quote.png Binary files differnew file mode 100644 index 000000000..164881f53 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_quote.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_quote_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_quote_grey.png Binary files differnew file mode 100644 index 000000000..797c88e8a --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_dashicon_format_quote_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_icon_mediagallery_placeholder.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_icon_mediagallery_placeholder.png Binary files differnew file mode 100644 index 000000000..f3fe14ad3 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/legacy_icon_mediagallery_placeholder.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/list_focused_wordpress.9.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/list_focused_wordpress.9.png Binary files differnew file mode 100644 index 000000000..3dbd3937d --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/list_focused_wordpress.9.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/media_icon_32dp.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/media_icon_32dp.png Binary files differnew file mode 100644 index 000000000..8c39cc8aa --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/media_icon_32dp.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/media_movieclip.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/media_movieclip.png Binary files differnew file mode 100644 index 000000000..d1dfae9ea --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/media_movieclip.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/noticon_picture.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/noticon_picture.png Binary files differnew file mode 100644 index 000000000..95bffba31 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/noticon_picture.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/noticon_picture_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/noticon_picture_grey.png Binary files differnew file mode 100644 index 000000000..d6aeb0e3d --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xhdpi/noticon_picture_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ab_icon_edit.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ab_icon_edit.png Binary files differnew file mode 100644 index 000000000..8c5d06a79 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ab_icon_edit.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/format_bar_chevron.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/format_bar_chevron.png Binary files differnew file mode 100644 index 000000000..110b8ba5a --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/format_bar_chevron.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ic_close_white_24dp.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ic_close_white_24dp.png Binary files differnew file mode 100644 index 000000000..0eb9d8b08 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ic_close_white_24dp.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ic_post_settings.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ic_post_settings.png Binary files differnew file mode 100644 index 000000000..14c9186ef --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/ic_post_settings.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_admin_links.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_admin_links.png Binary files differnew file mode 100644 index 000000000..724dea05e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_admin_links.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_admin_links_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_admin_links_grey.png Binary files differnew file mode 100644 index 000000000..a6746556a --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_admin_links_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_bold.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_bold.png Binary files differnew file mode 100644 index 000000000..2fc4e42a1 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_bold.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_bold_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_bold_grey.png Binary files differnew file mode 100644 index 000000000..0a48139a0 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_bold_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_insertmore.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_insertmore.png Binary files differnew file mode 100644 index 000000000..05437d16b --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_insertmore.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_insertmore_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_insertmore_grey.png Binary files differnew file mode 100644 index 000000000..91541b529 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_insertmore_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_italic.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_italic.png Binary files differnew file mode 100644 index 000000000..f1d118b74 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_italic.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_italic_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_italic_grey.png Binary files differnew file mode 100644 index 000000000..3a684e978 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_italic_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_strikethrough.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_strikethrough.png Binary files differnew file mode 100644 index 000000000..35d6579b5 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_strikethrough.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_strikethrough_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_strikethrough_grey.png Binary files differnew file mode 100644 index 000000000..2e9e30f5c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_strikethrough_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_underline.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_underline.png Binary files differnew file mode 100644 index 000000000..fb8558945 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_underline.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_underline_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_underline_grey.png Binary files differnew file mode 100644 index 000000000..9f1b612d6 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_editor_underline_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_image_big_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_image_big_grey.png Binary files differnew file mode 100644 index 000000000..3a608ed32 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_image_big_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_quote.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_quote.png Binary files differnew file mode 100644 index 000000000..daa89ba17 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_quote.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_quote_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_quote_grey.png Binary files differnew file mode 100644 index 000000000..240493fb3 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_dashicon_format_quote_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_icon_mediagallery_placeholder.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_icon_mediagallery_placeholder.png Binary files differnew file mode 100644 index 000000000..40976b210 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/legacy_icon_mediagallery_placeholder.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/media_icon_32dp.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/media_icon_32dp.png Binary files differnew file mode 100644 index 000000000..7ec4e9b25 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/media_icon_32dp.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/media_movieclip.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/media_movieclip.png Binary files differnew file mode 100644 index 000000000..90e9b768a --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/media_movieclip.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/noticon_picture.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/noticon_picture.png Binary files differnew file mode 100644 index 000000000..a132b6da3 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/noticon_picture.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/noticon_picture_grey.png b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/noticon_picture_grey.png Binary files differnew file mode 100644 index 000000000..7b8ff9608 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable-xxhdpi/noticon_picture_grey.png diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold.xml new file mode 100755 index 000000000..82788b1fb --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M17,15.009h4.547c2.126,0,3.671,0.303,4.632,0.907c0.962,0.605,1.442,1.567,1.442,2.887 +c0,0.896-0.211,1.63-0.631,2.205c-0.421,0.574-0.98,0.919-1.678,1.036v0.103c0.951,0.212,1.637,0.608,2.057,1.189 +C27.79,23.916,28,24.688,28,25.652c0,1.367-0.494,2.434-1.482,3.199C25.529,29.617,24.186,30,22.491,30H17V15.009z +M20,20.946 +h2.027c0.862,0,1.486-0.133,1.872-0.4c0.387-0.267,0.579-0.708,0.579-1.323c0-0.574-0.21-0.986-0.63-1.236 +c-0.421-0.249-1.087-0.374-1.996-0.374H20V20.946z +M20,23.469v3.906h2.253c0.876,0,1.521-0.167,1.939-0.502 +s0.626-0.848,0.626-1.539c0-1.244-0.889-1.865-2.668-1.865H20z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_disabled.xml new file mode 100755 index 000000000..1a6fc6313 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_disabled.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M17,15.009h4.547c2.126,0,3.671,0.303,4.632,0.907c0.962,0.605,1.442,1.567,1.442,2.887 +c0,0.896-0.211,1.63-0.631,2.205c-0.421,0.574-0.98,0.919-1.678,1.036v0.103c0.951,0.212,1.637,0.608,2.057,1.189 +C27.79,23.916,28,24.688,28,25.652c0,1.367-0.494,2.434-1.482,3.199C25.529,29.617,24.186,30,22.491,30H17V15.009z +M20,20.946 +h2.027c0.862,0,1.486-0.133,1.872-0.4c0.387-0.267,0.579-0.708,0.579-1.323c0-0.574-0.21-0.986-0.63-1.236 +c-0.421-0.249-1.087-0.374-1.996-0.374H20V20.946z +M20,23.469v3.906h2.253c0.876,0,1.521-0.167,1.939-0.502 +s0.626-0.848,0.626-1.539c0-1.244-0.889-1.865-2.668-1.865H20z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_highlighted.xml new file mode 100755 index 000000000..cdb305cc5 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_highlighted.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M17,15.009h4.547c2.126,0,3.671,0.303,4.632,0.907c0.962,0.605,1.442,1.567,1.442,2.887 +c0,0.896-0.211,1.63-0.631,2.205c-0.421,0.574-0.98,0.919-1.678,1.036v0.103c0.951,0.212,1.637,0.608,2.057,1.189 +C27.79,23.916,28,24.688,28,25.652c0,1.367-0.494,2.434-1.482,3.199C25.529,29.617,24.186,30,22.491,30H17V15.009z +M20,20.946 +h2.027c0.862,0,1.486-0.133,1.872-0.4c0.387-0.267,0.579-0.708,0.579-1.323c0-0.574-0.21-0.986-0.63-1.236 +c-0.421-0.249-1.087-0.374-1.996-0.374H20V20.946z +M20,23.469v3.906h2.253c0.876,0,1.521-0.167,1.939-0.502 +s0.626-0.848,0.626-1.539c0-1.244-0.889-1.865-2.668-1.865H20z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_selector.xml new file mode 100755 index 000000000..e35075d61 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_bold_selector.xml @@ -0,0 +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_bold_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_bold_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_bold_disabled"/> + <item android:drawable="@drawable/format_bar_button_bold"/> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html.xml new file mode 100755 index 000000000..96b241307 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html.xml @@ -0,0 +1,18 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44.0" + android:viewportHeight="44.0"> + <path + android:pathData="M13.93,26H12.79v-4.16H9.17V26H8.04v-9h1.13v3.87h3.62V17h1.14V26z" + android:fillColor="#A6BCCC"/> + <path + android:pathData="M20.97,17.97H18.6V26h-1.13v-8.03h-2.36V17h5.86V17.97z" + android:fillColor="#A6BCCC"/> + <path + android:pathData="M23.75,17l2.35,7.34L28.45,17h1.46v9h-1.13v-3.51l0.1,-3.51L26.53,26h-0.87l-2.34,-6.99l0.1,3.49V26h-1.13v-9H23.75z" + android:fillColor="#A6BCCC"/> + <path + android:pathData="M33,25.03h3.53V26h-4.67v-9h1.14V25.03z" + android:fillColor="#A6BCCC"/> +</vector> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_disabled.xml new file mode 100755 index 000000000..6e5b8074e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_disabled.xml @@ -0,0 +1,18 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44.0" + android:viewportHeight="44.0"> + <path + android:pathData="M13.93,26H12.79v-4.16H9.17V26H8.04v-9h1.13v3.87h3.62V17h1.14V26z" + android:fillColor="#E8EEF2"/> + <path + android:pathData="M20.97,17.97H18.6V26h-1.13v-8.03h-2.36V17h5.86V17.97z" + android:fillColor="#E8EEF2"/> + <path + android:pathData="M23.75,17l2.35,7.34L28.45,17h1.46v9h-1.13v-3.51l0.1,-3.51L26.53,26h-0.87l-2.34,-6.99l0.1,3.49V26h-1.13v-9H23.75z" + android:fillColor="#E8EEF2"/> + <path + android:pathData="M33,25.03h3.53V26h-4.67v-9h1.14V25.03z" + android:fillColor="#E8EEF2"/> +</vector> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_highlighted.xml new file mode 100755 index 000000000..331d9a8f9 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_highlighted.xml @@ -0,0 +1,19 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44.0" + android:viewportHeight="44.0"> + <path android:fillColor="#E1EBF1" android:pathData="M0,0h44v44h-44z"/> + <path + android:pathData="M13.93,26H12.79v-4.16H9.17V26H8.04v-9h1.13v3.87h3.62V17h1.14V26z" + android:fillColor="#A6BCCC"/> + <path + android:pathData="M20.97,17.97H18.6V26h-1.13v-8.03h-2.36V17h5.86V17.97z" + android:fillColor="#A6BCCC"/> + <path + android:pathData="M23.75,17l2.35,7.34L28.45,17h1.46v9h-1.13v-3.51l0.1,-3.51L26.53,26h-0.87l-2.34,-6.99l0.1,3.49V26h-1.13v-9H23.75z" + android:fillColor="#A6BCCC"/> + <path + android:pathData="M33,25.03h3.53V26h-4.67v-9h1.14V25.03z" + android:fillColor="#A6BCCC"/> +</vector> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_selector.xml new file mode 100755 index 000000000..767d6dd6b --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_html_selector.xml @@ -0,0 +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_html_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_html_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_html_disabled"/> + <item android:drawable="@drawable/format_bar_button_html"/> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic.xml new file mode 100755 index 000000000..bf4a9ae27 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M 20.536 15 L 20.109 17 L 21.609 17 L 19.263 28 L 17.763 28 L 17.336 30 L 23.464 30 L 23.89 28 L 22.39 28 L 24.737 17 L 26.237 17 L 26.664 15 Z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_disabled.xml new file mode 100755 index 000000000..acb50bd33 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_disabled.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M 20.536 15 L 20.109 17 L 21.609 17 L 19.263 28 L 17.763 28 L 17.336 30 L 23.464 30 L 23.89 28 L 22.39 28 L 24.737 17 L 26.237 17 L 26.664 15 Z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_highlighted.xml new file mode 100755 index 000000000..7c8e4de79 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_highlighted.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M 20.536 15 L 20.109 17 L 21.609 17 L 19.263 28 L 17.763 28 L 17.336 30 L 23.464 30 L 23.89 28 L 22.39 28 L 24.737 17 L 26.237 17 L 26.664 15 Z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_selector.xml new file mode 100755 index 000000000..6136a6805 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_italic_selector.xml @@ -0,0 +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_italic_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_italic_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_italic_disabled"/> + <item android:drawable="@drawable/format_bar_button_italic"/> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link.xml new file mode 100755 index 000000000..9ca70c1b8 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M27,23H17v-2h10V23z +M28,17h-1c-1.631,0-3.065,0.792-3.977,2H27h1c1.103,0,2,0.897,2,2v2 +c0,1.103-0.897,2-2,2h-1h-3.977c0.913,1.208,2.347,2,3.977,2h1c2.209,0,4-1.791,4-4v-2C32,18.791,30.209,17,28,17z +M12,21v2 +c0,2.209,1.791,4,4,4h1c1.63,0,3.065-0.792,3.977-2H17h-1c-1.103,0-2-0.897-2-2v-2c0-1.103,0.897-2,2-2h1h3.977 +c-0.913-1.208-2.347-2-3.977-2h-1C13.791,17,12,18.791,12,21z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_disabled.xml new file mode 100755 index 000000000..d1b4d83f2 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_disabled.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M27,23H17v-2h10V23z +M28,17h-1c-1.631,0-3.065,0.792-3.977,2H27h1c1.103,0,2,0.897,2,2v2 +c0,1.103-0.897,2-2,2h-1h-3.977c0.913,1.208,2.347,2,3.977,2h1c2.209,0,4-1.791,4-4v-2C32,18.791,30.209,17,28,17z +M12,21v2 +c0,2.209,1.791,4,4,4h1c1.63,0,3.065-0.792,3.977-2H17h-1c-1.103,0-2-0.897-2-2v-2c0-1.103,0.897-2,2-2h1h3.977 +c-0.913-1.208-2.347-2-3.977-2h-1C13.791,17,12,18.791,12,21z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_highlighted.xml new file mode 100755 index 000000000..6ce750b27 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_highlighted.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M27,23H17v-2h10V23z +M28,17h-1c-1.631,0-3.065,0.792-3.977,2H27h1c1.103,0,2,0.897,2,2v2 +c0,1.103-0.897,2-2,2h-1h-3.977c0.913,1.208,2.347,2,3.977,2h1c2.209,0,4-1.791,4-4v-2C32,18.791,30.209,17,28,17z +M12,21v2 +c0,2.209,1.791,4,4,4h1c1.63,0,3.065-0.792,3.977-2H17h-1c-1.103,0-2-0.897-2-2v-2c0-1.103,0.897-2,2-2h1h3.977 +c-0.913-1.208-2.347-2-3.977-2h-1C13.791,17,12,18.791,12,21z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_selector.xml new file mode 100755 index 000000000..eaad54d27 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_link_selector.xml @@ -0,0 +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_link_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_link_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_link_disabled"/> + <item android:drawable="@drawable/format_bar_button_link"/> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media.xml new file mode 100755 index 000000000..231c3dce9 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M33,14v2h-3v3h-2v-3h-3v-2h3v-3h2v3H33z +M24.5,21c0.828,0,1.5-0.672,1.5-1.5S25.328,18,24.5,18 +S23,18.672,23,19.5S23.672,21,24.5,21z +M28,24.234l-0.513-0.57c-0.794-0.885-2.181-0.885-2.976,0l-0.656,0.731L19,19l-3,3.333V16h7 +v-2h-7c-1.105,0-2,0.895-2,2v12c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2v-7h-2V24.234z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_disabled.xml new file mode 100755 index 000000000..d06f52747 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_disabled.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M33,14v2h-3v3h-2v-3h-3v-2h3v-3h2v3H33z +M24.5,21c0.828,0,1.5-0.672,1.5-1.5S25.328,18,24.5,18 +S23,18.672,23,19.5S23.672,21,24.5,21z +M28,24.234l-0.513-0.57c-0.794-0.885-2.181-0.885-2.976,0l-0.656,0.731L19,19l-3,3.333V16h7 +v-2h-7c-1.105,0-2,0.895-2,2v12c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2v-7h-2V24.234z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_highlighted.xml new file mode 100755 index 000000000..058e338f4 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_highlighted.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M33,14v2h-3v3h-2v-3h-3v-2h3v-3h2v3H33z +M24.5,21c0.828,0,1.5-0.672,1.5-1.5S25.328,18,24.5,18 +S23,18.672,23,19.5S23.672,21,24.5,21z +M28,24.234l-0.513-0.57c-0.794-0.885-2.181-0.885-2.976,0l-0.656,0.731L19,19l-3,3.333V16h7 +v-2h-7c-1.105,0-2,0.895-2,2v12c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2v-7h-2V24.234z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_selector.xml new file mode 100755 index 000000000..d0c31e294 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_media_selector.xml @@ -0,0 +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_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_media_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_media_disabled"/> + <item android:drawable="@drawable/format_bar_button_media"/> +</selector> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more.xml new file mode 100755 index 000000000..38d270bd7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M13,15h18v4H13V15z M13,29h18v-4H13V29z M19,23h6v-2h-6V23z M13,23h4v-2h-4V23z +M27,23h4v-2h-4V23z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more_disabled.xml new file mode 100755 index 000000000..614bbad28 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more_disabled.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M13,15h18v4H13V15z M13,29h18v-4H13V29z M19,23h6v-2h-6V23z M13,23h4v-2h-4V23z +M27,23h4v-2h-4V23z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more_highlighted.xml new file mode 100755 index 000000000..aa3eff018 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_more_highlighted.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M13,15h18v4H13V15z M13,29h18v-4H13V29z M19,23h6v-2h-6V23z M13,23h4v-2h-4V23z +M27,23h4v-2h-4V23z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol.xml new file mode 100755 index 000000000..a7160f486 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M18,29h13v-2H18V29z M18,23h13v-2H18V23z M18,15v2h13v-2H18z M13.575,15.252 +c0.107-0.096,0.197-0.188,0.269-0.275c-0.012,0.228-0.018,0.48-0.018,0.756V18h1.175v-4.283h-1.042l-1.471,1.198l0.601,0.738 +L13.575,15.252z +M13.909,23.016c0.475-0.426,0.785-0.715,0.93-0.867c0.146-0.152,0.262-0.297,0.35-0.435 +c0.088-0.138,0.153-0.278,0.195-0.42c0.042-0.143,0.063-0.298,0.063-0.466c0-0.225-0.06-0.427-0.18-0.608s-0.289-0.32-0.507-0.417 +c-0.218-0.099-0.465-0.148-0.742-0.148c-0.221,0-0.419,0.022-0.596,0.067s-0.34,0.11-0.491,0.195 +c-0.15,0.085-0.336,0.226-0.557,0.423l0.636,0.744c0.174-0.15,0.33-0.264,0.467-0.341c0.138-0.077,0.274-0.116,0.409-0.116 +c0.131,0,0.233,0.032,0.305,0.097c0.072,0.064,0.108,0.152,0.108,0.264c0,0.09-0.018,0.176-0.054,0.258 +c-0.036,0.082-0.1,0.18-0.192,0.294c-0.092,0.114-0.287,0.328-0.586,0.64l-1.046,1.058V24h3.108v-0.955h-1.62V23.016L13.909,23.016 +z +M14.439,27.762v-0.018c0.307-0.086,0.541-0.225,0.703-0.414c0.162-0.191,0.243-0.419,0.243-0.685 +c0-0.309-0.126-0.551-0.378-0.727c-0.252-0.176-0.6-0.264-1.043-0.264c-0.307,0-0.579,0.033-0.816,0.1 +c-0.237,0.067-0.469,0.178-0.696,0.334l0.48,0.773c0.293-0.184,0.576-0.275,0.85-0.275c0.147,0,0.263,0.027,0.35,0.082 +s0.13,0.139,0.13,0.252c0,0.301-0.294,0.451-0.882,0.451h-0.27v0.87h0.264c0.217,0,0.393,0.016,0.527,0.049 +c0.135,0.031,0.232,0.08,0.293,0.143c0.061,0.064,0.091,0.154,0.091,0.271c0,0.152-0.058,0.264-0.174,0.336 +c-0.116,0.07-0.301,0.106-0.555,0.106c-0.164,0-0.343-0.022-0.538-0.069c-0.194-0.045-0.385-0.116-0.573-0.212v0.961 +c0.228,0.088,0.441,0.148,0.637,0.182c0.196,0.033,0.41,0.05,0.64,0.05c0.561,0,0.998-0.114,1.314-0.343 +c0.315-0.228,0.473-0.542,0.473-0.94C15.512,28.19,15.154,27.852,14.439,27.762z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_disabled.xml new file mode 100755 index 000000000..f396c5737 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_disabled.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M18,29h13v-2H18V29z M18,23h13v-2H18V23z M18,15v2h13v-2H18z M13.575,15.252 +c0.107-0.096,0.197-0.188,0.269-0.275c-0.012,0.228-0.018,0.48-0.018,0.756V18h1.175v-4.283h-1.042l-1.471,1.198l0.601,0.738 +L13.575,15.252z +M13.909,23.016c0.475-0.426,0.785-0.715,0.93-0.867c0.146-0.152,0.262-0.297,0.35-0.435 +c0.088-0.138,0.153-0.278,0.195-0.42c0.042-0.143,0.063-0.298,0.063-0.466c0-0.225-0.06-0.427-0.18-0.608s-0.289-0.32-0.507-0.417 +c-0.218-0.099-0.465-0.148-0.742-0.148c-0.221,0-0.419,0.022-0.596,0.067s-0.34,0.11-0.491,0.195 +c-0.15,0.085-0.336,0.226-0.557,0.423l0.636,0.744c0.174-0.15,0.33-0.264,0.467-0.341c0.138-0.077,0.274-0.116,0.409-0.116 +c0.131,0,0.233,0.032,0.305,0.097c0.072,0.064,0.108,0.152,0.108,0.264c0,0.09-0.018,0.176-0.054,0.258 +c-0.036,0.082-0.1,0.18-0.192,0.294c-0.092,0.114-0.287,0.328-0.586,0.64l-1.046,1.058V24h3.108v-0.955h-1.62V23.016L13.909,23.016 +z +M14.439,27.762v-0.018c0.307-0.086,0.541-0.225,0.703-0.414c0.162-0.191,0.243-0.419,0.243-0.685 +c0-0.309-0.126-0.551-0.378-0.727c-0.252-0.176-0.6-0.264-1.043-0.264c-0.307,0-0.579,0.033-0.816,0.1 +c-0.237,0.067-0.469,0.178-0.696,0.334l0.48,0.773c0.293-0.184,0.576-0.275,0.85-0.275c0.147,0,0.263,0.027,0.35,0.082 +s0.13,0.139,0.13,0.252c0,0.301-0.294,0.451-0.882,0.451h-0.27v0.87h0.264c0.217,0,0.393,0.016,0.527,0.049 +c0.135,0.031,0.232,0.08,0.293,0.143c0.061,0.064,0.091,0.154,0.091,0.271c0,0.152-0.058,0.264-0.174,0.336 +c-0.116,0.07-0.301,0.106-0.555,0.106c-0.164,0-0.343-0.022-0.538-0.069c-0.194-0.045-0.385-0.116-0.573-0.212v0.961 +c0.228,0.088,0.441,0.148,0.637,0.182c0.196,0.033,0.41,0.05,0.64,0.05c0.561,0,0.998-0.114,1.314-0.343 +c0.315-0.228,0.473-0.542,0.473-0.94C15.512,28.19,15.154,27.852,14.439,27.762z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_highlighted.xml new file mode 100755 index 000000000..915e6c8bf --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_highlighted.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M18,29h13v-2H18V29z M18,23h13v-2H18V23z M18,15v2h13v-2H18z M13.575,15.252 +c0.107-0.096,0.197-0.188,0.269-0.275c-0.012,0.228-0.018,0.48-0.018,0.756V18h1.175v-4.283h-1.042l-1.471,1.198l0.601,0.738 +L13.575,15.252z +M13.909,23.016c0.475-0.426,0.785-0.715,0.93-0.867c0.146-0.152,0.262-0.297,0.35-0.435 +c0.088-0.138,0.153-0.278,0.195-0.42c0.042-0.143,0.063-0.298,0.063-0.466c0-0.225-0.06-0.427-0.18-0.608s-0.289-0.32-0.507-0.417 +c-0.218-0.099-0.465-0.148-0.742-0.148c-0.221,0-0.419,0.022-0.596,0.067s-0.34,0.11-0.491,0.195 +c-0.15,0.085-0.336,0.226-0.557,0.423l0.636,0.744c0.174-0.15,0.33-0.264,0.467-0.341c0.138-0.077,0.274-0.116,0.409-0.116 +c0.131,0,0.233,0.032,0.305,0.097c0.072,0.064,0.108,0.152,0.108,0.264c0,0.09-0.018,0.176-0.054,0.258 +c-0.036,0.082-0.1,0.18-0.192,0.294c-0.092,0.114-0.287,0.328-0.586,0.64l-1.046,1.058V24h3.108v-0.955h-1.62V23.016L13.909,23.016 +z +M14.439,27.762v-0.018c0.307-0.086,0.541-0.225,0.703-0.414c0.162-0.191,0.243-0.419,0.243-0.685 +c0-0.309-0.126-0.551-0.378-0.727c-0.252-0.176-0.6-0.264-1.043-0.264c-0.307,0-0.579,0.033-0.816,0.1 +c-0.237,0.067-0.469,0.178-0.696,0.334l0.48,0.773c0.293-0.184,0.576-0.275,0.85-0.275c0.147,0,0.263,0.027,0.35,0.082 +s0.13,0.139,0.13,0.252c0,0.301-0.294,0.451-0.882,0.451h-0.27v0.87h0.264c0.217,0,0.393,0.016,0.527,0.049 +c0.135,0.031,0.232,0.08,0.293,0.143c0.061,0.064,0.091,0.154,0.091,0.271c0,0.152-0.058,0.264-0.174,0.336 +c-0.116,0.07-0.301,0.106-0.555,0.106c-0.164,0-0.343-0.022-0.538-0.069c-0.194-0.045-0.385-0.116-0.573-0.212v0.961 +c0.228,0.088,0.441,0.148,0.637,0.182c0.196,0.033,0.41,0.05,0.64,0.05c0.561,0,0.998-0.114,1.314-0.343 +c0.315-0.228,0.473-0.542,0.473-0.94C15.512,28.19,15.154,27.852,14.439,27.762z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_selector.xml new file mode 100755 index 000000000..74b099634 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ol_selector.xml @@ -0,0 +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_ol_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_ol_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_ol_disabled"/> + <item android:drawable="@drawable/format_bar_button_ol"/> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote.xml new file mode 100755 index 000000000..9bcf8198c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M21.192,25.757c0-0.88-0.23-1.618-0.69-2.217c-0.326-0.412-0.768-0.683-1.327-0.812 +c-0.55-0.128-1.07-0.137-1.54-0.028c-0.16-0.95,0.1-1.956,0.76-3.022c0.66-1.065,1.515-1.867,2.558-2.403L19.372,15 +c-0.8,0.396-1.56,0.898-2.26,1.505c-0.71,0.607-1.34,1.305-1.9,2.094c-0.56,0.789-0.98,1.68-1.25,2.69 +c-0.27,1.01-0.345,2.04-0.216,3.1c0.168,1.4,0.62,2.52,1.356,3.35C15.837,28.58,16.754,29,17.85,29c0.965,0,1.766-0.29,2.4-0.878 +c0.628-0.576,0.94-1.365,0.94-2.368L21.192,25.757z +M30.316,25.757c0-0.88-0.23-1.618-0.69-2.217 +c-0.326-0.42-0.77-0.692-1.327-0.817c-0.56-0.124-1.073-0.13-1.54-0.022c-0.16-0.94,0.09-1.95,0.752-3.02 +c0.66-1.06,1.513-1.86,2.556-2.4L28.49,15c-0.8,0.396-1.555,0.898-2.26,1.505c-0.708,0.607-1.34,1.305-1.894,2.094 +c-0.556,0.79-0.97,1.68-1.24,2.69c-0.273,1.002-0.345,2.04-0.217,3.1c0.166,1.4,0.616,2.52,1.35,3.35 +c0.733,0.834,1.647,1.252,2.743,1.252c0.967,0,1.768-0.29,2.402-0.877c0.627-0.576,0.942-1.365,0.942-2.368L30.316,25.757z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_disabled.xml new file mode 100755 index 000000000..dd03e26d6 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_disabled.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M21.192,25.757c0-0.88-0.23-1.618-0.69-2.217c-0.326-0.412-0.768-0.683-1.327-0.812 +c-0.55-0.128-1.07-0.137-1.54-0.028c-0.16-0.95,0.1-1.956,0.76-3.022c0.66-1.065,1.515-1.867,2.558-2.403L19.372,15 +c-0.8,0.396-1.56,0.898-2.26,1.505c-0.71,0.607-1.34,1.305-1.9,2.094c-0.56,0.789-0.98,1.68-1.25,2.69 +c-0.27,1.01-0.345,2.04-0.216,3.1c0.168,1.4,0.62,2.52,1.356,3.35C15.837,28.58,16.754,29,17.85,29c0.965,0,1.766-0.29,2.4-0.878 +c0.628-0.576,0.94-1.365,0.94-2.368L21.192,25.757z +M30.316,25.757c0-0.88-0.23-1.618-0.69-2.217 +c-0.326-0.42-0.77-0.692-1.327-0.817c-0.56-0.124-1.073-0.13-1.54-0.022c-0.16-0.94,0.09-1.95,0.752-3.02 +c0.66-1.06,1.513-1.86,2.556-2.4L28.49,15c-0.8,0.396-1.555,0.898-2.26,1.505c-0.708,0.607-1.34,1.305-1.894,2.094 +c-0.556,0.79-0.97,1.68-1.24,2.69c-0.273,1.002-0.345,2.04-0.217,3.1c0.166,1.4,0.616,2.52,1.35,3.35 +c0.733,0.834,1.647,1.252,2.743,1.252c0.967,0,1.768-0.29,2.402-0.877c0.627-0.576,0.942-1.365,0.942-2.368L30.316,25.757z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_highlighted.xml new file mode 100755 index 000000000..51b1f7d3e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_highlighted.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M21.192,25.757c0-0.88-0.23-1.618-0.69-2.217c-0.326-0.412-0.768-0.683-1.327-0.812 +c-0.55-0.128-1.07-0.137-1.54-0.028c-0.16-0.95,0.1-1.956,0.76-3.022c0.66-1.065,1.515-1.867,2.558-2.403L19.372,15 +c-0.8,0.396-1.56,0.898-2.26,1.505c-0.71,0.607-1.34,1.305-1.9,2.094c-0.56,0.789-0.98,1.68-1.25,2.69 +c-0.27,1.01-0.345,2.04-0.216,3.1c0.168,1.4,0.62,2.52,1.356,3.35C15.837,28.58,16.754,29,17.85,29c0.965,0,1.766-0.29,2.4-0.878 +c0.628-0.576,0.94-1.365,0.94-2.368L21.192,25.757z +M30.316,25.757c0-0.88-0.23-1.618-0.69-2.217 +c-0.326-0.42-0.77-0.692-1.327-0.817c-0.56-0.124-1.073-0.13-1.54-0.022c-0.16-0.94,0.09-1.95,0.752-3.02 +c0.66-1.06,1.513-1.86,2.556-2.4L28.49,15c-0.8,0.396-1.555,0.898-2.26,1.505c-0.708,0.607-1.34,1.305-1.894,2.094 +c-0.556,0.79-0.97,1.68-1.24,2.69c-0.273,1.002-0.345,2.04-0.217,3.1c0.166,1.4,0.616,2.52,1.35,3.35 +c0.733,0.834,1.647,1.252,2.743,1.252c0.967,0,1.768-0.29,2.402-0.877c0.627-0.576,0.942-1.365,0.942-2.368L30.316,25.757z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_selector.xml new file mode 100755 index 000000000..42daf634c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_quote_selector.xml @@ -0,0 +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_quote_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_quote_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_quote_disabled"/> + <item android:drawable="@drawable/format_bar_button_quote"/> +</selector> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough.xml new file mode 100755 index 000000000..5b11a2448 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M24.348,22H31v2h-4.613c0.239,0.515,0.368,1.094,0.368,1.748c0,1.317-0.474,2.355-1.423,3.114 +C24.385,29.621,23.066,30,21.376,30c-1.557,0-2.934-0.293-4.132-0.878v-2.874c0.985,0.439,1.818,0.749,2.5,0.928 +c0.682,0.181,1.306,0.27,1.872,0.27c0.679,0,1.2-0.129,1.562-0.39c0.363-0.259,0.545-0.644,0.545-1.158 +c0-0.285-0.08-0.54-0.24-0.763c-0.16-0.222-0.394-0.437-0.704-0.643c-0.18-0.12-0.482-0.287-0.88-0.491H13v-2h5.597H24.348z +M20.82,20c-0.073-0.077-0.143-0.155-0.193-0.235c-0.126-0.202-0.189-0.441-0.189-0.713c0-0.439,0.156-0.795,0.469-1.068 +c0.313-0.273,0.762-0.409,1.348-0.409c0.492,0,0.993,0.063,1.502,0.19c0.509,0.126,1.153,0.349,1.931,0.669l0.998-2.405 +c-0.752-0.326-1.472-0.579-2.16-0.758C23.836,15.09,23.113,15,22.354,15c-1.544,0-2.753,0.369-3.628,1.108 +c-0.874,0.739-1.312,1.753-1.312,3.044c0,0.302,0.036,0.58,0.088,0.848H20.82z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_disabled.xml new file mode 100755 index 000000000..bb763c150 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_disabled.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M24.348,22H31v2h-4.613c0.239,0.515,0.368,1.094,0.368,1.748c0,1.317-0.474,2.355-1.423,3.114 +C24.385,29.621,23.066,30,21.376,30c-1.557,0-2.934-0.293-4.132-0.878v-2.874c0.985,0.439,1.818,0.749,2.5,0.928 +c0.682,0.181,1.306,0.27,1.872,0.27c0.679,0,1.2-0.129,1.562-0.39c0.363-0.259,0.545-0.644,0.545-1.158 +c0-0.285-0.08-0.54-0.24-0.763c-0.16-0.222-0.394-0.437-0.704-0.643c-0.18-0.12-0.482-0.287-0.88-0.491H13v-2h5.597H24.348z +M20.82,20c-0.073-0.077-0.143-0.155-0.193-0.235c-0.126-0.202-0.189-0.441-0.189-0.713c0-0.439,0.156-0.795,0.469-1.068 +c0.313-0.273,0.762-0.409,1.348-0.409c0.492,0,0.993,0.063,1.502,0.19c0.509,0.126,1.153,0.349,1.931,0.669l0.998-2.405 +c-0.752-0.326-1.472-0.579-2.16-0.758C23.836,15.09,23.113,15,22.354,15c-1.544,0-2.753,0.369-3.628,1.108 +c-0.874,0.739-1.312,1.753-1.312,3.044c0,0.302,0.036,0.58,0.088,0.848H20.82z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_highlighted.xml new file mode 100755 index 000000000..bd8401f92 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_highlighted.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M24.348,22H31v2h-4.613c0.239,0.515,0.368,1.094,0.368,1.748c0,1.317-0.474,2.355-1.423,3.114 +C24.385,29.621,23.066,30,21.376,30c-1.557,0-2.934-0.293-4.132-0.878v-2.874c0.985,0.439,1.818,0.749,2.5,0.928 +c0.682,0.181,1.306,0.27,1.872,0.27c0.679,0,1.2-0.129,1.562-0.39c0.363-0.259,0.545-0.644,0.545-1.158 +c0-0.285-0.08-0.54-0.24-0.763c-0.16-0.222-0.394-0.437-0.704-0.643c-0.18-0.12-0.482-0.287-0.88-0.491H13v-2h5.597H24.348z +M20.82,20c-0.073-0.077-0.143-0.155-0.193-0.235c-0.126-0.202-0.189-0.441-0.189-0.713c0-0.439,0.156-0.795,0.469-1.068 +c0.313-0.273,0.762-0.409,1.348-0.409c0.492,0,0.993,0.063,1.502,0.19c0.509,0.126,1.153,0.349,1.931,0.669l0.998-2.405 +c-0.752-0.326-1.472-0.579-2.16-0.758C23.836,15.09,23.113,15,22.354,15c-1.544,0-2.753,0.369-3.628,1.108 +c-0.874,0.739-1.312,1.753-1.312,3.044c0,0.302,0.036,0.58,0.088,0.848H20.82z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_selector.xml new file mode 100644 index 000000000..573755e91 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_strikethrough_selector.xml @@ -0,0 +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_strikethrough_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_strikethrough_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_strikethrough_disabled"/> + <item android:drawable="@drawable/format_bar_button_strikethrough"/> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul.xml new file mode 100755 index 000000000..8e23d2154 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#87A6BC" + android:pathData="M19,29h12v-2H19V29z M19,23h12v-2H19V23z M19,15v2h12v-2H19z +M15,14.5c-0.828,0-1.5,0.672-1.5,1.5 +c0,0.828,0.672,1.5,1.5,1.5s1.5-0.672,1.5-1.5C16.5,15.172,15.828,14.5,15,14.5z +M15,20.5c-0.828,0-1.5,0.672-1.5,1.5 +s0.672,1.5,1.5,1.5s1.5-0.672,1.5-1.5S15.828,20.5,15,20.5z +M15,26.5c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5 +s1.5-0.672,1.5-1.5S15.828,26.5,15,26.5z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_disabled.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_disabled.xml new file mode 100755 index 000000000..c1047a0f7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_disabled.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#E8EEF2" + android:pathData="M19,29h12v-2H19V29z M19,23h12v-2H19V23z M19,15v2h12v-2H19z +M15,14.5c-0.828,0-1.5,0.672-1.5,1.5 +c0,0.828,0.672,1.5,1.5,1.5s1.5-0.672,1.5-1.5C16.5,15.172,15.828,14.5,15,14.5z +M15,20.5c-0.828,0-1.5,0.672-1.5,1.5 +s0.672,1.5,1.5,1.5s1.5-0.672,1.5-1.5S15.828,20.5,15,20.5z +M15,26.5c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5 +s1.5-0.672,1.5-1.5S15.828,26.5,15,26.5z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_highlighted.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_highlighted.xml new file mode 100755 index 000000000..de0c4958b --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_highlighted.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="44dp" + android:height="44dp" + android:viewportWidth="44" + android:viewportHeight="44"> + + <path + android:fillColor="#0084BC" + android:pathData="M19,29h12v-2H19V29z M19,23h12v-2H19V23z M19,15v2h12v-2H19z +M15,14.5c-0.828,0-1.5,0.672-1.5,1.5 +c0,0.828,0.672,1.5,1.5,1.5s1.5-0.672,1.5-1.5C16.5,15.172,15.828,14.5,15,14.5z +M15,20.5c-0.828,0-1.5,0.672-1.5,1.5 +s0.672,1.5,1.5,1.5s1.5-0.672,1.5-1.5S15.828,20.5,15,20.5z +M15,26.5c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5 +s1.5-0.672,1.5-1.5S15.828,26.5,15,26.5z" /> +</vector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_selector.xml new file mode 100755 index 000000000..98cffc7a7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/format_bar_button_ul_selector.xml @@ -0,0 +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_ul_highlighted"/> + <item android:state_pressed="true" android:drawable="@drawable/format_bar_button_ul_highlighted"/> + <item android:state_enabled="false" android:drawable="@drawable/format_bar_button_ul_disabled"/> + <item android:drawable="@drawable/format_bar_button_ul"/> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/ic_close_padded.xml b/libs/editor/WordPressEditor/src/main/res/drawable/ic_close_padded.xml new file mode 100644 index 000000000..fa9c56ac4 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/ic_close_padded.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:drawable="@drawable/ic_close_white_24dp" + android:left="4dp" + android:right="56dp"/> +</layer-list>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_bold_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_bold_selected_state.xml new file mode 100644 index 000000000..5e7ca3ef8 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_bold_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/legacy_dashicon_editor_bold" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_bold_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_bold_selector.xml new file mode 100644 index 000000000..66d8b631f --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_bold_selector.xml @@ -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_bold_selected_state"/> + <item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_bold_selected_state"/> + <item> + <bitmap android:src="@drawable/legacy_dashicon_editor_bold_grey" android:gravity="center"/> + </item> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_italic_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_italic_selected_state.xml new file mode 100644 index 000000000..13689b19a --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_italic_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/legacy_dashicon_editor_italic" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_italic_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_italic_selector.xml new file mode 100644 index 000000000..f0fd90497 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_italic_selector.xml @@ -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_italic_selected_state"/> + <item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_italic_selected_state"/> + <item> + <bitmap android:src="@drawable/legacy_dashicon_editor_italic_grey" android:gravity="center"/> + </item> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_link_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_link_selected_state.xml new file mode 100644 index 000000000..d376ceef0 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_link_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/legacy_dashicon_admin_links" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_link_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_link_selector.xml new file mode 100644 index 000000000..4c488f471 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_link_selector.xml @@ -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_link_selected_state"/> + <item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_link_selected_state"/> + <item> + <bitmap android:src="@drawable/legacy_dashicon_admin_links_grey" android:gravity="center"/> + </item> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_media_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_media_selected_state.xml new file mode 100644 index 000000000..9d4cbf83e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_media_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/noticon_picture" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_media_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_media_selector.xml new file mode 100644 index 000000000..ece70b5c4 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_media_selector.xml @@ -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_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> +</selector> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_more_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_more_selected_state.xml new file mode 100644 index 000000000..0c7870ff5 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_more_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/legacy_dashicon_editor_insertmore" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_more_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_more_selector.xml new file mode 100644 index 000000000..f28a013ce --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_more_selector.xml @@ -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>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_quote_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_quote_selected_state.xml new file mode 100644 index 000000000..b848cd831 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_quote_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/legacy_dashicon_format_quote" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_quote_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_quote_selector.xml new file mode 100644 index 000000000..ad0a2e684 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_quote_selector.xml @@ -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_quote_selected_state"/> + <item android:state_pressed="true" android:drawable="@drawable/legacy_format_bar_button_quote_selected_state"/> + <item> + <bitmap android:src="@drawable/legacy_dashicon_format_quote_grey" android:gravity="center"/> + </item> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_strike_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_strike_selected_state.xml new file mode 100644 index 000000000..43762ab9e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_strike_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/legacy_dashicon_editor_strikethrough" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_strike_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_strike_selector.xml new file mode 100644 index 000000000..d96797dc7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_strike_selector.xml @@ -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>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_underline_selected_state.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_underline_selected_state.xml new file mode 100644 index 000000000..786fe8d49 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_underline_selected_state.xml @@ -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/legacy_format_bar_button_selected"/> + </shape> + </item> + <item> + <bitmap android:src="@drawable/legacy_dashicon_editor_underline" android:gravity="center"/> + </item> +</layer-list> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_underline_selector.xml b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_underline_selector.xml new file mode 100644 index 000000000..38ea66806 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/legacy_format_bar_button_underline_selector.xml @@ -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>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/list_divider.xml b/libs/editor/WordPressEditor/src/main/res/drawable/list_divider.xml new file mode 100644 index 000000000..74267734f --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/list_divider.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:insetLeft="@dimen/margin_extra_large" + android:insetRight="@dimen/margin_extra_large"> + <shape android:shape="rectangle"> + + <solid android:color="@color/legacy_format_bar_background" /> + + </shape> +</inset> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/pressed_background_wordpress.xml b/libs/editor/WordPressEditor/src/main/res/drawable/pressed_background_wordpress.xml new file mode 100644 index 000000000..4475720c2 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/pressed_background_wordpress.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- File created by the Android Action Bar Style Generator + + Copyright (C) 2011 The Android Open Source Project + Copyright (C) 2012 readyState Software Ltd + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + 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/legacy_pressed_wordpress" /> +</shape> diff --git a/libs/editor/WordPressEditor/src/main/res/drawable/selectable_background_wordpress.xml b/libs/editor/WordPressEditor/src/main/res/drawable/selectable_background_wordpress.xml new file mode 100644 index 000000000..fbf846f5c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/drawable/selectable_background_wordpress.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- File created by the Android Action Bar Style Generator + + Copyright (C) 2011 The Android Open Source Project + Copyright (C) 2012 readyState Software Ltd + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + android:exitFadeDuration="@android:integer/config_mediumAnimTime" > + <item android:state_pressed="false" android:state_focused="true" android:drawable="@drawable/list_focused_wordpress" /> + <item android:state_pressed="true" android:drawable="@drawable/pressed_background_wordpress" /> + <item android:drawable="@android:color/transparent" /> +</selector>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/layout-v19/editor_webview.xml b/libs/editor/WordPressEditor/src/main/res/layout-v19/editor_webview.xml new file mode 100644 index 000000000..fb826c2ff --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout-v19/editor_webview.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<org.wordpress.android.editor.EditorWebView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + />
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/layout-w360dp/format_bar.xml b/libs/editor/WordPressEditor/src/main/res/layout-w360dp/format_bar.xml new file mode 100644 index 000000000..fc2eb283e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout-w360dp/format_bar.xml @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_height" + android:layout_gravity="bottom" + android:background="@color/format_bar_background" + android:layout_alignParentBottom="true" + android:orientation="vertical"> + + <View + android:id="@+id/format_bar_horizontal_divider" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_horizontal_divider_height" + style="@style/Divider"/> + + <LinearLayout + android:id="@+id/format_bar_buttons" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_height" + android:layout_gravity="bottom" + android:layout_marginRight="@dimen/format_bar_right_margin" + android:orientation="horizontal" + tools:ignore="RtlHardcoded"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginLeft="@dimen/format_bar_left_margin" + android:orientation="horizontal" + tools:ignore="RtlHardcoded"> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_media" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_media" + android:background="@drawable/format_bar_button_media_selector"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_bold" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_bold" + android:background="@drawable/format_bar_button_bold_selector" + android:tag="@string/format_bar_tag_bold"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_italic" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_italic" + android:background="@drawable/format_bar_button_italic_selector" + android:tag="@string/format_bar_tag_italic"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_quote" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_quote" + android:background="@drawable/format_bar_button_quote_selector" + android:tag="@string/format_bar_tag_blockquote"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ul" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_ul" + android:background="@drawable/format_bar_button_ul_selector" + android:tag="@string/format_bar_tag_unorderedList"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ol" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_ol" + android:background="@drawable/format_bar_button_ol_selector" + android:tag="@string/format_bar_tag_orderedList"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_link" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_link" + android:background="@drawable/format_bar_button_link_selector" + android:tag="@string/format_bar_tag_link"/> + </LinearLayout> + + <View + android:id="@+id/format_bar_vertical_divider" + android:layout_width="@dimen/format_bar_vertical_divider_width" + android:layout_height="@dimen/format_bar_vertical_divider_height" + android:layout_gravity="center" + style="@style/Divider"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_html" + style="@style/FormatBarHtmlButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_html" + android:background="@drawable/format_bar_button_html_selector"/> + </LinearLayout> +</LinearLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout-w380dp/format_bar.xml b/libs/editor/WordPressEditor/src/main/res/layout-w380dp/format_bar.xml new file mode 100644 index 000000000..3ee179ba2 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout-w380dp/format_bar.xml @@ -0,0 +1,149 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/format_bar" + android:layout_width="match_parent" + android:layout_height="@dimen/format_bar_height" + android:layout_gravity="bottom" + android:background="@color/format_bar_background" + android:layout_alignParentBottom="true" + android:orientation="vertical"> + + <View + android:id="@+id/format_bar_horizontal_divider" + android:layout_width="match_parent" + android:layout_height="@dimen/format_bar_horizontal_divider_height" + style="@style/Divider"/> + + <LinearLayout + android:id="@+id/format_bar_buttons" + android:layout_width="match_parent" + android:layout_height="@dimen/format_bar_height" + android:layout_gravity="bottom" + android:layout_marginRight="@dimen/format_bar_right_margin" + android:orientation="horizontal" + tools:ignore="RtlHardcoded"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center"> + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_media" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_media" + android:background="@drawable/format_bar_button_media_selector"/> + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center"> + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_bold" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_bold" + android:background="@drawable/format_bar_button_bold_selector" + android:tag="@string/format_bar_tag_bold"/> + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center"> + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_italic" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_italic" + android:background="@drawable/format_bar_button_italic_selector" + android:tag="@string/format_bar_tag_italic"/> + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center"> + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_quote" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_quote" + android:background="@drawable/format_bar_button_quote_selector" + android:tag="@string/format_bar_tag_blockquote"/> + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center"> + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ul" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_ul" + android:background="@drawable/format_bar_button_ul_selector" + android:tag="@string/format_bar_tag_unorderedList"/> + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center"> + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ol" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_ol" + android:background="@drawable/format_bar_button_ol_selector" + android:tag="@string/format_bar_tag_orderedList"/> + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center"> + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_link" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_link" + android:background="@drawable/format_bar_button_link_selector" + android:tag="@string/format_bar_tag_link"/> + </LinearLayout> + + <View + android:id="@+id/format_bar_vertical_divider" + android:layout_width="@dimen/format_bar_vertical_divider_width" + android:layout_height="@dimen/format_bar_vertical_divider_height" + android:layout_gravity="center" + style="@style/Divider"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_html" + style="@style/FormatBarHtmlButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/format_bar_description_html" + android:background="@drawable/format_bar_button_html_selector"/> + + + </LinearLayout> +</LinearLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout-w600dp/format_bar.xml b/libs/editor/WordPressEditor/src/main/res/layout-w600dp/format_bar.xml new file mode 100644 index 000000000..f4a64666b --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout-w600dp/format_bar.xml @@ -0,0 +1,140 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_height_tablet" + android:layout_gravity="bottom" + android:background="@color/format_bar_background" + android:layout_alignParentBottom="true" + android:orientation="vertical"> + + <View + android:id="@+id/format_bar_horizontal_divider" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_horizontal_divider_height" + style="@style/Divider"/> + + <LinearLayout + android:id="@+id/format_bar_buttons" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_height_tablet" + android:layout_gravity="bottom" + android:gravity="center" + android:orientation="horizontal" + tools:ignore="RtlHardcoded"> + + <LinearLayout + style="@style/FormatBarTabletGroup" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:gravity="center"> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_media" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_media" + android:background="@drawable/format_bar_button_media_selector"/> + </LinearLayout> + + <LinearLayout + style="@style/FormatBarTabletGroup" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:gravity="center"> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_bold" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_bold" + android:background="@drawable/format_bar_button_bold_selector" + android:tag="@string/format_bar_tag_bold"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_italic" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_italic" + android:background="@drawable/format_bar_button_italic_selector" + android:tag="@string/format_bar_tag_italic"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_strikethrough" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/format_bar_button_strikethrough_selector" + android:tag="@string/format_bar_tag_strikethrough"/> + </LinearLayout> + + <LinearLayout + style="@style/FormatBarTabletGroup" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:gravity="center"> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_link" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_link" + android:background="@drawable/format_bar_button_link_selector" + android:tag="@string/format_bar_tag_link"/> + </LinearLayout> + + <LinearLayout + style="@style/FormatBarTabletGroup" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:gravity="center"> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ul" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_ul" + android:background="@drawable/format_bar_button_ul_selector" + android:tag="@string/format_bar_tag_unorderedList"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ol" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_ol" + android:background="@drawable/format_bar_button_ol_selector" + android:tag="@string/format_bar_tag_orderedList"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_quote" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_quote" + android:background="@drawable/format_bar_button_quote_selector" + android:tag="@string/format_bar_tag_blockquote"/> + </LinearLayout> + + <LinearLayout + style="@style/FormatBarTabletGroup" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:gravity="center"> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_html" + style="@style/FormatBarButtonTablet" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/format_bar_description_html" + android:background="@drawable/format_bar_button_html_selector"/> + </LinearLayout> + </LinearLayout> +</LinearLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout/alert_create_link.xml b/libs/editor/WordPressEditor/src/main/res/layout/alert_create_link.xml new file mode 100644 index 000000000..840917184 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/alert_create_link.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:padding="@dimen/margin_medium" + android:layout_gravity="center_vertical"> + + <EditText + android:id="@+id/linkURL" + android:inputType="textUri" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:hint="@string/link_enter_url" + android:imeOptions="actionNext" /> + + <EditText + android:id="@+id/linkText" + android:inputType="text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/linkURL" + android:hint="@string/link_enter_url_text" /> + + <Button + android:id="@+id/ok" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/linkText" + android:layout_alignParentRight="true" + android:layout_marginLeft="@dimen/margin_medium" + android:text="@android:string/ok" /> + + <Button + android:id="@+id/cancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignTop="@id/ok" + android:layout_toLeftOf="@id/ok" + android:text="@android:string/cancel" /> + +</RelativeLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout/alert_image_options.xml b/libs/editor/WordPressEditor/src/main/res/layout/alert_image_options.xml new file mode 100644 index 000000000..b2d4fdb9c --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/alert_image_options.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="10dp" + android:layout_gravity="center_horizontal" + android:gravity="center_horizontal"> + + <EditText + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/title" + android:singleLine="true"/> + + <EditText + android:id="@+id/caption" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/caption" + android:singleLine="true" + android:inputType="textCapSentences"/> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/horizontal_alignment" + android:textStyle="bold" + android:textColor="@color/image_options_label"/> + + <Spinner + android:id="@+id/alignment_spinner" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:prompt="@string/image_alignment"/> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/width" + android:textStyle="bold" + android:textColor="@color/image_options_label"/> + + <SeekBar + android:layout_height="wrap_content" + android:id="@+id/imageWidth" + android:layout_width="match_parent"/> + + <EditText + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="" + android:imeOptions="actionDone" + android:id="@+id/imageWidthText" + android:layout_gravity="left|center_vertical" + android:singleLine="true" + android:inputType="number"/> + + <CheckBox + android:layout_gravity="left" + android:text="@string/featured" + android:id="@+id/featuredImage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone"/> + + <CheckBox + android:layout_gravity="left" + android:text="@string/featured_in_post" + android:id="@+id/featuredInPost" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone"/> + </LinearLayout> +</ScrollView>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml b/libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml new file mode 100644 index 000000000..087bb1ba7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml @@ -0,0 +1,154 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/white"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginRight="@dimen/image_settings_dialog_extra_margin" + android:layout_marginLeft="@dimen/image_settings_dialog_extra_margin" + android:orientation="vertical" + android:padding="@dimen/image_settings_dialog_padding"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_marginBottom="@dimen/image_settings_dialog_thumbnail_container_margin_bottom"> + + <ImageView + android:id="@+id/image_thumbnail" + android:contentDescription="@string/image_thumbnail" + android:layout_width="@dimen/image_settings_dialog_thumbnail_size" + android:layout_height="@dimen/image_settings_dialog_thumbnail_size" + android:layout_marginLeft="@dimen/image_settings_dialog_thumbnail_left_margin" + android:layout_marginRight="@dimen/image_settings_dialog_thumbnail_right_margin"/> + + <TextView + android:id="@+id/image_filename" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/image_settings_dialog_filename_margin_left" + android:layout_gravity="center_vertical"/> + </LinearLayout> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/title" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_caption" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_caption" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_alt_text" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_alt_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_alignment" + style="@style/ImageOptionsDialogLabel"/> + + <Spinner + android:id="@+id/alignment_spinner" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:entries="@array/alignment_array" + android:layout_marginStart="@dimen/image_settings_dialog_input_field_start_margin" + android:layout_marginLeft="@dimen/image_settings_dialog_input_field_start_margin" + android:prompt="@string/image_alignment" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_link_to" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_link_to" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textNoSuggestions" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_width" + style="@style/ImageOptionsDialogLabel"/> + + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/image_icon" + android:layout_width="wrap_content" + android:layout_height="match_parent" + app:srcCompat="@drawable/media_icon_32dp"/> + + <SeekBar + android:id="@+id/image_width_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toRightOf="@+id/image_icon"/> + </RelativeLayout> + + <EditText + android:id="@+id/image_width_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="" + android:imeOptions="actionDone" + android:singleLine="true" + android:inputType="number" + style="@style/ImageOptionsDialogInput"/> + + <CheckBox + android:id="@+id/featuredImage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/featured" + android:layout_marginStart="@dimen/image_settings_dialog_input_field_start_margin" + android:layout_marginLeft="@dimen/image_settings_dialog_input_field_start_margin" + android:visibility="gone"/> + </LinearLayout> +</ScrollView> diff --git a/libs/editor/WordPressEditor/src/main/res/layout/dialog_link.xml b/libs/editor/WordPressEditor/src/main/res/layout/dialog_link.xml new file mode 100644 index 000000000..c303163d0 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/dialog_link.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/link_dialog_margin_inner" + android:layout_marginLeft="@dimen/link_dialog_margin_outer" + android:layout_marginRight="@dimen/link_dialog_margin_outer" + android:layout_marginTop="@dimen/link_dialog_margin_outer"> + + <EditText + android:id="@+id/linkURL" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/link_enter_url" + android:imeOptions="actionNext" + android:inputType="textUri" + tools:ignore="HardcodedText" /> + </android.support.design.widget.TextInputLayout> + + <android.support.design.widget.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/link_dialog_margin_outer" + android:layout_marginLeft="@dimen/link_dialog_margin_outer" + android:layout_marginRight="@dimen/link_dialog_margin_outer" + android:layout_marginTop="@dimen/link_dialog_margin_inner"> + + <EditText + android:id="@+id/linkText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/link_enter_url_text" + android:inputType="text" /> + </android.support.design.widget.TextInputLayout> +</LinearLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout/editor_webview.xml b/libs/editor/WordPressEditor/src/main/res/layout/editor_webview.xml new file mode 100644 index 000000000..b02cf21da --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/editor_webview.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<org.wordpress.android.editor.EditorWebViewCompatibility + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + />
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/layout/format_bar.xml b/libs/editor/WordPressEditor/src/main/res/layout/format_bar.xml new file mode 100644 index 000000000..1fa988beb --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/format_bar.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_height" + android:layout_gravity="bottom" + android:layout_alignParentBottom="true" + android:background="@color/format_bar_background" + android:orientation="vertical"> + + <View + android:id="@+id/format_bar_horizontal_divider" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_horizontal_divider_height" + style="@style/Divider"/> + + <LinearLayout + android:id="@+id/format_bar_buttons" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_height" + android:layout_gravity="bottom" + android:layout_marginRight="@dimen/format_bar_right_margin" + android:orientation="horizontal" + tools:ignore="RtlHardcoded"> + + <HorizontalScrollView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginRight="@dimen/format_bar_scroll_right_margin"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/format_bar_left_margin" + android:orientation="horizontal" + tools:ignore="RtlHardcoded"> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_media" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_media" + android:background="@drawable/format_bar_button_media_selector"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_bold" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_bold" + android:background="@drawable/format_bar_button_bold_selector" + android:tag="@string/format_bar_tag_bold"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_italic" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_italic" + android:background="@drawable/format_bar_button_italic_selector" + android:tag="@string/format_bar_tag_italic"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_quote" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_quote" + android:background="@drawable/format_bar_button_quote_selector" + android:tag="@string/format_bar_tag_blockquote"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ul" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_ul" + android:background="@drawable/format_bar_button_ul_selector" + android:tag="@string/format_bar_tag_unorderedList"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_ol" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_ol" + android:background="@drawable/format_bar_button_ol_selector" + android:tag="@string/format_bar_tag_orderedList"/> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_link" + style="@style/FormatBarButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_link" + android:background="@drawable/format_bar_button_link_selector" + android:tag="@string/format_bar_tag_link"/> + </LinearLayout> + </HorizontalScrollView> + + <ImageView + app:srcCompat="@drawable/format_bar_chevron" + android:background="@android:color/transparent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/imageView" /> + + <org.wordpress.android.editor.RippleToggleButton + android:id="@+id/format_bar_button_html" + style="@style/FormatBarHtmlButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_html" + android:background="@drawable/format_bar_button_html_selector"/> + </LinearLayout> +</LinearLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout/fragment_edit_post_content.xml b/libs/editor/WordPressEditor/src/main/res/layout/fragment_edit_post_content.xml new file mode 100644 index 000000000..c94a08e5e --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/fragment_edit_post_content.xml @@ -0,0 +1,165 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="@android:color/white" + android:focusableInTouchMode="true"> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="0dp" + android:orientation="vertical" + android:fillViewport="true" + android:layout_weight="1"> + + <LinearLayout + android:id="@+id/post_content_wrapper" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <EditText + android:id="@+id/post_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/margin_extra_large" + android:layout_marginRight="@dimen/margin_extra_large" + android:layout_marginTop="@dimen/margin_medium" + android:textSize="22sp" + android:hint="@string/post_title" + android:inputType="textCapSentences|textAutoCorrect" /> + + <org.wordpress.android.util.widgets.WPEditText + android:id="@+id/post_content" + android:layout_width="fill_parent" + android:layout_height="0dp" + android:maxLength="10000000" + android:layout_marginLeft="@dimen/post_editor_content_side_margin" + android:layout_marginRight="@dimen/post_editor_content_side_margin" + android:layout_marginTop="8dp" + android:gravity="top" + android:layout_weight="1" + android:hint="@string/post_content" + android:background="@null" + android:lineSpacingExtra="4dp" + android:textSize="18sp" + android:inputType="textMultiLine|textCapSentences|textAutoCorrect" + android:imeOptions="flagNoExtractUi" + android:textColorLink="@color/legacy_placeholder_content_text" /> + </LinearLayout> + </ScrollView> + + <LinearLayout + android:id="@+id/post_settings_wrapper" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <View + android:layout_width="fill_parent" + android:layout_height="1dp" + android:background="@drawable/list_divider" /> + + <Button + android:id="@+id/post_settings_button" + android:layout_width="fill_parent" + android:layout_height="48dp" + android:gravity="center_vertical" + android:paddingLeft="16dp" + android:textSize="18sp" + android:drawableLeft="@drawable/ic_post_settings" + android:background="@drawable/selectable_background_wordpress" + android:text="@string/post_settings" + android:drawablePadding="6dp" + android:layout_gravity="bottom"/> + + </LinearLayout> + + <LinearLayout + android:id="@+id/format_bar" + android:layout_width="fill_parent" + android:layout_height="@dimen/legacy_format_bar_height" + android:layout_gravity="bottom" + android:background="@color/legacy_format_bar_background" + android:orientation="horizontal" + android:visibility="gone"> + + <HorizontalScrollView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ToggleButton + android:id="@+id/bold" + style="@style/LegacyToggleButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_bold" + android:background="@drawable/legacy_format_bar_button_bold_selector" /> + + <ToggleButton + android:id="@+id/em" + style="@style/LegacyToggleButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_italic" + android:background="@drawable/legacy_format_bar_button_italic_selector" /> + + <ToggleButton + android:id="@+id/underline" + style="@style/LegacyToggleButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_underline" + android:background="@drawable/legacy_format_bar_button_underline_selector" /> + + <ToggleButton + android:id="@+id/strike" + style="@style/LegacyToggleButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_strike" + android:background="@drawable/legacy_format_bar_button_strike_selector" /> + + <ToggleButton + android:id="@+id/bquote" + style="@style/LegacyToggleButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:contentDescription="@string/format_bar_description_quote" + 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/legacy_format_bar_height" + android:contentDescription="@string/format_bar_description_link" + 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/legacy_format_bar_height" + android:contentDescription="@string/format_bar_description_more" + android:background="@drawable/legacy_format_bar_button_more_selector" /> + </LinearLayout> + </HorizontalScrollView> + + <Button + android:id="@+id/addPictureButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:minWidth="@dimen/legacy_format_bar_height" + android:contentDescription="@string/format_bar_description_media" + android:background="@drawable/legacy_format_bar_button_media_selector" /> + </LinearLayout> + +</LinearLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout/fragment_editor.xml b/libs/editor/WordPressEditor/src/main/res/layout/fragment_editor.xml new file mode 100755 index 000000000..ff0326f31 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/fragment_editor.xml @@ -0,0 +1,82 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:editor="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + tools:context="org.wordpress.android.editor.EditorFragment"> + + <include + layout="@layout/editor_webview" + android:id="@+id/webview" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_above="@+id/format_bar"/> + + <ScrollView + android:id="@+id/sourceview" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="@android:color/white" + android:orientation="vertical" + android:layout_above="@id/format_bar" + android:fillViewport="true" + android:visibility="gone"> + + <LinearLayout + android:id="@+id/post_content_wrapper" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <org.wordpress.android.editor.SourceViewEditText + android:id="@+id/sourceview_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/sourceview_side_margin" + android:layout_marginRight="@dimen/sourceview_side_margin" + android:layout_marginTop="@dimen/sourceview_top_margin" + android:layout_marginBottom="@dimen/sourceview_title_bottom_margin" + android:background="@null" + android:textSize="24sp" + android:textColorHint="@color/sourceview_placeholder_text" + android:inputType="textCapSentences|textAutoCorrect" + android:imeOptions="flagNoExtractUi" + editor:fontFile="Merriweather-Bold.ttf"/> + + <View + android:id="@+id/sourceview_horizontal_divider" + android:layout_width="fill_parent" + android:layout_height="@dimen/format_bar_horizontal_divider_height" + android:layout_marginLeft="@dimen/sourceview_side_margin" + android:layout_marginRight="@dimen/sourceview_side_margin" + style="@style/DividerSourceView"/> + + <org.wordpress.android.editor.SourceViewEditText + android:id="@+id/sourceview_content" + android:layout_width="fill_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:gravity="top" + android:layout_marginLeft="@dimen/sourceview_side_margin" + android:layout_marginRight="@dimen/sourceview_side_margin" + android:layout_marginTop="@dimen/sourceview_top_margin" + android:background="@null" + android:textSize="16sp" + android:maxLength="10000000" + android:textColorHint="@color/sourceview_placeholder_text" + android:inputType="textMultiLine|textCapSentences|textNoSuggestions" + android:lineSpacingExtra="4dp" + android:imeOptions="flagNoExtractUi" + android:typeface="monospace"/> + </LinearLayout> + </ScrollView> + + <include + layout="@layout/format_bar" + android:id="@+id/format_bar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true"/> + +</RelativeLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/layout/image_settings_formatbar.xml b/libs/editor/WordPressEditor/src/main/res/layout/image_settings_formatbar.xml new file mode 100644 index 000000000..ff5ea7df4 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/image_settings_formatbar.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end" + android:orientation="horizontal"> + + <TextView + android:id="@+id/menu_save" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:text="@string/save" + android:textAllCaps="true" + android:textColor="@android:color/white"/> +</LinearLayout>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/layout/legacy_activity_editor.xml b/libs/editor/WordPressEditor/src/main/res/layout/legacy_activity_editor.xml new file mode 100644 index 000000000..24756188d --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/legacy_activity_editor.xml @@ -0,0 +1,13 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".EditorActivity"> + + <fragment + android:id="@+id/postEditor" + android:name="org.wordpress.android.editor.LegacyEditorFragment" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</RelativeLayout> diff --git a/libs/editor/WordPressEditor/src/main/res/values-w1280dp/dimens.xml b/libs/editor/WordPressEditor/src/main/res/values-w1280dp/dimens.xml new file mode 100644 index 000000000..c68bd2b8f --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values-w1280dp/dimens.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <dimen name="sourceview_side_margin">@dimen/sourceview_side_margin_extra_large</dimen> + <dimen name="format_bar_button_margin_tablet">@dimen/format_bar_button_margin_tablet_extra_large</dimen> + <dimen name="format_bar_button_group_tablet">@dimen/format_bar_button_group_tablet_extra_large</dimen> +</resources>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/values-w1280dp/layouts.xml b/libs/editor/WordPressEditor/src/main/res/values-w1280dp/layouts.xml new file mode 100644 index 000000000..17b7dd6be --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values-w1280dp/layouts.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <bool name="is_large_tablet_landscape">true</bool> +</resources>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/values-w720dp/dimens.xml b/libs/editor/WordPressEditor/src/main/res/values-w720dp/dimens.xml new file mode 100644 index 000000000..ad669947f --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values-w720dp/dimens.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <dimen name="sourceview_side_margin">@dimen/sourceview_side_margin_large</dimen> + <dimen name="image_settings_dialog_extra_margin">@dimen/image_settings_dialog_extra_margin_tablet</dimen> +</resources>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/values-w720dp/layouts.xml b/libs/editor/WordPressEditor/src/main/res/values-w720dp/layouts.xml new file mode 100644 index 000000000..de5683d0f --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values-w720dp/layouts.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <bool name="show_extra_side_padding">true</bool> +</resources>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/values-w800dp/dimens.xml b/libs/editor/WordPressEditor/src/main/res/values-w800dp/dimens.xml new file mode 100644 index 000000000..1f110a98b --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values-w800dp/dimens.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <dimen name="format_bar_button_margin_tablet">@dimen/format_bar_button_margin_tablet_large</dimen> + <dimen name="format_bar_button_group_tablet">@dimen/format_bar_button_group_tablet_large</dimen> +</resources>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/values/attrs.xml b/libs/editor/WordPressEditor/src/main/res/values/attrs.xml new file mode 100644 index 000000000..bfe9ab434 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values/attrs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <declare-styleable name="SourceViewEditText"> + <attr name="fontFile" format="string" /> + </declare-styleable> +</resources>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/values/colors.xml b/libs/editor/WordPressEditor/src/main/res/values/colors.xml new file mode 100755 index 000000000..44ffdaf50 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values/colors.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="legacy_format_bar_button_selected">#00aadc</color> + <color name="legacy_placeholder_content_text">#21759B</color> + <color name="legacy_format_bar_background">#eeeeee</color> + <color name="legacy_pressed_wordpress">#CC78C8E6</color> + + <color name="image_options_label">@color/wp_gray</color> + + <color name="format_bar_button_normal_color">@color/wp_gray_lighten_10</color> + <color name="format_bar_button_highlighted_color">@color/wp_blue</color> + <color name="format_bar_background">#f9fbfc</color> + <color name="format_bar_ripple_animation">@color/wp_gray_lighten_10</color> + + <color name="format_bar_divider">@color/wp_gray_lighten_10</color> + <color name="sourceview_separator">@color/wp_gray_lighten_30</color> + <color name="sourceview_placeholder_text">@color/wp_gray</color> +</resources> diff --git a/libs/editor/WordPressEditor/src/main/res/values/dimens.xml b/libs/editor/WordPressEditor/src/main/res/values/dimens.xml new file mode 100644 index 000000000..3f76aa7db --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values/dimens.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <dimen name="format_bar_height">44dp</dimen> + <dimen name="format_bar_height_tablet">49dp</dimen> + <dimen name="format_bar_left_margin">5dp</dimen> + <dimen name="format_bar_right_margin">2dp</dimen> + <dimen name="format_bar_html_button_left_margin">3dp</dimen> + <dimen name="format_bar_scroll_right_margin">-7dp</dimen> + + <dimen name="format_bar_button_margin_tablet">@dimen/format_bar_button_margin_tablet_small</dimen> + <dimen name="format_bar_button_margin_tablet_small">0dp</dimen> + <dimen name="format_bar_button_margin_tablet_large">7dp</dimen> + <dimen name="format_bar_button_margin_tablet_extra_large">12dp</dimen> + + <dimen name="format_bar_button_group_tablet">@dimen/format_bar_button_group_tablet_small</dimen> + <dimen name="format_bar_button_group_tablet_small">15dp</dimen> + <dimen name="format_bar_button_group_tablet_large">25dp</dimen> + <dimen name="format_bar_button_group_tablet_extra_large">35dp</dimen> + + <dimen name="format_bar_horizontal_divider_height">1dp</dimen> + <dimen name="format_bar_vertical_divider_width">0.6dp</dimen> + <dimen name="format_bar_vertical_divider_height">28dp</dimen> + + <dimen name="sourceview_side_margin">15dp</dimen> + <dimen name="sourceview_side_margin_large">90dp</dimen> + <dimen name="sourceview_side_margin_extra_large">170dp</dimen> + <dimen name="sourceview_top_margin">15dp</dimen> + <dimen name="sourceview_title_bottom_margin">15dp</dimen> + + <dimen name="link_dialog_margin_inner">4dp</dimen> + <dimen name="link_dialog_margin_outer">16dp</dimen> + + <dimen name="image_settings_dialog_padding">16dp</dimen> + <dimen name="image_settings_dialog_extra_margin">0dp</dimen> + <dimen name="image_settings_dialog_extra_margin_tablet">84dp</dimen> + <dimen name="image_settings_dialog_label_indent">4dp</dimen> + <dimen name="image_settings_dialog_label_margin_bottom">4dp</dimen> + <dimen name="image_settings_dialog_input_margin_bottom">16dp</dimen> + <dimen name="image_settings_dialog_input_field_start_margin">-4dp</dimen> + <dimen name="image_settings_dialog_top_separator_margin_top">16dp</dimen> + <dimen name="image_settings_dialog_thumbnail_container_margin_bottom">8dp</dimen> + <dimen name="image_settings_dialog_thumbnail_size">100dp</dimen> + <dimen name="image_settings_dialog_thumbnail_left_margin">4dp</dimen> + <dimen name="image_settings_dialog_thumbnail_right_margin">8dp</dimen> + <dimen name="image_settings_dialog_filename_margin_left">16dp</dimen> + + <dimen name="post_editor_content_side_margin">20dp</dimen> + + <dimen name="legacy_format_bar_height">40dp</dimen> + <dimen name="margin_extra_small">2dp</dimen> + <dimen name="margin_small">4dp</dimen> + <dimen name="margin_medium">8dp</dimen> + <dimen name="margin_large">12dp</dimen> + <dimen name="margin_extra_large">16dp</dimen> +</resources> diff --git a/libs/editor/WordPressEditor/src/main/res/values/layouts.xml b/libs/editor/WordPressEditor/src/main/res/values/layouts.xml new file mode 100644 index 000000000..ae7684978 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values/layouts.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <bool name="is_large_tablet_landscape">false</bool> + <bool name="show_extra_side_padding">false</bool> +</resources>
\ No newline at end of file diff --git a/libs/editor/WordPressEditor/src/main/res/values/strings.xml b/libs/editor/WordPressEditor/src/main/res/values/strings.xml new file mode 100644 index 000000000..d4ba277be --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values/strings.xml @@ -0,0 +1,97 @@ +<resources> + <string name="app_name">Editor</string> + <string name="post_settings">Settings</string> + <string name="post_content">Content</string> + <string name="post_title">Title</string> + + <string name="ok">OK</string> + <string name="cancel">Cancel</string> + <string name="delete">Delete</string> + <string name="save">Save</string> + <string name="discard">Discard</string> + <string name="edit">Edit</string> + <string name="tap_to_try_again">Tap to try again!</string> + <string name="uploading">Uploading…</string> + <string name="uploading_gallery_placeholder">Uploading gallery…</string> + + <string name="alert_insert_image_html_mode">Can\'t insert media directly in HTML mode. Please switch back to visual mode.</string> + <string name="alert_action_while_uploading">You are currently uploading media. Please wait until this completes.</string> + <string name="alert_error_adding_media">An error occurred while inserting media</string> + + <string name="stop_upload_dialog_title">Stop uploading?</string> + <string name="stop_upload_button">Stop Upload</string> + + <string name="format_bar_tag_bold" translatable="false">bold</string> + <string name="format_bar_tag_italic" translatable="false">italic</string> + <string name="format_bar_tag_blockquote" translatable="false">blockquote</string> + <string name="format_bar_tag_unorderedList" translatable="false">unorderedList</string> + <string name="format_bar_tag_orderedList" translatable="false">orderedList</string> + <string name="format_bar_tag_strikethrough" translatable="false">strikeThrough</string> + <string name="format_bar_tag_link" translatable="false">link</string> + + <!-- link view --> + <string name="link_enter_url">URL</string> + <string name="link_enter_url_text">Link text (optional)</string> + <string name="create_a_link">Create a link</string> + + <!-- image settings --> + <string name="image_settings">Image settings</string> + <string name="title">Title</string> + <string name="width">Width</string> + <string name="featured">Use as featured image</string> + <string name="featured_in_post">Include image in post content</string> + <string name="image_alignment">Alignment</string> + <string name="horizontal_alignment">Horizontal alignment</string> + <string name="caption">Caption (optional)</string> + + <string name="image_settings_dismiss_dialog_title">Discard unsaved changes?</string> + <string name="image_settings_save_toast">Changes saved</string> + + <string name="image_caption">Caption</string> + <string name="image_alt_text">Alt text</string> + <string name="image_link_to">Link to</string> + <string name="image_width">Width</string> + + <string name="alignment_none">None</string> + <string name="alignment_left">Left</string> + <string name="alignment_center">Center</string> + <string name="alignment_right">Right</string> + + <string-array name="alignment_key_array" translatable="false"> + <item>none</item> + <item>left</item> + <item>center</item> + <item>right</item> + </string-array> + + <string-array name="alignment_array" translatable="false"> + <item>@string/alignment_none</item> + <item>@string/alignment_left</item> + <item>@string/alignment_center</item> + <item>@string/alignment_right</item> + </string-array> + + <!-- Accessibility - format bar button descriptions --> + <string name="format_bar_description_bold">Bold</string> + <string name="format_bar_description_italic">Italic</string> + <string name="format_bar_description_underline">Underline</string> + <string name="format_bar_description_strike">Strikethrough</string> + <string name="format_bar_description_quote">Block quote</string> + <string name="format_bar_description_link">Insert link</string> + <string name="format_bar_description_more">Insert more</string> + <string name="format_bar_description_media">Insert media</string> + <string name="format_bar_description_ul">Unordered list</string> + <string name="format_bar_description_ol">Ordered list</string> + <string name="format_bar_description_html">HTML mode</string> + <string name="visual_editor">Visual editor</string> + <string name="image_thumbnail">Image thumbnail</string> + + <string name="editor_failed_uploads_switch_html">Some media uploads have failed. You can\'t switch to HTML mode + in this state. Remove all failed uploads and continue?</string> + <string name="editor_remove_failed_uploads">Remove failed uploads</string> + + <string name="editor_dropped_text_error">Error occurred while dropping text</string> + <string name="editor_dropped_title_images_not_allowed">Dropping images in the Title is not allowed</string> + <string name="editor_dropped_html_images_not_allowed">Dropping images while in HTML mode is not allowed</string> + <string name="editor_dropped_unsupported_files">Warning: not all dropped items are supported!</string> +</resources> diff --git a/libs/editor/WordPressEditor/src/main/res/values/styles.xml b/libs/editor/WordPressEditor/src/main/res/values/styles.xml new file mode 100755 index 000000000..3e99e0b88 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values/styles.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + <style name="LegacyToggleButton"> + <item name="android:minWidth">@dimen/legacy_format_bar_height</item> + <item name="android:minHeight">@dimen/legacy_format_bar_height</item> + <item name="android:textOn">""</item> + <item name="android:textOff">""</item> + </style> + + <style name="FormatBarButton"> + <item name="android:minWidth">@dimen/format_bar_height</item> + <item name="android:minHeight">@dimen/format_bar_height</item> + <item name="android:textOn">""</item> + <item name="android:textOff">""</item> + </style> + + <style name="FormatBarButtonTablet" parent="FormatBarButton"> + <item name="android:layout_marginRight">@dimen/format_bar_button_margin_tablet</item> + <item name="android:layout_marginLeft">@dimen/format_bar_button_margin_tablet</item> + </style> + + <style name="FormatBarHtmlButton" parent="FormatBarButton"> + <item name="android:layout_marginLeft">@dimen/format_bar_html_button_left_margin</item> + </style> + + <style name="Divider"> + <item name="android:background">@color/format_bar_divider</item> + </style> + + <style name="DividerSourceView"> + <item name="android:background">@color/sourceview_separator</item> + </style> + + <style name="FormatBarTabletGroup"> + <item name="android:layout_marginLeft">@dimen/format_bar_button_group_tablet</item> + <item name="android:layout_marginRight">@dimen/format_bar_button_group_tablet</item> + </style> + + <style name="ImageOptionsDialogLabel"> + <item name="android:textColor">@color/image_options_label</item> + <item name="android:textStyle">bold</item> + <item name="android:paddingLeft">@dimen/image_settings_dialog_label_indent</item> + <item name="android:layout_marginBottom">@dimen/image_settings_dialog_label_margin_bottom</item> + </style> + + <style name="ImageOptionsDialogInput"> + <item name="android:layout_marginBottom">@dimen/image_settings_dialog_input_margin_bottom</item> + </style> +</resources> diff --git a/libs/editor/WordPressEditor/src/main/res/values/wp_colors.xml b/libs/editor/WordPressEditor/src/main/res/values/wp_colors.xml new file mode 100644 index 000000000..15caebf9f --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/values/wp_colors.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="wp_gray">#87a6bc</color> + <color name="wp_gray_lighten_10">#a8bece</color> + <color name="wp_gray_lighten_20">#c8d7e1</color> + <color name="wp_gray_lighten_30">#e9eff3</color> + <color name="wp_gray_light">#f3f6f8</color> + + <color name="wp_blue">#0087be</color> + <color name="wp_blue_light">#78dcfa</color> + <color name="wp_blue_medium">#00aadc</color> + <color name="wp_blue_dark">#005082</color> +</resources>
\ No newline at end of file |