Add css for scrolling

Port bits of Nbtk'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
This commit is contained in:
Colin Walters 2009-09-10 01:38:00 -04:00 committed by Owen W. Taylor
parent 3e265b4bc6
commit 60819b3a79
6 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,62 @@
/* Copyright 2009, Red Hat, Inc.
*
* Portions adapted from NBTK'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.
*/
NbtkScrollBar
{
background-color: #354761;
padding: 0px;
}
NbtkScrollView
{
scrollbar-width: 16;
scrollbar-height: 16;
}
NbtkButton#up-stepper
{
border-image: url("file://scroll-button-up.png") 5;
}
NbtkButton#up-stepper:hover,
NbtkButton#up-stepper:active
{
border-image: url("file://scroll-button-up-hover.png") 5;
}
NbtkButton#down-stepper
{
border-image: url("file://scroll-button-down.png") 5;
}
NbtkButton#down-stepper:hover,
NbtkButton#down-stepper:active
{
border-image: url("file://scroll-button-down-hover.png") 5;
}
NbtkScrollBar NbtkButton#vhandle
{
border-image: url("file://scroll-vhandle.png") 5;
}
NbtkScrollBar NbtkButton#vhandle:hover
{
border-image: url("file://scroll-vhandle.png") 5;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

BIN
data/scroll-button-down.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

BIN
data/scroll-button-up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

BIN
data/scroll-vhandle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B