Opera Skinning part 5: Tips and tricks

Forums » Dev.Opera » Archived Article Discussions

This topic has been closed. No new entries allowed.

Reason: You can now post comments on articles on Dev Opera

Forum rules and guidelines

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

20. June 2008, 13:59:48

Opera Software

chrismills

Posts: 379

Opera Skinning part 5: Tips and tricks



( Read the article )

Chris Mills
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com

27. June 2008, 09:11:44

drworm

Posts: 1521

"Specify only changed elements" > This doesn't appear to be true for 9.5. A blank skin.ini file will result in something too different from Opera Standard to be able to use it as a base for a new skin. Images go missing and dimensions change.

Also, the height of the pagebar in 9.5 "Opera Standard" is conflicting. All images are 30px high, the specified height in skin.ini is 30 but the actual height is 32. In a new skin I'm trying to get this down to 30 but I can only get it down to 31 by reducing the top margin on some elements. This is creating a frustrating 1px gap on some elements that I can't remove (unless I make my images 31px).
Ignored popular requests:
Autocomplete form fields (standard in all other browsers - Requested 2003)

www.microugly.com

27. June 2008, 09:55:49

Moderator

larskl

~ moderator ~

Posts: 22498

Originally posted by drworm:

"Specify only changed elements" > This doesn't appear to be true for 9.5. A blank skin.ini file will result in something too different from Opera Standard to be able to use it as a base for a new skin. Images go missing and dimensions change.



Make sure you have the fallbacks enabled in skin.ini. Just the following skin.ini will clone the Opera standard skin:
# This file describes the skin for the Opera browser

[Info]
Name=Opera Standard Skin
Author=Opera Software
Version=3
Preview Image=

[Options]
Large Images				= 0
Button Text Padding			= 0
Fallback foreground			= 1
Fallback background			= 1
PageCloseButtonOnTop		= 1
Inverted Pagebar Icons		= 1


Pagebar height can be adjusted by changing the paddings/margins on pagebar buttons, it grows to fit them.

27. June 2008, 10:33:31

drworm

Posts: 1521

Originally posted by larskl:

Make sure you have the fallbacks enabled in skin.ini. Just the following skin.ini will clone the Opera standard skin:


Thankyou. I missed the [options] section.

Pagebar height can be adjusted by changing the paddings/margins on pagebar buttons, it grows to fit them.


Thanks for this bit of information also. I just figured out that padding also effected the height (I should have guessed this from HTML rules). But height seems to have no effect at all? Is that correct?

I'm working with the pagebar currently and I set the follow:
[Pagebar Skin]
Height						= 30
Padding Top					= 0
Padding Bottom				= 0
Padding Left				= 0
Padding Right				= 0
Margin Top					= 0
Margin Left					= 0
Margin Right				= 0
Margin Bottom				= 0

[Pagebar Button Skin]
Height						= 30
Type						= BoxStretch
Tile Center					= buttons/pagebar_button.png
StretchBorder				= 2
Padding Top					= 0
Padding Bottom				= 0
Padding Left				= 0
Padding Right				= 0
Margin Top					= 0
Margin Left					= 0
Margin Right				= 0
Margin Bottom				= 0

#all other pagebar elements are cloned

With this definition the height of the pagebar and pagebar button is the height of the site icon (16px I guess) not 30px as I've specified. Is this by design or am I overlooking something?

Perhaps the recommendation is to use padding to create the height so the skin can be enlarged?
Ignored popular requests:
Autocomplete form fields (standard in all other browsers - Requested 2003)

www.microugly.com

27. June 2008, 10:40:52

Moderator

larskl

~ moderator ~

Posts: 22498

Height doesn't work on all elements, I'm pretty sure it doesn't work on [Pagebar Skin], not sure about [Pagebur button skin]

27. June 2008, 10:45:56

drworm

Posts: 1521

Originally posted by larskl:

Height doesn't work on all elements, I'm pretty sure it doesn't work on [Pagebar Skin], not sure about [Pagebur button skin]


It doesn't seem to. Thanks very much for clarifying this. When I first started my skin the other week, the height had me totally stumped (Opera Standard uses it despite not having an effect).

Your tutorial is gold. It's going to save me a lot of head scratching.
Ignored popular requests:
Autocomplete form fields (standard in all other browsers - Requested 2003)

www.microugly.com

30. September 2008, 00:34:59

pgl

sbd

Posts: 51

Nice tutorial. I wanted to ask, have you seen this:

- http://bachius.com/opera/skineditor/

I hadn't. It's... impressive! Dead handy.
Connection: close

Forums » Dev.Opera » Archived Article Discussions