[Pkg-mozext-commits] [tabmixplus] 64/107: Add help button near button that open sub dialog, show icon in sub dialog help button

David Prévot taffit at moszumanska.debian.org
Tue Dec 29 19:02:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 6362294eb63fc70903d97a1f118f1de227ebcf44
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Nov 10 23:55:56 2015 +0200

    Add help button near button that open sub dialog, show icon in sub dialog help button
---
 chrome/content/preferences/appearance.xul             |  8 ++++++--
 chrome/content/preferences/links.xul                  |  2 ++
 .../preferences/subdialogs/pref-appearance.css        |  4 ++++
 .../content/preferences/subdialogs/pref-filetype.xul  |  1 +
 chrome/skin/preferences.css                           | 19 +++++++++++++++++++
 5 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/chrome/content/preferences/appearance.xul b/chrome/content/preferences/appearance.xul
index 9a5b415..ed5d92b 100644
--- a/chrome/content/preferences/appearance.xul
+++ b/chrome/content/preferences/appearance.xul
@@ -187,8 +187,12 @@
                 <checkbox_tmp id="otherTab" label="&othertabs.style.label;" preference="pref_otherTab"/>
               </vbox>
               <vbox flex="1" align="end">
-                <button id="advancedAppearance" label="&setstyles.label;…"
-                        oncommand="gAppearancePane.openAdvanceAppearance();"/>
+                <hbox>
+                  <button class="content-help"
+                          oncommand="openHelp('display-tab#customize_styles');"/>
+                  <button id="advancedAppearance" label="&setstyles.label;…"
+                          oncommand="gAppearancePane.openAdvanceAppearance();"/>
+                </hbox>
               </vbox>
             </hbox>
             <checkbox_tmp id="unreadTabreload" class="indent" label="&unreadAfterReload.label;"
diff --git a/chrome/content/preferences/links.xul b/chrome/content/preferences/links.xul
index f7857ba..24a932e 100644
--- a/chrome/content/preferences/links.xul
+++ b/chrome/content/preferences/links.xul
@@ -82,6 +82,8 @@
             <hbox align="center">
               <checkbox_tmp id="filetypeEnable" label="&download.label;" preference="pref_filetypeEnable"/>
               <spacer flex="1"/>
+              <button class="content-help"
+                      oncommand="openHelp('links#file-type-editor');"/>
               <button id="advancedSetting" label="&edit.label;…" observes="obs_filetypeEnable"
                       oncommand="gLinksPane.openFiletypeEditor();"/>
             </hbox>
diff --git a/chrome/content/preferences/subdialogs/pref-appearance.css b/chrome/content/preferences/subdialogs/pref-appearance.css
index b5561bc..f4342ba 100644
--- a/chrome/content/preferences/subdialogs/pref-appearance.css
+++ b/chrome/content/preferences/subdialogs/pref-appearance.css
@@ -63,3 +63,7 @@ dialog[hide-RGB="true"] colorbox > *:not([class="visible"]) {
 .colorpicker-button-colorbox[disabled] {
   border-color: rgba(0,0,0,.2);
 }
+
+.dialog-button[icon="help"] {
+  list-style-image: url("chrome://global/skin/icons/question-16.png");
+}
diff --git a/chrome/content/preferences/subdialogs/pref-filetype.xul b/chrome/content/preferences/subdialogs/pref-filetype.xul
index b739472..150c132 100644
--- a/chrome/content/preferences/subdialogs/pref-filetype.xul
+++ b/chrome/content/preferences/subdialogs/pref-filetype.xul
@@ -1,6 +1,7 @@
 <?xml version="1.0"?>
 
 <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://tabmixplus/skin/preferences.css"?>
 
 <!DOCTYPE dialog [
 <!ENTITY % dialogDTD SYSTEM "chrome://tabmixplus/locale/pref-tabmix.dtd" >
diff --git a/chrome/skin/preferences.css b/chrome/skin/preferences.css
index 7bc3804..c5058a9 100644
--- a/chrome/skin/preferences.css
+++ b/chrome/skin/preferences.css
@@ -43,6 +43,25 @@ radio[pane=paneIncompatible][show=true] {
   visibility: visible;
 }
 
+.content-help {
+  -moz-appearance: none;
+  margin: 0;
+  min-width: 20px;
+  border: 0px solid transparent;
+  background-color: transparent;
+  color: transparent;
+}
+
+.content-help,
+.content-help:hover:active {
+  opacity: 1;
+}
+
+.content-help:not(:active):hover {
+  opacity: 0.7;
+}
+
+.content-help,
 .dialog-button[icon="help"] {
   list-style-image: url("chrome://global/skin/icons/question-16.png");
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list