17
Customizing the Color Scheme of PegaMobile The appearance of PegaMobile can be fully customized using CSS. For example, shown below is the default out@of@the@box appearance of PegaMobile: Using CSS it is easy to override this color scheme with one of your own. Below is an example:

Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

!

Customizing+the+Color+Scheme+of+PegaMobile+

The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!default!out@of@the@box!appearance!of!PegaMobile:!

!

Using!CSS!it!is!easy!to!override!this!color!scheme!with!one!of!your!own.!!Below!is!an!example:!

!

Page 2: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

!

Where+to+Put+the+Overriding+CSS+

To!customize!the!appearance!of!PegaMobile!using!CSS,!all!you!need!to!do!is!place!your!CSS!into!the!file:!

pyMobileThemeOverrides.css

The!CSS!in!this!file!will!override!the!default!out@of@the@box!CSS!which!ships!with!PegaMobile.!!After!

you’ve!made!your!changes,!save!the!file!and!check!it!in.!!Then!refresh!your!browser!(or!mobile!app).!!Your!new!appearance!will!show!up.!

PegaMobile!ships!with!an!empty pyMobileThemeOverrides.css file!by!default.!

!

CSS+Examples+

This!document!will!provide!examples!of!CSS!to!change!the!colors!of!the!following!UI!elements!of!PegaMobile:!

• toolbars!o top!

o bottom!• grid!header!&!add@row!button!• back!button!

• pop@up!dialog!buttons!• refresh!icon!&!time!of!last!update!• navigation!icons!

• navigation!list!selected!item!!o background!o text!

• flow!action!selector!o background!o text!

• flow!action!selector!list!&!pop@up!lists!o background!o text!

• navigation!list!title!text!• content!area!title!text!• bottom!toolbar!buttons!

!

In!the!CSS!examples!that!follow,!most!of!the!text!must!be!copied!verbatim.!!Portions!that!you!can!

change!(e.g.,!to!replace!with!your!own!preferred!color)!will!be!highlighted!like!so:!!

Page 3: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

background-color: yellow; color: black; background-image: -webkit-linear-gradient(top, #ffb76b 0%,#ffa73d 50%,#ff7c00 51%,#ff7f04 100%);

!

In!the!above!examples,!the!colors!“yellow”!and!“black”!may!be!replaced!by!any!other!valid!CSS!color!definition.!!Similarly,!the!specified!gradient!may!be!replaced!by!any!other!valid!CSS!gradient!definition.!

Many!of!the!examples!will!make!use!of!CSS!gradients.!!Explaining!CSS!gradients!is!beyond!the!scope!of!

this!document.!!For!a!tutorial!on!CSS!gradients,!refer!to!the!following!URL:!

http://www.netmagazine.com/tutorials/master-css-gradients

A!great!on@line!tool!to!generate!gradients!can!be!found!here:!

http://www.colorzilla.com/gradient-editor/

Below!are!some!CSS!gradient!definitions,!some!of!which!are!used!in!this!document:!

Dark Blue ........ –webkit-linear-gradient(top, #3b679e 0%,#2b88d9 50%,#207cca 51%, #7db9e8 100%);

Darker Blue ...... –webkit-linear-gradient(top, #1b477e 0%,#0b68b9 50%,#005caa 51%, #5d99c8 100%);

Light Blue ....... –webkit-linear-gradient(top, #ebf1f6 0%,#abd3ee 50%,#89c3eb 51%, #d5ebfb 100%);

Very Light Blue .. –webkit-linear-gradient(top, #e1ffff 0%,#e1ffff 7%,#e1ffff 12%, #fdffff 12%,#e6f8fd 30%,#c8eefb 54%,#bee4f8 75%,#b1d8f5 100%);

Yellow ........... –webkit-linear-gradient(top, #fefcea 0%,#f1da36 100%); Dark Green ....... –webkit-linear-gradient(top, #b4ddb4 0%,#83c783 17%,#52b152 33%,

#008a00 67%,#005700 83%,#002400 100%); Green, 3D ........ –webkit-linear-gradient(top, #b4e391 0%,#61c419 50%,#b4e391 100%); Green Gloss ...... –webkit-linear-gradient(top, #bfd255 0%,#8eb92a 50%,#72aa00 51%,

#9ecb2d 100%); Gray 3D .......... –webkit-linear-gradient(top, rgba(206,220,231,1) 0%,

rgba(89,106,114,1) 100%); Dark Gray 3D ..... –webkit-linear-gradient(top, rgba(181,189,200,1) 0%,

rgba(130,140,149,1) 36%,rgba(40,52,59,1) 100%); Gray Blue 3D ..... –webkit-linear-gradient(top, #cfe7fa 0%,#6393c1 100%); Olive 3D ......... –webkit-linear-gradient(top, #a4b357 0%,#75890c 100%); Orange 3D ........ –webkit-linear-gradient(top, #ffaf4b 0%,#ff920a 100%); Orange Gloss ..... –webkit-linear-gradient(top, #ffb76b 0%,#ffa73d 50%,#ff7c00 51%,

#ff7f04 100%); Purple 3D ........ –webkit-linear-gradient(top, #e570e7 0%,#c85ec7 47%,#a849a3 100%); Dark Purple 3D ... –webkit-linear-gradient(top, #cb60b3 0%,#ad1283 50%,#de47ac 100%); Dark Purple gloss –webkit-linear-gradient(top, #cb60b3 0%,#c146a1 50%,#a80077 51%,

#db36a4 100%); Red 3D ........... –webkit-linear-gradient(top, #ff3019 0%,#cf0404 100%); Red Gloss ........ –webkit-linear-gradient(top, #f85032 0%,#f16f5c 50%,#f6290c 51%,

#f02f17 71%,#e73827 100%); White Gloss ...... –webkit-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,

#f6f6f6 100%);

Page 4: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Toolbars

To!override!the!default!appearance!of!the!top!toolbars,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!/* change color of top toolbars */ .main-toolbar, .x-toolbar-dark, .x-toolbar-title, .x-toolbar-light { background-image: -webkit-linear-gradient(top, #3b679e 0%,#2b88d9 50%,#207cca 51%,#7db9e8 100%); } /* Keep carousel tool bar color same as overall background. */ .pega-carousel-panel .pega-carousel-toolbar, .pega-carousel-toolbar .x-toolbar-title { background-color: transparent; background-image: none; }

!

To!override!the!default!appearance!of!the!bottom!toolbars,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!/* change color of bottom toolbars */ .x-docked-bottom { background-image: -webkit-linear-gradient(top, #ebf1f6 0%,#abd3ee 50%,#89c3eb 51%,#d5ebfb 100%); }

Page 5: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!
Page 6: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Grid+Header+&+AddCRow+Button!

To!override!the!default!appearance!of!the!grid!header!and!the!add@row!button,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* change color of repeating grid header row */ .x-grid-header { background-image: -webkit-linear-gradient(top, #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%); } /* change color of repeating grid add-row button */ .addRow-button { background-image: -webkit-linear-gradient(top, #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%); }

!

!

Page 7: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

!

Back+Button+

To!override!the!default!appearance!of!the!back!button,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* change background color of "back" button */ .x-panel .x-toolbar-inner .x-layout-hbox .x-button-back, .x-panel .x-toolbar .x-layout-hbox .x-button-back, .x-toolbar-light .x-button.x-button-back:before, .x-toolbar .x-button.x-button-back:before { background-image: -webkit-linear-gradient(top, #1b477e 0%,#0b68b9 50%,#005caa 51%,#5d99c8 100%); } /* Back button icon color */ .x-toolbar-light .x-button .x-button-icon.x-icon-mask { background-color: yellow; background-image: none; } /* Move black left-pointing triangle (in "back" button) off-screen */ .x-button-back::after, .x-toolbar .x-button-back::after { left: -1.7em; }

!

Page 8: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!
Page 9: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

PopCUp+Dialog+Buttons+

To!override!the!default!appearance!of!the!buttons!in!pop@up!dialogs,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* change color of buttons in pop-up dialogs */ .x-container.x-toolbar-dark.x-toolbar.x-docked-bottom .x-inner.x-toolbar-inner.x-layout-hbox .x-button-normal.x-button, .x-toolbar .x-button.x-button-action { background-image: -webkit-linear-gradient(top, #ffb76b 0%,#ffa73d 50%,#ff7c00 51%,#ff7f04 100%); }

!

+

Page 10: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Refresh+Icon+&+Time+of+Last+Update+

To!override!the!default!appearance!of!the!refresh!icon!and!time!of!last!update,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Refresh icon */ .x-button.x-iconalign-center.x-button-plain .x-button-icon.refresh.x-icon-mask { background-color: black; background-image: none; } /* Time of last update */ #refreshDate { color: black; }

!

!

!

Page 11: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Top+Nav+Icons+

To!override!the!default!appearance!of!the!top!navigation!icons,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Top nav icons */ .x-toolbar-dark .x-button .x-button-icon.x-icon-mask { background-color: yellow; background-image: none; }

!

!

!

Page 12: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Nav+Menu+Selected+Item++

To!override!the!default!appearance!of!selected!items!in!the!left!navigation!menu,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Nav Lists -- selected item background */ .nav-list .x-list .x-list-item.x-item-selected, .nav-list .x-list .x-list-item.x-item-selected .x-list-item-label { background-image: -webkit-linear-gradient(top, #f85032 0%,#f16f5c 50%,#f6290c 51%,#f02f17 71%,#e73827 100%); } /* Nav Lists -- selected item text color */ .nav-list .x-item-selected .x-list-item-leaf .list-details .list-display { color:#fff; }

!

!

!

Page 13: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Flow+Selector+

To!override!the!default!appearance!of!the!flow!action!selector,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Flow Selector -- background color */ div#flowActionSelect, div#flowActionSelect.x-button-back:after, div#flowActionSelect.x-button-forward:after, .x-toolbar div#flowActionSelect, .x-toolbar div#flowActionSelect.x-button-back:after, .x-toolbar div#flowActionSelect.x-button-forward:after { background-image: -webkit-linear-gradient(top, #e570e7 0%,#c85ec7 47%,#a849a3 100%); } /* Flow Selector -- font color, shadow */ .x-toolbar .x-field-select .x-input-el, .x-layout-box .x-field-select .x-form-field-container .x-input-text { -webkit-text-fill-color:#fff; text-shadow: rgba(0, 0, 0, 0.996094) 0px 0px 5px; }

!

!

!

Page 14: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Flow+Selector+List+&+PopCUp+Lists+

To!override!the!default!appearance!of!the!flow!selector!list!and!other!pop@up!lists,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Flow Selector Lists and pop-up lists -- selected item background */ .x-select-overlay .x-list .x-list-item.x-item-selected,.x-select-overlay .x-list .x-list-item.x-item-selected .x-list-item-label { background-image: -webkit-linear-gradient(top, #e570e7 0%,#c85ec7 47%,#a849a3 100%); -webkit-text-fill-color:#fff; }

!

!

!

Page 15: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Navigation+Menu+Title+Text+

To!override!the!default!appearance!of!the!navigation!menu!title,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Left nav title text color */ .x-toolbar-light .x-title { color: yellow; }

!

!

Page 16: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Content+Area+Title+Text+

To!override!the!default!appearance!of!the!content!area!title,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Content area title text color */ .x-toolbar-dark .x-title { color: yellow; }

!

!

!

Page 17: Customizing the Color Scheme of PegaMobile · Customizing+the+Color+Scheme+of+PegaMobile+ The!appearance!of!PegaMobile!can!be!fully!customized!using!CSS.!!For!example,!shown!below!is!the!

+

Bottom+Toolbar+Buttons+

To!override!the!default!appearance!of!the!bottom!toolbar!buttons,!drop!the!following!CSS!fragment!into!the pyMobileThemeOverrides.css file.!

/* Bottom toolbar buttons */ .x-toolbar-flow-action .x-button{ color: yellow; background-image: -webkit-linear-gradient(top, #1b477e 0%,#0b68b9 50%,#005caa 51%,#5d99c8 100%); border-color: black; }

!

!

!