From 6eedc99bf643c14fd1581503846fa38676a00d57 Mon Sep 17 00:00:00 2001 From: "martijn.martijn%gmail.com" Date: Sat, 29 Jul 2006 09:59:00 +0000 Subject: [PATCH] Bug 345245 - GTK scrollbar buttons don't show as active on right or middle click, patch by Adam Guthrie, r+sr=roc --- themes/classic/global/win/scrollbars.css | 4 ++-- themes/modern/global/scrollbars-mini.css | 1 + themes/modern/global/scrollbars.css | 2 ++ toolkit/themes/pmstripe/global/xulscrollbars.css | 6 ++++-- toolkit/themes/winstripe/global/xulscrollbars.css | 4 ++-- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/themes/classic/global/win/scrollbars.css b/themes/classic/global/win/scrollbars.css index 96330ec47dcf..ff06d0a92a27 100644 --- a/themes/classic/global/win/scrollbars.css +++ b/themes/classic/global/win/scrollbars.css @@ -97,7 +97,7 @@ scrollbarbutton { min-height: 16px; } -scrollbarbutton:hover:active { +scrollbarbutton:hover:active, scrollbarbutton[active="true"] { -moz-border-top-colors: ThreeDShadow -moz-Dialog; -moz-border-right-colors: ThreeDShadow -moz-Dialog; -moz-border-bottom-colors: ThreeDShadow -moz-Dialog; @@ -213,7 +213,7 @@ scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true" min-height: 16px; } - html|div scrollbarbutton:hover:active { + html|div scrollbarbutton:hover:active, html|div scrollbarbutton[active="true"] { -moz-border-top-colors: ThreeDShadow -moz-Dialog; -moz-border-right-colors: ThreeDShadow -moz-Dialog; -moz-border-bottom-colors: ThreeDShadow -moz-Dialog; diff --git a/themes/modern/global/scrollbars-mini.css b/themes/modern/global/scrollbars-mini.css index 8fb13914bd27..3486120da87d 100644 --- a/themes/modern/global/scrollbars-mini.css +++ b/themes/modern/global/scrollbars-mini.css @@ -119,6 +119,7 @@ scrollbar[orient="horizontal"] > scrollbarbutton { } scrollbarbutton[disabled="true"], +scrollbarbutton[active="true"], scrollbarbutton:hover:active { border-left-width: 2px; border-right-width: 2px; diff --git a/themes/modern/global/scrollbars.css b/themes/modern/global/scrollbars.css index 803251b0ac81..fcc179564954 100644 --- a/themes/modern/global/scrollbars.css +++ b/themes/modern/global/scrollbars.css @@ -106,6 +106,7 @@ scrollbarbutton { } scrollbarbutton[disabled="true"], +scrollbarbutton[active="true"], scrollbarbutton:hover:active { border-left-width: 2px; border-right-width: 2px; @@ -202,6 +203,7 @@ scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { } html|div scrollbarbutton[disabled="true"], + html|div scrollbarbutton[active="true"], html|div scrollbarbutton:hover:active { border-left-width: 2px; border-right-width: 2px; diff --git a/toolkit/themes/pmstripe/global/xulscrollbars.css b/toolkit/themes/pmstripe/global/xulscrollbars.css index e2427df69491..ed1a86968974 100644 --- a/toolkit/themes/pmstripe/global/xulscrollbars.css +++ b/toolkit/themes/pmstripe/global/xulscrollbars.css @@ -76,7 +76,8 @@ scrollbarbutton { } thumb:active, -scrollbarbutton:hover:active { +scrollbarbutton:hover:active, +scrollbarbutton[active="true"] { -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow; -moz-border-right-colors: ThreeDHighlight ThreeDHighlight; -moz-border-bottom-colors: ThreeDHighlight ThreeDHighlight; @@ -183,7 +184,8 @@ scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true" } html|div thumb:hover:active, - html|div scrollbarbutton:hover:active { + html|div scrollbarbutton:hover:active, + html|div scrollbarbutton[active="true"] { -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow; -moz-border-right-colors: ThreeDHighlight ThreeDHighlight; -moz-border-bottom-colors: ThreeDHighlight ThreeDHighlight; diff --git a/toolkit/themes/winstripe/global/xulscrollbars.css b/toolkit/themes/winstripe/global/xulscrollbars.css index 972607b9dcb0..bcaa28553b8f 100644 --- a/toolkit/themes/winstripe/global/xulscrollbars.css +++ b/toolkit/themes/winstripe/global/xulscrollbars.css @@ -97,7 +97,7 @@ scrollbarbutton { min-height: 16px; } -scrollbarbutton:hover:active { +scrollbarbutton:hover:active, scrollbarbutton[active="true"] { -moz-border-top-colors: ThreeDShadow -moz-Dialog; -moz-border-right-colors: ThreeDShadow -moz-Dialog; -moz-border-bottom-colors: ThreeDShadow -moz-Dialog; @@ -213,7 +213,7 @@ scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true" min-height: 16px; } - html|div scrollbarbutton:hover:active { + html|div scrollbarbutton:hover:active, html|div scrollbarbutton[active="true"] { -moz-border-top-colors: ThreeDShadow -moz-Dialog; -moz-border-right-colors: ThreeDShadow -moz-Dialog; -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;