All sections - alphabetical | grouped | visual
There are two fallback mechanisms for a custom-skin:
- What you see if a sub section is lacking (types/states sections):
then you see normally the things specified in the main section. In some cases (.hover) you see then Opera`s general hover color - a bright violet in 10.0. You cannot change this color in itself, but you can insert a separate subsection for .hover with the desired color or images, eg for the scrollbar knobs. - What you see if a main section is lacking:
then it depends on the `Version=` setting in [Info] and the `Fallback background=` / `Fallback foreground=` settings in [Options] what you see. That can be a section from the current-skin or a section from the standard-skin (therefore you should never change the filename/path of the standard-skin!).
In this skin guide you find detailed fallback information for every mentioned skin section, see the example downwards the page.
Enable/disable fallback to the standard-skin in [Options]:
The following setting in the [Options] section affects the fallback if a main section is lacking (see 2. above)
Fallback foreground = 1 fallback to the standard-skin for foreground elements enabled (0: disabled, default if no entry: 1)
With the strongly recommended value 1 you can be sure, that lacking or future foreground elements appears in your custom-skin - taken from the current standard-skin. The value 0 you should only use for testing purposes!Fallback background = 1 fallback to the standard-skin for background elements enabled (0: disabled, default if no entry: 1)
With the strongly recommended value 1 you can be sure, that lacking or future background elements appears in your custom-skin - taken from the current standard-skin. The value 0 you should only use for testing purposes!-
So your [Options] section should normally look as follows:
[Options] Fallback foreground = 1 Fallback background = 1
Choose the fallback behaviour to the standard-skin in [Info]:
The following setting in the [Info] section affects the fallback behaviour if a main section is lacking (see 2. above)
Version = 3 lacking sections have fallback to the same standard-skin sections which have a `Fallback version = 3` entry
Note that also Fallback foreground/background in [Options] must be enabled therefore. Other lacking sections have the old fallback behaviour to the standard-skin - that can be a different section than the lacking; like Version = 2 before Opera 9.5.-
So your [Info] section should normally look as follows:
[Info] Version = 3
Version = 2 is valid too in Opera 10; then you have the old fallback behaviour to the standard-skin (before 9.5) for all lacking sections - that can be a different section than the lacking. Especially if you update an older skin or if you create a skin which have to work with Opera 10 but also older versions, you have to decide between the value 2 and 3. Note that the value 3 is ignored by Opera versions before 9.5.
In general:
- Fallback background/foreground in [Options]: enables/disables fallback to the standard-skin
- Version in [Info]: specifies the fallback behaviour to the standard-skin
- The entry `Fallback versions = 3` in the standard-skin: specifies this section as fallback for a custom-skin with Version = 3 in [Info]. The `Fallback version = 3` entry should only be in the standard-skin; there is no sense and no effect in a custom-skin!
Example for the detailed fallback info in this guide for the [Addressbar skin] section:
-
If no section, Info-Version 3 and
- Options-Fallback background 1, you see: [Addressbar skin] from standard-skin
- Options-Fallback background 0, you see: [Window skin] from current-skin - If no section, Info-Version 2 and
- Options-Fallback background 1, you see: [Window skin] from current-skin
- Options-Fallback background 0, you see: [Window skin] from current-skin
Please note that the detailed fallback info concerns always the behaviour for a custom-skin in Opera 10 - the same settings may result in another behaviour with older Opera versions!
All sections - alphabetical | grouped | visual
More
Section types and states
Section entries
Defaults
Boxes | Images | Notation
Special sections Info, Options and Generic
Special headers
Fallback
General rules
Version numbers in this guide
Latest changes in this guide
Credits and links
Skin changelogs
-


