Bug 384031 - button background & effects don't follow their arrangement in Nokoda theme
Summary: button background & effects don't follow their arrangement in Nokoda theme
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nodoka-theme-gnome
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Martin Sourada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-15 05:14 UTC by Stefan Plewako
Modified: 2008-04-19 09:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-19 09:06:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
A screenshot of a problem in Nokoda theme (7.53 KB, image/png)
2007-11-15 05:14 UTC, Stefan Plewako
no flags Details
Proposed solution 1 (21.67 KB, image/png)
2007-11-18 13:05 UTC, Martin Sourada
no flags Details
Solution 2 (21.79 KB, image/png)
2007-11-19 09:58 UTC, Martin Sourada
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.