From 38394350ffaf894e399b860531bc9d3cee303e0d Mon Sep 17 00:00:00 2001 From: thomasb Date: Thu, 22 Dec 2011 12:05:16 +0000 Subject: Let plugins adapt better to different skins git-svn-id: https://svn.roundcube.net/trunk@5642 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/markasjunk/localization/en_US.inc | 1 + plugins/markasjunk/markasjunk.php | 16 ++++++++++------ plugins/markasjunk/package.xml | 4 ++-- plugins/markasjunk/skins/default/markasjunk.css | 6 ++++++ 4 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 plugins/markasjunk/skins/default/markasjunk.css (limited to 'plugins/markasjunk') diff --git a/plugins/markasjunk/localization/en_US.inc b/plugins/markasjunk/localization/en_US.inc index 6f63e161a..c1f56ad1d 100644 --- a/plugins/markasjunk/localization/en_US.inc +++ b/plugins/markasjunk/localization/en_US.inc @@ -1,6 +1,7 @@ register_action('plugin.markasjunk', array($this, 'request_action')); - + if ($rcmail->action == '' || $rcmail->action == 'show') { $skin_path = $this->local_skin_path(); $this->include_script('markasjunk.js'); + if (is_file($this->home . "/$skin_path/markasjunk.css")) + $this->include_stylesheet("$skin_path/markasjunk.css"); $this->add_texts('localization', true); + $this->add_button(array( + 'type' => 'link', + 'label' => 'buttontext', 'command' => 'plugin.markasjunk', - 'imagepas' => $skin_path.'/junk_pas.png', - 'imageact' => $skin_path.'/junk_act.png', - 'width' => 32, - 'height' => 32, - 'title' => 'markasjunk.buttontitle'), 'toolbar'); + 'class' => 'button buttonPas junk disabled', + 'classact' => 'button junk', + 'title' => 'buttontitle', + 'domain' => 'markasjunk'), 'toolbar'); } } diff --git a/plugins/markasjunk/package.xml b/plugins/markasjunk/package.xml index 56e4de0d5..1f6c96cf6 100644 --- a/plugins/markasjunk/package.xml +++ b/plugins/markasjunk/package.xml @@ -16,8 +16,8 @@ 2010-03-29 - 1.0 - 1.0 + 1.1 + 1.1 stable diff --git a/plugins/markasjunk/skins/default/markasjunk.css b/plugins/markasjunk/skins/default/markasjunk.css new file mode 100644 index 000000000..89ea568f4 --- /dev/null +++ b/plugins/markasjunk/skins/default/markasjunk.css @@ -0,0 +1,6 @@ + +#messagetoolbar a.button.junk { + text-indent: -1000px; + background: url(junk_act.png) 0 0 no-repeat; +} + -- cgit v1.2.3