0% found this document useful (0 votes)
29 views6 pages

Document 2367517.1

Uploaded by

mr.asimsaeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views6 pages

Document 2367517.1

Uploaded by

mr.asimsaeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Copyright (c) 2020, Oracle. All rights reserved. Oracle Confidential.

Oracle Forms - Using customcolorscheme to Create a Customized Runtime Color Palette (Doc ID
2367517.1)

In this Document

Purpose
Details
Using the colorScheme Parameter
Creating a customColorScheme
Using the customColorScheme Parameter
Examples
Sample
Sample2
Blue
Khaki
Olive
Purple
Red
Teal
Titanium
BLAF
SWAN
Generic

APPLIES TO:

Oracle Forms - Version 12.2.1.0.0 and later


Information in this document applies to any platform.

PURPOSE

Beginning with Oracle Forms 12c, administrators can create custom runtime color scheme. This document will help to explain
how to create a new custom color scheme and provide the information needed to create customized schemes that resemble
the packaged schemes.

DETAILS

Using the colorScheme Parameter

All Forms versions 10.1.2 and newer include the following nine color schemes. These color schemes are not modifiable.

Blue
Khaki
Olive
Purple
Red
Teal
Titanium
BLAF
SWAN

The colors of a chosen color scheme are consumed by Forms objects that do not have a color (background or foreground)
selected at design-time or runtime (e.g. in PL/SQL). In other words, in the Builder's Property Palette, the Background or
Foreground color value would appear as <UNSPECIFIED>. When set to <UNSPECIFIED>, the color scheme colors will be
used to paint the object. The exact color chosen for each object is hard coded within the scheme and this cannot be changed.

To use one of the provided color schemes, set the applet parameter "colorScheme" to the desired value from the list provided
earlier. For example:

colorScheme=SWAN
When the form is run, objects with colors not set (e.g. <UNSPECIFIED>) will consume the colors of the selected palette
(SWAN in this example).

Creating a customColorScheme

The palette for customColorScheme is stored in the Font and Icon mapping configuration (i.e. Registry.dat). The settings for
customColorScheme look like this:

colorScheme.<NAME>.<ATTRIBUTE>=<VALUE>
<NAME> can be any alphanumeric string (no special characters or spaces) to help you identify it.

<ATTRIBUTE> must be one of the settable attributes, which are:

description
lightest
lighter
light
dark
darker
darkest
selection
pinstripe1
pinstripe2

desktop
Beginning with 12.2.1.4, the attribute " " can be included. The attribute "desktop" refers to the menu bar, message
bar, and the applet container area seen when running in Microsoft Internet Explorer.

<VALUE> is the hex or comma separated RGB value representing the desired color. All attributes must include a value. If
any value entered is missing or invalid, the entire scheme will be ignored and the setting of colorScheme will be used. Values
are entered in hex format or comma separated RGB. For example: 0xFFFFFF or 255,255,255 is the same as white. To set this
value you must enter 0xFFFFFF or 255,255,255 but not "white". Entering a color name like "white" would be identified as an
invalid value and the colorScheme palette would be used instead of the custom scheme.

colorScheme.myCompanyColors.lightest=0xFFFFFF

A sample is included in Registry.dat and should be used as a template for creating a new custom scheme.

Using the customColorScheme Parameter

The customColorScheme parameter will override any setting for colorScheme. This parameter is only supported when used in
lookandfeel=oracle
conjunction with . Although customColorScheme may appear to work when using
lookandfeel=generic , this configuration is not supported. To run with the sample color scheme, enter a URL like this:

http://example.com:9001/forms/frmservlet?customColorScheme=sample

Also note that the following are just examples. It is also not possible to exactly replace and/or customize special look-and-
feels like SWAN and BLAF.
Examples
These examples resemble the existing colorSchemes. However, it is not possible to fully duplicate the default colorSchemes.
Creating a palette from one that closely resembles the existing colors will allow you to start with a familiar palette and be able
to more easily customize it. Here are the color sets that most closely match the existing colorSchemes. Again, these will not
exactly match the pre-packaged colorSchemes, but will be similar.

lightest 0xFFFF33
Sample
lighter 0xFFCC33
colorScheme.sample.description=Sample custom color scheme light 0xCC3333
colorScheme.sample.lightest=0xFFFF33
colorScheme.sample.lighter=0xFFCC33 dark 0x993333
colorScheme.sample.light=0xCC3333
colorScheme.sample.dark=0x993333 darker 0x660033
colorScheme.sample.darker=0x660033 darkest 0x000000
colorScheme.sample.darkest=0x003333
colorScheme.sample.selection=0x4169E1 selection 0x0000FF
colorScheme.sample.pinstripe1=0xEE82EE
pinstripe1 0xEE82EE
colorScheme.sample.pinstripe2=0xF5DEB3
colorScheme.sample.desktop=0xFFFFFF pinstripe2 0xF5DEB3

lightest 0xFFFFFF
Sample2
lighter 0xCCCCCC
colorScheme.sample2.description=Sample2 custom color scheme light 0xCC3333
colorScheme.sample2.lightest=0xFFFFFF
colorScheme.sample2.lighter=0xCCCCCC dark 0x993333
colorScheme.sample2.light=0xCC3333
colorScheme.sample2.dark=0x993333 darker 0x660033
colorScheme.sample2.darker=0x660033 darkest 0x000000
colorScheme.sample2.darkest=0x000000
colorScheme.sample2.selection=0x0000FF selection 0x0000FF
colorScheme.sample2.pinstripe1=0xEE82EE
pinstripe1 0xEE82EE
colorScheme.sample2.pinstripe2=0xF5DEB3
colorScheme.sample2.desktop=0xFFFFFF pinstripe2 0xF5DEB3

lightest 0xFFFFFF
Blue
lighter 0xCCCCCC
colorScheme.myblue.description=MyBlue custom color scheme light 0x95A4B7
colorScheme.myblue.lightest=0xFFFFFF
colorScheme.myblue.lighter=0xCCCCCC dark 0x5F7593
colorScheme.myblue.light=0x95A4B7
colorScheme.myblue.dark=0x5F7593 darker 0x29384C
colorScheme.myblue.darker=0x29384C darkest 0x000000
colorScheme.myblue.darkest=0x000000
colorScheme.myblue.selection=0x0000FF selection 0x0000FF
colorScheme.myblue.pinstripe1=0xDFEAF7
pinstripe1 0xDFEAF7
colorScheme.myblue.pinstripe2=0xB4CFEC
colorScheme.myblue.desktop=0x666666 pinstripe2 0xB4CFEC
lightest 0xFFFFFF
Khaki
lighter 0xCCCCCC
colorScheme.mykhaki.description=MyKhaki custom color scheme light 0x999999
colorScheme.mykhaki.lightest=0xFFFFFF
colorScheme.mykhaki.lighter=0xCCCCCC dark 0x666666
colorScheme.mykhaki.light=0x999999
colorScheme.mykhaki.dark=0x666666 darker 0x333333
colorScheme.mykhaki.darker=0x333333 darkest 0x000000
colorScheme.mykhaki.darkest=0x000000
colorScheme.mykhaki.selection=0x0000FF selection 0x0000FF
colorScheme.mykhaki.pinstripe1=0xDFF8EF
pinstripe1 0xDFF8EF
colorScheme.mykhaki.pinstripe2=0xB2EED7
colorScheme.mykhaki.desktop=0x666666 pinstripe2 0xB2EED7

lightest 0xFFFFFF
Olive
lighter 0xCCCCCC
colorScheme.myolive.description=MyOlive custom color scheme light 0xA6AC9E
colorScheme.myolive.lightest=0xFFFFFF
colorScheme.myolive.lighter=0xCCCCCC dark 0x6B7262
colorScheme.myolive.light=0xA6AC9E
colorScheme.myolive.dark=0x6B7262 darker 0x42463C
colorScheme.myolive.darker=0x42463C darkest 0x000000
colorScheme.myolive.darkest=0x000000
colorScheme.myolive.selection=0x0000FF selection 0x0000FF
colorScheme.myolive.pinstripe1=0xEEF8DF
pinstripe1 0xEEF8DF
colorScheme.myolive.pinstripe2=0xD5EEB2
colorScheme.myolive.desktop=0x666666 pinstripe2 0xD5EEB2

lightest 0xFFFFFF
Purple
lighter 0xCCCCCC
colorScheme.mypurple.description=MyPurple custom color scheme light 0xB5B0C3
colorScheme.mypurple.lightest=0xFFFFFF
colorScheme.mypurple.lighter=0xCCCCCC dark 0x78718E
colorScheme.mypurple.light=0xB5B0C3
colorScheme.mypurple.dark=0x78718E darker 0x342D4A
colorScheme.mypurple.darker=0x342D4A darkest 0x000000
colorScheme.mypurple.darkest=0x000000
colorScheme.mypurple.selection=0x0000FF selection 0x0000FF
colorScheme.mypurple.pinstripe1=0xE5DFF8
pinstripe1 0xE5DFF8
colorScheme.mypurple.pinstripe2=0xC0B2EE
colorScheme.mypurple.desktop=0x666666 pinstripe2 0xC0B2EE

lightest 0xFFFFFF
Red
colorScheme.myred.description=MyRed custom color scheme lighter 0xCCCCCC
colorScheme.myred.lightest=0xFFFFFF
colorScheme.myred.lighter=0xCCCCCC light 0xCAAEA7
colorScheme.myred.light=0xCAAEA7 dark 0x9D8078
colorScheme.myred.dark=0x9D8078
colorScheme.myred.darker=0x4C2B27 darker 0x4C2B27
colorScheme.myred.darkest=0x000000
darkest 0x000000
colorScheme.myred.selection=0x0000FF
colorScheme.myred.pinstripe1=0xF8E5DF selection 0x0000FF
colorScheme.myred.pinstripe2=0xEEC0B2
colorScheme.myred.desktop=0x666666 pinstripe1 0xDFF8EF

pinstripe2 0xEEC0B2

lightest 0xFFFFFF
Teal
lighter 0xCCCCCC
colorScheme.myteal.description=MyTeal custom color scheme light 0x78BABA
colorScheme.myteal.lightest=0xFFFFFF
colorScheme.myteal.lighter=0xCCCCCC dark 0x728F8F
colorScheme.myteal.light=0x78BABA
colorScheme.myteal.dark=0x728F8F darker 0x364C4C
colorScheme.myteal.darker=0x364C4C darkest 0x000000
colorScheme.myteal.darkest=0x000000
colorScheme.myteal.selection=0x0000FF selection 0x0000FF
colorScheme.myteal.pinstripe1=0xDFF8EF
pinstripe1 0xDFF8EF
colorScheme.myteal.pinstripe2=0xB2EED7
colorScheme.myteal.desktop=0x666666 pinstripe2 0xB2EED7

lightest 0xFFFFFF
Titanium
lighter 0xCCCCCC
colorScheme.mytitanium.description=MyTitanium custom color scheme light 0x999999
colorScheme.mytitanium.lightest=0xFFFFFF
colorScheme.mytitanium.lighter=0xCCCCCC dark 0x666666
colorScheme.mytitanium.light=0x999999
colorScheme.mytitanium.dark=0x666666 darker 0x333333
colorScheme.mytitanium.darker=0x333333 darkest 0x000000
colorScheme.mytitanium.darkest=0x000000
colorScheme.mytitanium.selection=0x0000FF selection 0x0000FF
colorScheme.mytitanium.pinstripe1=0xDFF8EF
pinstripe1 0xDFF8EF
colorScheme.mytitanium.pinstripe2=0xB2EED7
colorScheme.mytitanium.desktop=0x666666 pinstripe2 0xB2EED7

lightest 0xFFFFFF
BLAF
lighter 0xF7F7E7
colorScheme.myblaf.description=MyBLAF custom color scheme light 0xD2D8B0
colorScheme.myblaf.lightest=0xFFFFFF
colorScheme.myblaf.lighter=0xF7F7E7 dark 0xF7F7E7
colorScheme.myblaf.light=0xD2D8B0 darker 0x999966
colorScheme.myblaf.dark=0xF7F7E7
colorScheme.myblaf.darker=0x999966 darkest 0x000000
colorScheme.myblaf.darkest=0x000000 selection 0x0000FF
colorScheme.myblaf.selection=0x0000FF
colorScheme.myblaf.pinstripe1=0xDFEAF7 pinstripe1 0xDFEAF7
colorScheme.myblaf.pinstripe2=0xB4CFEC
pinstripe2 0xB4CFEC
colorScheme.myblaf.desktop=0xF7F7E7

lightest 0xFFFFFF
SWAN
lighter 0xEAEFF5
colorScheme.myswan.description=MySWAN custom color scheme light 0xC1D1E6
colorScheme.myswan.lightest=0xFFFFFF
colorScheme.myswan.lighter=0xEAEFF5 dark 0xEAEFF5
colorScheme.myswan.light=0xC1D1E6
colorScheme.myswan.dark=0xEAEFF5 darker 0x2D84C5
colorScheme.myswan.darker=0x2D84C5 darkest 0x3C3C3C
colorScheme.myswan.darkest=0x3C3C3C
colorScheme.myswan.selection=0x48648D selection 0x48648D
colorScheme.myswan.pinstripe1=0xD3E4F4
pinstripe1 0xD3E4F4
colorScheme.myswan.pinstripe2=0x8BA3BD
colorScheme.myswan.desktop=0xD3E4F4 pinstripe2 0x8BA3BD

lightest 0xFFFFFF
Generic
lighter 0xF0F0F0
colorScheme.mygeneric.description=MyGeneric custom color scheme light 0xF0F0F0
colorScheme.mygeneric.lightest=0xFFFFFF
colorScheme.mygeneric.lighter=0xF0F0F0 dark 0xD4D0C8
colorScheme.mygeneric.light=0xF0F0F0
colorScheme.mygeneric.dark=0xD4D0C8 darker 0x0A246A
colorScheme.mygeneric.darker=0x696969 darkest 0x000000
colorScheme.mygeneric.darkest=0x000000
colorScheme.mygeneric.selection=0x0A246A selection 0x0A246A
colorScheme.mygeneric.pinstripe1=0xDFF8EF
pinstripe1 0xDFF8EF
colorScheme.mygeneric.pinstripe2=0x3399FF
colorScheme.mygeneric.desktop=0xFFFFFF pinstripe2 0x3399FF

Didn't find what you are looking for?

You might also like