From c1f91def74eb455730805ca2333615ade057619f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Sep 2009 01:38:00 -0400 Subject: [PATCH] Add css for scrolling Port bits of Mx's default.css into gnome-shell.css, and use some hand-rolled .pngs with colors from http://live.gnome.org/GnomeShell/DesignerPlayground/ExpandedViewMockups https://bugzilla.gnome.org/show_bug.cgi?id=591245 --- data/gnome-shell.css | 62 ++++++++++++++++++++++++++++++ data/scroll-button-down-hover.png | Bin 0 -> 225 bytes data/scroll-button-down.png | Bin 0 -> 225 bytes data/scroll-button-up-hover.png | Bin 0 -> 211 bytes data/scroll-button-up.png | Bin 0 -> 211 bytes data/scroll-vhandle.png | Bin 0 -> 323 bytes 6 files changed, 62 insertions(+) create mode 100644 data/scroll-button-down-hover.png create mode 100644 data/scroll-button-down.png create mode 100644 data/scroll-button-up-hover.png create mode 100644 data/scroll-button-up.png create mode 100644 data/scroll-vhandle.png diff --git a/data/gnome-shell.css b/data/gnome-shell.css index e69de29bb..4eac5f6bb 100644 --- a/data/gnome-shell.css +++ b/data/gnome-shell.css @@ -0,0 +1,62 @@ +/* Copyright 2009, Red Hat, Inc. + * + * Portions adapted from Mx's data/style/default.css + * Copyright 2009 Intel Corporation + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU Lesser General Public License, + * version 2.1, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for + * more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. + */ + +StScrollBar +{ + background-color: #354761; + padding: 0px; +} + +StScrollView +{ + scrollbar-width: 16; + scrollbar-height: 16; +} + +StButton#up-stepper +{ + border-image: url("file://scroll-button-up.png") 5; +} + +StButton#up-stepper:hover, +StButton#up-stepper:active +{ + border-image: url("file://scroll-button-up-hover.png") 5; +} + +StButton#down-stepper +{ + border-image: url("file://scroll-button-down.png") 5; +} + +StButton#down-stepper:hover, +StButton#down-stepper:active +{ + border-image: url("file://scroll-button-down-hover.png") 5; +} + +StScrollBar StButton#vhandle +{ + border-image: url("file://scroll-vhandle.png") 5; +} + +StScrollBar StButton#vhandle:hover +{ + border-image: url("file://scroll-vhandle.png") 5; +} diff --git a/data/scroll-button-down-hover.png b/data/scroll-button-down-hover.png new file mode 100644 index 0000000000000000000000000000000000000000..e1eab76578e54ec1deb1c3af8e1b07305419e1ed GIT binary patch literal 225 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?i-C%- zgD|6$#_S59AbW|YuPggaPA(QkYm-3H*Fd3SPZ!4!i_=T{PVzPw2r&1$Bzk9tJiFA! z?-4lVY^#0c5o^^*^ QAJBRRPgg&ebxsLQ0Fg~ir~m)} literal 0 HcmV?d00001 diff --git a/data/scroll-button-down.png b/data/scroll-button-down.png new file mode 100644 index 0000000000000000000000000000000000000000..e1eab76578e54ec1deb1c3af8e1b07305419e1ed GIT binary patch literal 225 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?i-C%- zgD|6$#_S59AbW|YuPggaPA(QkYm-3H*Fd3SPZ!4!i_=T{PVzPw2r&1$Bzk9tJiFA! z?-4lVY^#0c5o^^*^ QAJBRRPgg&ebxsLQ0Fg~ir~m)} literal 0 HcmV?d00001 diff --git a/data/scroll-button-up-hover.png b/data/scroll-button-up-hover.png new file mode 100644 index 0000000000000000000000000000000000000000..e25cbf9890446ecf733a5fd98223aef785b69630 GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?i-C%- zgD|6$#_S59AbW|YuPggaPA(Qk-2<%)b^(P_JzX3_EKbkuJIH&$fP;DV*%wbrjK2#n z?Gy^`Q9W|}Q!H}<>&AcbVHx(!_x}4zGu)8eC-K^q*^YOImBD4_ZXVk$CoZjYo#v-2 z^6R40LV4YgUug?3nRj#5Zd`Feyj!a_BIM=aN33>tm3eNi+4K--A%mx@pUXO@geCwS CA4q5b literal 0 HcmV?d00001 diff --git a/data/scroll-button-up.png b/data/scroll-button-up.png new file mode 100644 index 0000000000000000000000000000000000000000..e25cbf9890446ecf733a5fd98223aef785b69630 GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?i-C%- zgD|6$#_S59AbW|YuPggaPA(Qk-2<%)b^(P_JzX3_EKbkuJIH&$fP;DV*%wbrjK2#n z?Gy^`Q9W|}Q!H}<>&AcbVHx(!_x}4zGu)8eC-K^q*^YOImBD4_ZXVk$CoZjYo#v-2 z^6R40LV4YgUug?3nRj#5Zd`Feyj!a_BIM=aN33>tm3eNi+4K--A%mx@pUXO@geCwS CA4q5b literal 0 HcmV?d00001 diff --git a/data/scroll-vhandle.png b/data/scroll-vhandle.png new file mode 100644 index 0000000000000000000000000000000000000000..e51e6b69b56bc16f7838a9e27991301d09b848a2 GIT binary patch literal 323 zcmeAS@N?(olHy`uVBq!ia0vp^0zmA*!3HFSYrjteQjEnx?oJHr&dIz4aySb-B8!2F zuY)k7lg8`{pdfpRr>`sfO-?Rm3w7<;mu3Tnu6nvShD02GdtH&I$wB1U$M@$l3q|Iz zbbm9>+7P4UxM63aN<`1Dz#cJk&ps!EQ)$;zHYH7QS@bBau%!Ejc|_Akn(>(uX?^Yd3l zgVVt*qqUtEE2gLQ&*M7K5VrQ7BrAiImcuODTYH`)?7#A4g#;sufCB>(@zfzOF}@(W zE21>lTd>%>D?oI^5{{h2UjdDB|w>q=o?|JE}zFS8RrxJ}Fx=s^ZgS3j3^ HP6