From df54899a624ac75badc1b02ef0afc53ae7485fe1 Mon Sep 17 00:00:00 2001 From: Rodrigo Ferreira de Souza Date: Fri, 10 Jun 2016 17:38:20 -0300 Subject: [PATCH] Add icons to play/pause button --- CHANGES.rst | 3 +++ .../texttospeech/static/file-audio-o.svg | 1 + src/collective/texttospeech/static/main.css | 17 ++++++++++++++++- src/collective/texttospeech/static/pause.svg | 1 + src/collective/texttospeech/static/play.svg | 1 + 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/collective/texttospeech/static/file-audio-o.svg create mode 100644 src/collective/texttospeech/static/pause.svg create mode 100644 src/collective/texttospeech/static/play.svg diff --git a/CHANGES.rst b/CHANGES.rst index 3690baa..8d9eba4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,9 @@ Changelog 1.0b1 (unreleased) ------------------ +- Add icons to play/pause button. + [rodfersou] + - Implement i18n on the widget and update translations. [rodfersou, hvelarde] diff --git a/src/collective/texttospeech/static/file-audio-o.svg b/src/collective/texttospeech/static/file-audio-o.svg new file mode 100644 index 0000000..4d8cddb --- /dev/null +++ b/src/collective/texttospeech/static/file-audio-o.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/collective/texttospeech/static/main.css b/src/collective/texttospeech/static/main.css index 6b7635d..2ec383f 100644 --- a/src/collective/texttospeech/static/main.css +++ b/src/collective/texttospeech/static/main.css @@ -1 +1,16 @@ -#viewlet-texttospeech{ text-align: right; } \ No newline at end of file +#viewlet-texttospeech +{ + text-align: right; +} #texttospeech-button +{ + display: inline-block; min-width: 5rem; height: 1rem; padding-left: 1.2rem; cursor: pointer; text-align: left; border: none; background-color: transparent; +} #texttospeech-button.stopped +{ + background: url('++resource++collective.texttospeech/file-audio-o.svg') no-repeat left center; background-size: 1rem; +} #texttospeech-button.playing +{ + background: url('++resource++collective.texttospeech/pause.svg') no-repeat left center; background-size: 1rem; +} #texttospeech-button.paused +{ + background: url('++resource++collective.texttospeech/play.svg') no-repeat left center; background-size: 1rem; +} diff --git a/src/collective/texttospeech/static/pause.svg b/src/collective/texttospeech/static/pause.svg new file mode 100644 index 0000000..7ca81f8 --- /dev/null +++ b/src/collective/texttospeech/static/pause.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/collective/texttospeech/static/play.svg b/src/collective/texttospeech/static/play.svg new file mode 100644 index 0000000..9c56408 --- /dev/null +++ b/src/collective/texttospeech/static/play.svg @@ -0,0 +1 @@ + \ No newline at end of file