[Pkg-mozext-commits] [automatic-save-folder] 53/133: Fix : Highlighted text over row coloration wasn't readable on some operating system theme (original Windows XP blue theme for example, text is white when row is highlighted)
David Prévot
taffit at moszumanska.debian.org
Mon Apr 27 20:33:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch wip
in repository automatic-save-folder.
commit 506476dc62782eb824d4f535454070f499f7f123
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date: Mon Feb 1 22:14:44 2010 +0000
Fix : Highlighted text over row coloration wasn't readable on some operating system theme (original Windows XP blue theme for example, text is white when row is highlighted)
git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@53 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
content/asf.js | 24 ++++++++++++++++++++++--
skin/style.css | 13 ++++++++++++-
2 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/content/asf.js b/content/asf.js
index 7c81f9d..afa2b47 100644
--- a/content/asf.js
+++ b/content/asf.js
@@ -239,6 +239,9 @@ var automatic_save_folder = {
if (dom_regexp && file_regexp)
{
currentitem.firstChild.setAttribute('properties', color);
+ currentitem.firstChild.children[0].removeAttribute('properties');
+ currentitem.firstChild.children[1].removeAttribute('properties');
+ currentitem.firstChild.children[2].removeAttribute('properties');
// Autoselect the first matching filter.
if (FirstTime && !found)
@@ -251,6 +254,9 @@ var automatic_save_folder = {
else
{
currentitem.firstChild.removeAttribute('properties');
+ currentitem.firstChild.children[0].removeAttribute('properties');
+ currentitem.firstChild.children[1].removeAttribute('properties');
+ currentitem.firstChild.children[2].removeAttribute('properties');
}
}
@@ -259,8 +265,22 @@ var automatic_save_folder = {
{
currentitem = tree.view.getItemAtIndex(tree.currentIndex);
color = currentitem.firstChild.getAttribute('properties');
- if (color == "FilterTestPass") currentitem.firstChild.setAttribute('properties', "FilterTestPassSelected");
- if (color == "FilterTestFail") currentitem.firstChild.setAttribute('properties', "FilterTestFailSelected");
+ if (color == "FilterTestPass")
+ {
+ currentitem.firstChild.setAttribute('properties', "FilterTestPassSelected");
+ currentitem.firstChild.children[0].setAttribute('properties', "FilterTestPassSelected");
+ currentitem.firstChild.children[1].setAttribute('properties', "FilterTestPassSelected");
+ currentitem.firstChild.children[2].setAttribute('properties', "FilterTestPassSelected");
+ }
+ if (color == "FilterTestFail")
+ {
+ currentitem.firstChild.setAttribute('properties', "FilterTestFailSelected");
+ currentitem.firstChild.children[0].setAttribute('properties', "FilterTestFailSelected");
+ currentitem.firstChild.children[1].setAttribute('properties', "FilterTestFailSelected");
+ currentitem.firstChild.children[2].setAttribute('properties', "FilterTestFailSelected");
+ }
+
+
}
// enable this to remove the color of the selected item
// if((tree.currentIndex > -1) && (tree.view.getItemAtIndex(tree.currentIndex).firstChild.hasAttribute('properties')) )
diff --git a/skin/style.css b/skin/style.css
index 6d13d5f..66a593a 100644
--- a/skin/style.css
+++ b/skin/style.css
@@ -14,6 +14,7 @@ treechildren::-moz-tree-checkbox(disabled)
list-style-image: none;
}
+ /* filtered row color */
treechildren::-moz-tree-row(FilterTestPass)
{
background-color: #CDFFB5;
@@ -24,16 +25,26 @@ treechildren::-moz-tree-row(FilterTestFail)
background-color: #F9CBCB;
}
+ /* filtered & selected row color */
treechildren::-moz-tree-row(FilterTestPassSelected)
{
background-color: #CDFFB5;
border: solid 1px #000000;
- color: #000000;
}
treechildren::-moz-tree-row(FilterTestFailSelected)
{
background-color: #F9CBCB;
border: solid 1px #000000;
+}
+
+ /* filtered & selected row text color */
+treechildren::-moz-tree-cell-text(FilterTestPassSelected)
+{
+ color: #000000;
+}
+
+treechildren::-moz-tree-cell-text(FilterTestFailSelected)
+{
color: #000000;
}
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/automatic-save-folder.git
More information about the Pkg-mozext-commits
mailing list