Hover tooltip in skin

Forums » General Opera topics » Customizing Opera

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

13. April 2010, 23:47:26

DanielHendrycks

STEM loving liberal

Posts: 2632

Hover tooltip in skin

Hi, in the latest snapshots there is now a somewhat native hover tooltip. http://img198.imageshack.us/img198/7901/inkscapepastedimage2010.png However, this tooltip does not have transparency in the corners so it is black. Could someone find the location of this tooltip so I can make the corners transparent and submit the change to the developers? I looked for it in the skin file and did not find it.

14. April 2010, 00:51:30 (edited)

Vectronic

... ... ...

Posts: 2538

Isn't it '<i>Thumbnail Tooltip Skin</i>'? It's the only icon added <a href="http://76.11.58.186/#Icon_List">recently</a> (scroll to the bottom of the list).

Edit: might be '<i>Tooltip Skin</i>' too... but it uses the "Native" style now.

14. April 2010, 01:13:13 (edited)

Vectronic

... ... ...

Posts: 2538

I dunno... is it?...lol

Thumbnail Tooltip Skin... uses "border/simple_border.png"

Tooltip Skin... uses nothing because it's Native.

Help Tooltip Skin... uses "speeddial/overlay-window.png" (which might also be it, it's the right color/style)

Edit: "inactive.png" isn't used for anything but the Pagebar, I doubt they would (doesn't mean they wouldn't) use that as the Tooltip, since referencing it would nightmare if someone forgot that...

Create a cloned skin, edit all the ones that look like it might be it... add a dot on each one that's different colors for each image... should find out fairly quick.

14. April 2010, 01:46:55

DanielHendrycks

STEM loving liberal

Posts: 2632

It is not speed dial>window overlay, speed dial>window overlay-no alpha,> pagebar>thumbnail>active, or pagebar>thumbnail inactive

Hmm...

Originally posted by Vectronic:

Tooltip Skin... uses nothing because it's Native.


Wait, the tooltip skin is used when you do what? (like hover over the new tab button?)

14. April 2010, 02:00:57

Vectronic

... ... ...

Posts: 2538

Originally posted by DanielHendrycks:

...hover over the new tab button?

I would assume so... although I've never actually tested, but since it's the only one that's "Native" and has "Tooltip" in the name... <i>and</i> it shows up as light gray on dark gray (what I have my XP tool.tips set to)... yes.

14. April 2010, 02:21:54

DanielHendrycks

STEM loving liberal

Posts: 2632

Originally posted by Vectronic:

I would assume so... although I've never actually tested


Oh, so Opera probably just has the tooltips for such things set to native but it does not have transparent edges... I'll talk about it in the next snapshot briefly.

14. April 2010, 02:57:36

Vectronic

... ... ...

Posts: 2538

I think it might be because of whatever Microsoft uses for transparency, since maybe they use either GIF with transparency but Opera doesn't like that (?) or Bitmaps for the images, like the old-school transparency values 255,0,255, or some video players that'll use something like 10,12,14 for the overlay color... but Opera just uses PNG that support transparency themselves rather than masking.

Hopefully it's not because Opera has to extract an image from some DLL somewhere, because that's pretty much not fixable, unless MS is using GIF's that should be transla/implementable... if MS uses a custom masking value... too much bother for Opera to try and code something to fix that since it might change, and is very platform specific since it doesn't even pertain to XP, 2K, etc...

But, I could be completely wrong, and maybe it's something silly... like the control is initiated with a black background, when it should be transparent before drawing the image on top of it.

15. April 2010, 01:32:51

DanielHendrycks

STEM loving liberal

Posts: 2632

I made a skin with a transparent tooltip and edited the ini but it still has black corners... confused

15. April 2010, 02:15:29

Vectronic

... ... ...

Posts: 2538

Dunno... maybe it is a bug.

15. April 2010, 23:11:27

DanielHendrycks

STEM loving liberal

Posts: 2632

Here is the transparent tooltip, maybe I am doing something wrong with the ini; could you try and see if it works?

http://img232.imageshack.us/img232/5295/tooltip.png

15. April 2010, 23:36:38

Vectronic

... ... ...

Posts: 2538

I'll try... although I found a weird problem with that image... not sure if it's Opera's fault, the PNG itself, or Photoshop...

But simply "copying" the image to clipboard, instead of saving... and pasting it in Photoshop, it lost the transparency, and made weird black & white squiggles where it <i>was</i> transparent...lol

Almost like it was copying parts of the text in the background tab for those parts.

16. April 2010, 00:10:07 (edited)

Vectronic

... ... ...

Posts: 2538

K this is what I get...

First image (Left), that has the black corners is:
[Tooltip Skin]
Type = BoxTile
Tile Left = backgrounds/tooltip.png
Tile Top = backgrounds/tooltip.png
Tile Right = backgrounds/tooltip.png
Tile Bottom = backgrounds/tooltip.png
Corner Topleft = backgrounds/tooltip.png
Corner Topright = backgrounds/tooltip.png
Corner Bottomright = backgrounds/tooltip.png
Corner Bottomleft = backgrounds/tooltip.png
Padding Left = 0
Padding Top = 0
Padding Right = 0
Padding Bottom = 0


The second image, is the same but with:
Fallback version = 3
ClearBackground = 1


Also about the same using "BoxStretch" and "Tile Center"... Seem like it might be the image itself... gonna test with a different image...
(a minute or so passes)
And that failed entirely... using either <i>cycler-window.png</i> (which also made Photoshop upset about invalid ICC) and <i>search-background.png</i> both refused to load any image at all, they just had the gray background... (but it might be because I'm in XP, so it doesn't know what to use for transparency)

But... since yours has black dots, not gray, then maybe its the <i>ClearBackground = 1</i> that you are missing?

Edit: changed image URL, don't need 3000 hits to my FTP for that...lol

16. April 2010, 01:49:41

DanielHendrycks

STEM loving liberal

Posts: 2632

Originally posted by Vectronic:

But... since yours has black dots, not gray, then maybe its the ClearBackground = 1 that you are missing?


Nope. (note to self: do not go into the graphics department)

16. April 2010, 02:24:37

Vectronic

... ... ...

Posts: 2538

Well what parts other than tooltips have transparency that works? copy those settings, and also check attributes for the images themselves (pallets, interlacing, etc) not sure how much leeway Opera has, but even if you do get that image to work, it will never be fully transparent, since only the lower-left, and upper-right corners are actually transparent, the shadow is just gray on white...

Any other skins (Z1-Glass, etc) have tooltips with transparency that works? Maybe Opera just doesn't support it for tooltips. The RSS/E-mail pop-up doesn't have transparent corners (in XP anyways) either, they are just less noticeable since its over a white background (for default skin), haven't bothered to boot into Win7 in a long time, but I'll play around with my Vista box later and see if I can get anything to work.

By the way what are you using for editing the PNG's?

16. April 2010, 02:56:18

DanielHendrycks

STEM loving liberal

Posts: 2632

Originally posted by Vectronic:

By the way what are you using for editing the PNG's?


GIMP.

Originally posted by Vectronic:

Any other skins (Z1-Glass, etc) have tooltips with transparency that works?


I did not see any transparency in the tooltips pf the Z1-Glass skin.

16. April 2010, 10:59:14

Z1-AV69

Posts: 266

From my experience transparency in tooltips (both normal and tab-previews) doesn't work no matter what settings are used.

The Win7 native tooltip that is used in the standard_skin has rounded corners with transparency. But Opera does only use the native look, it's no real Windows tooltip. Therefor the transparency at the corners doesn't work and is black instead. Imho thats not good and should be fixed, best by allowing transparency in tooltips.

17. April 2010, 01:48:04

sutekh

(;,;)

Posts: 207

To quote a dev from a while ago... "Yes it's a known bug, tooltips aren't completely native, this should be dealt with sometime in the future".
I think there's no need to submit it again.

17. April 2010, 01:52:52

DanielHendrycks

STEM loving liberal

Posts: 2632

Originally posted by sutekh:

I think there's no need to submit it again.


Well, this is not necessarily a bug on whether it is native, this is a bug on transparency in tooltips.

17. April 2010, 16:04:18

DanielHendrycks

STEM loving liberal

Posts: 2632

Should I just file it? (I am hesitating because I may not describe it right, considering I am not experienced with skins.)

Forums » General Opera topics » Customizing Opera