Bug 384031

Summary: button background & effects don't follow their arrangement in Nokoda theme
Product: [Fedora] Fedora Reporter: Stefan Plewako <splewako>
Component: nodoka-theme-gnomeAssignee: Martin Sourada <martin.sourada>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-19 09:06:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A screenshot of a problem in Nokoda theme
none
Proposed solution 1
none
Solution 2 none

Description Stefan Plewako 2007-11-15 05:14:03 UTC
Description of problem:
If you change titlebar button layout (eg to mac alike arrangement) when using
Nokoda Gnome theme, light blue button background will no follow change, instead
it will remain on right side (eg under icon of window menu).

Button hover effect is also lost.

How reproducible: always
Steps to Reproduce:
1. Open Gnome Configuration Editor
2. Find /apps/metacity/general/button_layout
3. Change it to: close,maximize,minimize:menu
Actual results: as in attached screenshot
Expected results: button background & effects will follow their placement

Comment 1 Stefan Plewako 2007-11-15 05:14:04 UTC
Created attachment 259471 [details]
A screenshot of a problem in Nokoda theme

Comment 2 Martin Sourada 2007-11-18 13:04:02 UTC
Thanks for the report. I am aware of this problem and until now I was unsure as
to how to approach it. The problem arose as a result of the want to have all the
buttons joined. I reworked the metacity to have the buttons together, but not
joined, I'll attach a screenshot of the proposed solution for your considering.

Comment 3 Martin Sourada 2007-11-18 13:05:26 UTC
Created attachment 262861 [details]
Proposed solution 1

Comment 4 Stefan Plewako 2007-11-19 08:18:43 UTC
As far as I can see there is still one problem, borders inside button block are
two times wider then outside of it.

I'm not familiar with theme creation but this seems to be an affect of using
borders as splitters, right? Would it be possible to eliminate borders from
buttons backgrounds, put button background (gradient) in button image file and
use background to create borders with collapsing margins between buttons (if CSS
like), or some oder trick?

I don't think that it is good idea to break things for most of users. (as in
solution#1)

Comment 5 Martin Sourada 2007-11-19 09:58:26 UTC
Created attachment 263371 [details]
Solution 2

There are two basic things how can you do a button layout and both has their
drawbacks:

1. you specify the backgrounds according to position of the button, which is
the original implementation - it however is fixed to the window and leads to
this bug

2. you specify the background for each button, which leads to the problem in
solution#1 - i.e. the borders are for each buttons and that results in the
effect of thicker line between buttons, I tried to get rid of that effect as
much as possible, but it seems quite hard to achieve.

I attach another try, the look is not final, but suggests the way I'd like to
take.

Comment 6 Stefan Plewako 2007-11-19 14:57:14 UTC
(In reply to comment #5)
> I attach another try, the look is not final, but suggests the way I'd like to
> take.

I think it is much better one.
Do You plan somehow to draw left border only for the first button on each side?

Comment 7 Stefan Plewako 2008-04-19 09:06:42 UTC
fixed in rawhide