KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   

- Knowledge base . 
Go back to the overview page to see other entries
Back to overview

click to vote up

How to theme transparency in GTK2 menus?

Artwork - Sep 15 2011
Question:Some background info: I'm making a Gtk theme based on Doom 3's UI.

I've run into a problem. I want the menu to look kind of like the attached picture.
That has transparency in a few places, and I don't know how to do that. If I leave transparent places in the image then it fills them with the background window colour. So I'm hoping that someone knows how to do this, or if not, I'm hoping someone has another idea for the menus. Thank you for reading this. :)

EDIT: Thanks for the feedback, guys, but this question is dead now, as GTK2 is fading away to GTK3.

If anyone would like to know, I did finish the theme, without transparent menus. It can be found here: http://opendesktop.org/content/show.php/Doom3?content=144201

How to theme transparency in GTK2 menus?  

Answer:Use GIMP and the free form selection tool (or standard or circle select if they are more appropriate.)

Select the main color for that section and then under layer select Transparency >> Color To Alpha then you will also get the option to set the transparency level.

Edit answer
GnoMenu - Documentatio n Manager

Back to overview


 Thanks, but that doesn't work...

 by Padster on: Jul 26 2011
Score 50%

I already have the image transparent, but I was wanting the GTK theme to let it work. It fills up the transparent space with the "base" colour.

Reply to this


 Re: Thanks, but that doesn't work...

 by l0ll0lll on: Sep 15 2011
Score 50%

AFAIK, there's no easy way to do what you want.
You'll most likely have to find/write/change a theme engine which would support ARGB translucency (which will only work in composited environment (e.g. compiz)) or XShape, which will have jagged edges, but will work even without compositing.
I don't know of any pixmap-based engine with these abilities.

Reply to this


 Re: Re: Thanks, but that doesn't work...

 by Padster on: Sep 15 2011
Score 50%

Thanks for the feedback. I'm not working on this theme any more (finished it without transparency), and have updated the question as well.

Reply to this

Add comment

Do you have a question?
Post your question here

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2016 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.