Closed Bug 155053 Opened 23 years ago Closed 19 years ago

Make the spinbuttons a real widget

Categories

(SeaMonkey :: Themes, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: john, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(7 files, 2 obsolete files)

spinbuttons.css refers to icons that are no longer there. In Classic, http://lxr.mozilla.org/seamonkey/source/themes/classic/global/mac/spinbuttons.css and http://lxr.mozilla.org/seamonkey/source/themes/classic/global/win/spinbuttons.css have referances like this .up { list-style-image: url("chrome://global/skin/spinbtn-up.gif") } All icons were removed from the global directory in December. No new directory was created to hold these icons. In Modern, http://lxr.mozilla.org/seamonkey/source/themes/modern/global/spinbuttons.css refers to .up { list-style-image: url("chrome://global/skin/spinbuttons/btn-up.gif"); } There is no spinbuttons directory holding these icons.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hakan, can you help us with the missing images? Thanks.
This did work, I know glazou used the spinbuttons widget in his XUL application; someone broke it, and it sure wasn't me! :-) CC'ing some random people, does anyone have any idea?
Hakan or Daniel, can one of you guys please commit the missing images into the tree, this way we can have a go with the buttons, I don't have a clue what they do/can do yet.
Attached image spinbtn-dn.gif
Attached image spinbtn-dn-act.gif
Attached image spinbtn-up.gif
Attached image spinbtn-up-act.gif
I Found Copies of the missing icons and added attached them to this bug.
Taking bug
Assignee: shliang → daniel
This should so be done with CSS borders and backgrounds.
(In reply to comment #11) > This should so be done with CSS borders and backgrounds. Right.
*** Bug 276146 has been marked as a duplicate of this bug. ***
I'm going ask for 1.1 blocking on a couple of spinbutton bugs. We have been trying to use them in our ForcastFox extension, but they won't theme correctly since we have to supply our own images.
Flags: blocking-aviary1.1?
Flags: blocking-aviary1.1? → blocking-aviary1.1-
*** Bug 319088 has been marked as a duplicate of this bug. ***
Morphing this bug into one about making the <spinbuttons/> a real XUL element with propery properties, methods and events, etc.
Assignee: daniel → enndeakin
Blocks: 260487
Summary: Spinbutton icons missing in Classic and Modern skins. → Make the spinbuttons a real widget
Attachment #225034 - Flags: superreview?(roc)
Attachment #225034 - Flags: review?(roc)
Attached patch Add spinbuttons widget (obsolete) — Splinter Review
Attachment #225036 - Flags: review?(neil)
I can't see any code that draws the spinbuttons on Windows 2000 or BeOS?
Attached patch Add images for other platforms (obsolete) — Splinter Review
Added to Windows spinbuttons.css, but otherwise unchanged. The only issue is that for xpfe, the spinbuttons appears too tall, but I can't figure out what the reason for that is. Different images, maybe?
Attachment #225036 - Attachment is obsolete: true
Attachment #226165 - Flags: review?(neil)
Attachment #225036 - Flags: review?(neil)
Comment on attachment 225034 [details] [diff] [review] native theme changes for spinbuttons mostly a rubber-stamp...
Attachment #225034 - Flags: superreview?(roc)
Attachment #225034 - Flags: superreview+
Attachment #225034 - Flags: review?(roc)
Attachment #225034 - Flags: review+
(In reply to comment #20) >The only issue is that for xpfe, the spinbuttons appears too tall, but I can't >figure out what the reason for that is. Different images, maybe? You're using the 11x11 arrow images that Classic has. Strangely on my XP build the spinbuttons has a height of 22. Where did the borders go? I'm worried that the native theme code is overriding the border size even when it's not painting.
I removed the -moz-appearance and it makes makes things look as expected. I'd say that's bad :-( Obviously if I was using Luna then I would expect it to override the size.
The Modern styles are forcing the image to be 2px high which seems odd.
- fix up modern theme appearance - for Classic themes, use background images for spinbuttons rather than list-style-images
Attachment #226165 - Attachment is obsolete: true
Attachment #228842 - Flags: superreview?(neil)
Attachment #228842 - Flags: review?(neil)
Attachment #226165 - Flags: review?(neil)
Comment on attachment 228842 [details] [diff] [review] fix sizing issues Well the good news is that the Modern theme looks quite nice. However, I'd say the Classic theme still has issues. * I hunted around my RH7.3 linux box for some spinbuttons and found some that were 15x22 so I'm not sure where your dimensions came from. * On Windows 2000, or Windows XP with Classic theme, the default height of the spinbuttons is zero. That's right, you don't even get any borders. * On either platform, if you disable (or don't have) themeing (I do this because I don't like the GTK native themeing) then you do get to see the borders, but you have to set a height to see the arrows. * Once I'd done that I noticed that an odd width looks better. In fact I'd say an odd width looks better in Modern too.
Attachment #228842 - Flags: superreview?(neil)
Attachment #228842 - Flags: superreview+
Attachment #228842 - Flags: review?(neil)
Attachment #228842 - Flags: review-
The spinbuttons look the right size on my FC4 system, comparing to various preference panels. Are you using gtk1?
Attachment #228991 - Flags: review?(neil)
Comment on attachment 228991 [details] [diff] [review] Fix issues described above by setting a minimum height Still hacky but at least it works...
Attachment #228991 - Flags: review?(neil) → review+
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
So it looks as if the problem with the Classic theme was that when Classic themeimg was first written not all of the Classic* functions were implemented for spinbuttons, in they are given neither size, border nor background.
Product: Core → SeaMonkey
Blocks: 467901
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: