After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 151261 - Add a "background" property to the theme format
Add a "background" property to the theme format
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks: 102547
 
 
Reported: 2004-08-28 02:53 UTC by Havoc Pennington
Modified: 2006-10-07 17:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch showing introduction of theme format versions, and this feature (25.76 KB, patch)
2004-09-04 03:34 UTC, Havoc Pennington
none Details | Review
maybe the same patch as before, minus changelog (24.61 KB, patch)
2005-01-17 16:48 UTC, Havoc Pennington
needs-work Details | Review

Description Havoc Pennington 2004-08-28 02:53:30 UTC
See bug #150465 for the motivation. Background options should include:
 - standard GTK theme background (choice of states?)
   which covers what we do now
 - background as (A)RGB color
Comment 1 Rich Wareham 2004-09-03 10:47:15 UTC
Could we not extend the existing colour spec to allow for alpha. For example 
something like 'gtk:bg[NORMAL]/80' for 50% opacity normal background. 
Comment 2 Havoc Pennington 2004-09-04 03:34:15 UTC
Created attachment 31250 [details] [review]
patch showing introduction of theme format versions, and this feature

This patch adds theme format versioning, and also color/alpha attributes on
frame_style. I haven't tested the patch at all, I just thought I'd write it to
show the general approach that I want to take.
Comment 3 Havoc Pennington 2004-09-04 03:35:12 UTC
Extending the existing color spec is possible, yeah. It just seemed a bit
inconsistent with how the rest of the theme format works.

Generally speaking GDK doesn't include alpha in the color... I can't remember if
owen considered that feature or bug.
Comment 4 Havoc Pennington 2005-01-17 16:47:34 UTC
Here's a diff from my current cvs checkout because I want to delete said
checkout... I don't remember if this diff is different from the one I attached
earlier. I just accidentally deleted the ChangeLog so the older diff has that
advantage at least.
Comment 5 Havoc Pennington 2005-01-17 16:48:40 UTC
Created attachment 36137 [details] [review]
maybe the same patch as before, minus changelog
Comment 6 Rob Adams 2005-05-26 20:00:42 UTC
updating per comments
Comment 7 Thomas Thurman 2006-06-20 03:15:05 UTC
This should go into metacity-theme-2, I'm assuming.

I'm trying to work with the most recent patch attached to this bug, but it's failing when meta_frames_set_window_background() calls meta_core_get_frame_flags(): meta_display_lookup_x_window() in that call returns null. Am I doing something wrong here?
Comment 8 Thomas Thurman 2006-06-26 20:35:11 UTC
(I have found the answer to my own question.)
Comment 9 Thomas Thurman 2006-06-27 02:37:01 UTC
Fixed in metacity-theme-2. I had to assume that the actual line to implement alpha in attachment 36137 [details] [review] works, since my X server doesn't have an alpha channel. Other than that, it all works.
Comment 10 Thomas Thurman 2006-10-07 17:02:07 UTC
Fixed in HEAD!