特殊:Badtitle/NS100:DropShadows
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DropShadows }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/af | • {{#if: UbuntuHelp:DropShadows|Afrikaans| [[::DropShadows/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ar | • {{#if: UbuntuHelp:DropShadows|العربية| [[::DropShadows/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/az | • {{#if: UbuntuHelp:DropShadows|azərbaycanca| [[::DropShadows/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/bcc | • {{#if: UbuntuHelp:DropShadows|جهلسری بلوچی| [[::DropShadows/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/bg | • {{#if: UbuntuHelp:DropShadows|български| [[::DropShadows/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/br | • {{#if: UbuntuHelp:DropShadows|brezhoneg| [[::DropShadows/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ca | • {{#if: UbuntuHelp:DropShadows|català| [[::DropShadows/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/cs | • {{#if: UbuntuHelp:DropShadows|čeština| [[::DropShadows/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/de | • {{#if: UbuntuHelp:DropShadows|Deutsch| [[::DropShadows/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/el | • {{#if: UbuntuHelp:DropShadows|Ελληνικά| [[::DropShadows/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/es | • {{#if: UbuntuHelp:DropShadows|español| [[::DropShadows/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/fa | • {{#if: UbuntuHelp:DropShadows|فارسی| [[::DropShadows/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/fi | • {{#if: UbuntuHelp:DropShadows|suomi| [[::DropShadows/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/fr | • {{#if: UbuntuHelp:DropShadows|français| [[::DropShadows/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/gu | • {{#if: UbuntuHelp:DropShadows|ગુજરાતી| [[::DropShadows/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/he | • {{#if: UbuntuHelp:DropShadows|עברית| [[::DropShadows/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/hu | • {{#if: UbuntuHelp:DropShadows|magyar| [[::DropShadows/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/id | • {{#if: UbuntuHelp:DropShadows|Bahasa Indonesia| [[::DropShadows/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/it | • {{#if: UbuntuHelp:DropShadows|italiano| [[::DropShadows/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ja | • {{#if: UbuntuHelp:DropShadows|日本語| [[::DropShadows/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ko | • {{#if: UbuntuHelp:DropShadows|한국어| [[::DropShadows/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ksh | • {{#if: UbuntuHelp:DropShadows|Ripoarisch| [[::DropShadows/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/mr | • {{#if: UbuntuHelp:DropShadows|मराठी| [[::DropShadows/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ms | • {{#if: UbuntuHelp:DropShadows|Bahasa Melayu| [[::DropShadows/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/nl | • {{#if: UbuntuHelp:DropShadows|Nederlands| [[::DropShadows/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/no | • {{#if: UbuntuHelp:DropShadows|norsk| [[::DropShadows/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/oc | • {{#if: UbuntuHelp:DropShadows|occitan| [[::DropShadows/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/pl | • {{#if: UbuntuHelp:DropShadows|polski| [[::DropShadows/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/pt | • {{#if: UbuntuHelp:DropShadows|português| [[::DropShadows/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ro | • {{#if: UbuntuHelp:DropShadows|română| [[::DropShadows/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/ru | • {{#if: UbuntuHelp:DropShadows|русский| [[::DropShadows/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/si | • {{#if: UbuntuHelp:DropShadows|සිංහල| [[::DropShadows/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/sq | • {{#if: UbuntuHelp:DropShadows|shqip| [[::DropShadows/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/sr | • {{#if: UbuntuHelp:DropShadows|српски / srpski| [[::DropShadows/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/sv | • {{#if: UbuntuHelp:DropShadows|svenska| [[::DropShadows/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/th | • {{#if: UbuntuHelp:DropShadows|ไทย| [[::DropShadows/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/tr | • {{#if: UbuntuHelp:DropShadows|Türkçe| [[::DropShadows/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/vi | • {{#if: UbuntuHelp:DropShadows|Tiếng Việt| [[::DropShadows/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/yue | • {{#if: UbuntuHelp:DropShadows|粵語| [[::DropShadows/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/zh | • {{#if: UbuntuHelp:DropShadows|中文| [[::DropShadows/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/zh-hans | • {{#if: UbuntuHelp:DropShadows|中文(简体)| [[::DropShadows/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DropShadows | UbuntuHelp:DropShadows | {{#if: | :}}DropShadows}}/zh-hant | • {{#if: UbuntuHelp:DropShadows|中文(繁體)| [[::DropShadows/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DropShadows|:DropShadows|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DropShadows/zh | | {{#ifexist: DropShadows/zh | | {{#ifeq: {{#titleparts:DropShadows|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DropShadows|1|-1|}} | zh | | }}
I you are using FeistyFawn then see DesktopEffects . If you are using DapperDrake you should probably look at CompositeManager |
What drop shadows are and why you might want them
Drop shadows are shadows drawn behind windows and menus on the desktop, to give the effect of depth. They are the default on Apple's Mac OS X. They require alpha layer transparency so that you can see through them to what ever is underneath. This requires a lot of computer power, unless your graphics card can accelerate the rendering. Apples graphics system is written in openGL so it is easy for them to implement this. Until recently it has been very hard to make drop shadows in Linux without a large performance hit. Some people feel that drop shadows are unnecessary eyecandy. I think that they are a useful way of subtly making windows distinct from each other. The human eye is good at picking up on depth cues like drop shadows.
A small warning
This may cause an instability on some (non-default install) programs. celestia-gnome and nethack-gnome seem to cause the x server to crash with these adjustments to the xorg.conf. (see bug https://bugzilla.ubuntu.com/show_bug.cgi?id=7406 )
What you need
You will need to be running Xorg, rather than XFree86. Xorg is available in Hoary. You will need the xcompmgr package (will also install libcomposite) You will also need to have a good graphics card and a fast computer. I have a 64mb ATI Radeon Mobility 9000 in my 1Ghz G4 powerbook. A few years old, but good enough for this to work. You will need to enable graphics acceleration. Have a look at BinaryDriverHowto if you are running an x86 processor. I have a powerpc processor so I use the open source ati driver, which are already installed. Now you need to edit your X configuration. You can get your system in a real mess if you damage this file. If have not edited configuration files before and don't know how to make a backup then you probably should not be attempting this. The X configuration file is at /etc/X11/xorg.conf These are the changes I made, it may be different on different card, if you try this please post your experience as a comment. I changed
Section "Device" Identifier "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf)" Driver "ati" BusID "PCI:0:16:0" Option "UseFBDev" "true" EndSection
To
Section "Device" Identifier "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf)" Driver "ati" BusID "PCI:0:16:0" Option "UseFBDev" "true" Option "backingstore" "true" Option "RenderAccel" "true" EndSection
and added
Section "Extensions" Option "Composite" "Enable" Option "RENDER" "true" Option "DAMAGE" "true" EndSection
to the end. These are lines that I have picked up from the wiki and the forums. They enable some of the new features in Xorg. You will have to restart X for these to come into effect. The easiest way is to logout and press ctrl+alt+backspace at the login screen. (You can also reboot the whole computer, or logging out and running "sudo /etc/init.d/gdm restart" from a text terminal should do it)
How to enable drop shadows
The Gnome desktop does not have drop shadows built in, so you will need to use the xcompmgr utility to turn them on. Have a look at the man page for a full list of its options. Open up a terminal and run
xcompmgr -c
Use Control + C to stop it. Have a play with a few of the options in the man page. You can make the shadows bigger with
xcompmgr -c -r 30
or hard with
xcompmgr -s
If you get windows going on top of you gnome panels then run
killall gnome-panel
to put the panels back on the top layer. Once you have found your perfect settings then you might want to make them run whenever you start Gnome. In the Preferences menu choose Sessions. Go to the Startup Programs tab. Click add and add your chosen xcompmgr command. Set the order to something small; you need it to load before gnome-panel. Now log out and back in again.
Additional notes
If you find that this affects openGL performance, try adding the following to your /etc/X11/xorg.conf
Option "AllowGLXWithComposite" "true"
From DanieleMedri Sat Mar 26 12:35:57 +0000 2005 From: Daniele Medri Date: Sat, 26 Mar 2005 12:35:57 +0000 Subject: Option "AllowGLXWithComposite" Message-ID: <20050326123557+0000@https://www.ubuntulinux.org> I put this option in my device section (eg. Nvidia card) not in "Extensions". From LucaDeRugeriis Thu May 12 03:28:09 +0100 2005 From: Luca De Rugeriis Date: Thu, 12 May 2005 03:28:09 +0100 Subject: Metacity Message-ID: <20050512032809+0100@https://www.ubuntulinux.org> If you kill gnome-panel, you lose icons in your notification area. Some applications will crash too. Then the panel will show up with drop shadows which is boring. Killing metacity is a much more effective way to restore your desktop margins.