package Ġcom . e udy contr eras . bow ling calculator . components . controllers Ċ Ċ import Ġcom . e udy contr eras . bow ling calculator . activities . MainActivity Ċ import Ġcom . e udy contr eras . bow ling calculator . calculator . controllers . Score Controller Ċ import Ġcom . e udy contr eras . bow ling calculator . components . views . Theme Select View Component Ċ import Ġcom . e udy contr eras . bow ling calculator . libraries . morph er . Morph er Ċ import Ġcom . e udy contr eras . bow ling calculator . utilities . extensions . app Ċ import Ġcom . e udy contr eras . bow ling calculator . utilities . properties . Palette Ċ Ċ /** Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 1 9 ĠB ow ling ĠScore ĠCalculator ĠProject Ċ Ġ* ĠLicensed Ġunder Ġthe ĠMIT Ġlicense . Ċ Ġ* Ċ Ġ* Ġ@ Project ĠB ow ling Calculator Ċ Ġ* Ġ@ author ĠE udy ĠContr eras . Ċ Ġ* Ġ@ since ĠJanuary Ġ 2 0 1 9 Ċ Ġ*/ Ċ Ċ class ĠPalette ViewController ( ĊĠĠĠ Ġval Ġcontext : ĠMainActivity , ĊĠĠĠ Ġscore Controller : ĠScore Controller Ċ ) Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġview Component : ĠTheme Select View Component Ġ= ĠTheme Select View Component ( context , Ġthis ) ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġscore Controller . palette Controller Ġ= Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġshow ( duration : ĠLong ) Ġ{ ĊĠĠĠĠĠĠ Ġview Component . show ( duration ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdismiss ( duration : ĠLong ) Ġ{ ĊĠĠĠĠĠĠĠ Ġview Component . dismiss ( duration ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġapply Theme With ( color : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpalette Ġ= ĠPalette . of ( color ) ĊĠĠĠĠĠĠĠ Ġcontext . on New Palette ( palette ) ĊĠĠĠĠĠĠĠ Ġcontext . morph Transition er . starting State . color Ġ= Ġcolor ĊĠĠĠĠĠĠĠ Ġcontext . app . persistence Manager . update Theme Color ( color ) ĊĠĠĠĠĠĠĠ Ġdismiss ( Morph er . DEFAULT _ DURATION ) ĊĠĠĠ Ġ} Ċ }