Closed Bug 655691 Opened 13 years ago Closed 13 years ago

Use native button appearance for colorpicker buttons

Categories

(Toolkit :: Themes, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: alexander.wilms, Assigned: Paenglab)

References

()

Details

Attachments

(5 files, 4 obsolete files)

User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10

Also see: http://ubuntuone.com/p/s0E/

The buttons to choose the color for text and background in the settings window don't follow the Ambiance theme. I think it is the same issue as in this bug, which has been patched already: https://bugzilla.mozilla.org/show_bug.cgi?id=638481

Reproducible: Always

Steps to Reproduce:
1. Open settings window
2. Switch to "View" pane
3. Switch to "Create" pane

Actual Results:  
Some buttons don't follow the gtk-theme

Expected Results:  
They should look like all the other buttons
Component: OS Integration → Theme
QA Contact: os-integration → theme
The problems is also existent in Mozilla/5.0 (X11; Linux i686; rv:5.0a2) Gecko/20110505 Thunderbird/3.3a4pre
This is not only a Thunderbird issue. Firefox has the same in his preferences and both are using the same code.

-> moving to Core
Status: UNCONFIRMED → NEW
Component: Theme → General
Ever confirmed: true
Product: Thunderbird → Core
QA Contact: theme → general
Version: unspecified → Trunk
This patch gives the colorpicker a button appearance.

This is my first patch for core. So please, if I took the wrong reviewer, then assign the right one.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #532421 - Flags: review?(dao)
Attached image Colorpicker comparison
Image showing the difference between before and after.
Why aren't you modifying toolkit/themes/winstripe/global/colorpicker.css?
Component: General → Themes
Product: Core → Toolkit
QA Contact: general → themes
I didn't knew, if this is appreciated.
A problem is, Windows (i checked under W7) is using 3px borders and Linux mostly 6px borders for buttons. Windows needs padding and Linux not. With a compromise of padding: 2px (1px is to small for Win) you see the tiny color box under Linux. A solution could be to change the height from 24px to 26px. What o you mean?
Could you change the button height to 26px and post another screenshot, please?
Patch also for Windows with button height of 26px.
Attachment #532421 - Attachment is obsolete: true
Attachment #532421 - Flags: review?(dao)
Attachment #532440 - Flags: review?(dao)
Looking good
How does this look with the 'classic' windows theme?
Colorpicker under Win7 Classic. Actually I have no XP at hand and can't make screenshots under XP.
Ok... since we don't want the padding on Linux, I think you should both update winstripe's colorpicker.css and add a gnomestripe copy.
Attached patch Patch for Linux and Windows (obsolete) — Splinter Review
Leaved the padding: 3px on Windows and under Linux no padding set.

Additionally removed some white-space on .colorpickertile. It was the only selector with this formatting in this file.
Attachment #532440 - Attachment is obsolete: true
Attachment #532440 - Flags: review?(dao)
Attachment #532506 - Flags: review?(dao)
Comment on attachment 532506 [details] [diff] [review]
Patch for Linux and Windows

>+.colorpickertile[selected="true"] {
>+  border : 2px outset #C0C0C0;
>+
>+}

Please remove the blank line and the space before the colon. Thanks!
Attachment #532506 - Flags: review?(dao) → review+
OS: Linux → All
Hardware: x86 → All
Summary: "Choose color" - buttons in Thunderbird's settings windows look off → Use native button appearance for colorpicker buttons
Attached patch Patch for check-in (obsolete) — Splinter Review
Fixing nit from review.

Carrying over r+ from previous patch.
Attachment #532506 - Attachment is obsolete: true
Attachment #532508 - Flags: review+
Keywords: checkin-needed
Attachment #532508 - Attachment is patch: true
Attachment #532508 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 532508 [details] [diff] [review]
Patch for check-in

>+.colorpickertile[selected="true"] {
>+  border: 2px outset #C0C0C0;
>+
>+}

The blank line is still there.
Sorry, I saw the space between border and :, but oversaw the empty line.
Attachment #532508 - Attachment is obsolete: true
Attachment #532512 - Flags: review+
http://hg.mozilla.org/mozilla-central/rev/12ac80dfdacb
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Depends on: 687037
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: