/* Ċ Ġ* ĠCopyright Ġ 2 0 2 0 - 2 0 2 1 ĠA ur ora , ĠK ir ill ĠGro uch nik ov Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ package Ġorg . push ing pixels . aur ora . the ming Ċ Ċ import Ġorg . push ing pixels . aur ora . the ming . color scheme . A ur ora Color Scheme Bundle Ċ import Ġorg . push ing pixels . aur ora . the ming . color scheme . A ur ora Skin Colors Ċ import Ġorg . push ing pixels . aur ora . the ming . color scheme . composite Ċ import Ġorg . push ing pixels . aur ora . the ming . p ainter . border . Fraction Based Border Painter Ċ import Ġorg . push ing pixels . aur ora . the ming . p ainter . decoration . Mat te Decoration Painter Ċ import Ġorg . push ing pixels . aur ora . the ming . p ainter . fill . Fraction Based Fill Painter Ċ import Ġorg . push ing pixels . aur ora . the ming . p ainter . overlay . Bottom Line Overlay Painter Ċ import Ġorg . push ing pixels . aur ora . the ming . p ainter . overlay . Bottom Shadow Overlay Painter Ċ import Ġorg . push ing pixels . aur ora . the ming . p ainter . overlay . Top Be zel Overlay Painter Ċ import Ġorg . push ing pixels . aur ora . the ming . sh aper . Classic Button Sh aper Ċ import Ġorg . push ing pixels . aur ora . the ming . utils . getColor Schemes Ċ Ċ private Ġfun Ġmar iner Skin Colors (): ĠA ur ora Skin Colors Ġ{ ĊĠĠĠ Ġval Ġresult Ġ= ĠA ur ora Skin Colors () ĊĠĠĠ Ġval Ġschemes Ġ= Ġget Color Schemes ( ĊĠĠĠĠĠĠĠ ĠA ur ora Skin :: class . java . getResource AsStream ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ"/ org / push ing pixels / aur ora / the ming / mar iner . color sche mes " ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġval Ġactive Scheme Ġ= Ġschemes [" Mar iner ĠActive "] ĊĠĠĠ Ġval Ġenabled Scheme Ġ= Ġschemes [" Mar iner ĠEnabled "] ĊĠĠĠ Ġval Ġdisabled Scheme Ġ= Ġschemes [" Mar iner ĠDisabled "] ĊĊĠĠĠ Ġval Ġdisabled Selected Scheme Ġ= Ġschemes [" Mar iner ĠDisabled ĠSelected "] ĊĊĠĠĠ Ġval Ġdefault Scheme Bundle Ġ= ĠA ur ora Color Scheme Bundle ( ĊĠĠĠĠĠĠĠ Ġactive Scheme , Ġenabled Scheme , Ġdisabled Scheme ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġdefault Scheme Bundle . register Alpha ( 0 . 8 f , ĠComponent State . Disabled Selected ) ĊĠĠĠ Ġdefault Scheme Bundle . register Alpha ( 0 . 8 f , ĠComponent State . Disabled Un selected ) ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġdisabled Selected Scheme , ĠColor Scheme Association Kind . Fill , ĊĠĠĠĠĠĠĠ ĠComponent State . Disabled Selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġdisabled Scheme , ĠColor Scheme Association Kind . Fill , ĊĠĠĠĠĠĠĠ ĠComponent State . Disabled Un selected ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġborders ĊĠĠĠ Ġval Ġactive Border Scheme Ġ= Ġschemes [" Mar iner ĠActive ĠBorder "] ĊĠĠĠ Ġval Ġenabled Border Scheme Ġ= Ġschemes [" Mar iner ĠEnabled ĠBorder "] ĊĠĠĠ Ġval Ġdisabled Selected Border Scheme Ġ= Ġschemes [" Mar iner ĠDisabled ĠSelected ĠBorder "] ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġactive Border Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Border , Ġ* Component State . active States ĊĠĠĠ Ġ) ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġdisabled Selected Border Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Border , ĠComponent State . Disabled Selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġenabled Border Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Border , ĠComponent State . Enabled ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġmarks ĊĠĠĠ Ġval Ġactive Mark Scheme Ġ= Ġschemes [" Mar iner ĠActive ĠMark "] ĊĠĠĠ Ġval Ġenabled Mark Scheme Ġ= Ġschemes [" Mar iner ĠEnabled ĠMark "] ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġactive Mark Scheme , ĠColor Scheme Association Kind . Mark , ĊĠĠĠĠĠĠĠ Ġ* Component State . active States ĊĠĠĠ Ġ) ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġenabled Mark Scheme , ĠColor Scheme Association Kind . Mark , ĊĠĠĠĠĠĠĠ ĠComponent State . Enabled ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġval Ġun editable State Ġ= ĊĠĠĠĠĠĠĠ ĠComponent State ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" un editable ", ĠarrayOf ( Component State Facet . Enable ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf ( Component State Facet . Editable ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġval Ġun editable Controls Ġ= Ġschemes [" Mar iner ĠUn editable "] ĊĠĠĠ Ġdefault Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġun editable Controls , ĠColor Scheme Association Kind . Fill , ĊĠĠĠĠĠĠĠ Ġun editable State ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġresult . register Decoration Area Scheme Bundle ( default Scheme Bundle , ĠDecor ation Area Type . None ) ĊĊĠĠĠ Ġ// Ġheader Ġcolor Ġscheme Ġbundle ĊĠĠĠ Ġval Ġheader Color Scheme Ġ= Ġschemes [" Mar iner ĠHeader "] ĊĠĠĠ Ġval Ġheader BorderColor Scheme Ġ= Ġschemes [" Mar iner ĠHeader ĠBorder "] ĊĠĠĠ Ġval Ġheader Scheme Bundle Ġ= ĠA ur ora Color Scheme Bundle ( ĊĠĠĠĠĠĠĠ Ġheader Color Scheme , Ġheader Color Scheme , Ġheader Color Scheme ĊĠĠĠ Ġ) ĊĠĠĠ Ġheader Scheme Bundle . register Alpha ( ĊĠĠĠĠĠĠĠĠ 0 . 4 f , ĊĠĠĠĠĠĠĠ ĠComponent State . Disabled Selected , ĊĠĠĠĠĠĠĠ ĠComponent State . Disabled Un selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġheader Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġheader Color Scheme , ĠColor Scheme Association Kind . Fill , ĊĠĠĠĠĠĠĠ ĠComponent State . Disabled Selected , ĠComponent State . Disabled Un selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġheader Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġactive Scheme , ĠColor Scheme Association Kind . Fill , ĊĠĠĠĠĠĠĠ ĠComponent State . R ollo ver Un selected , ĠComponent State . R ollo ver Selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġheader Scheme Bundle . register Color Scheme ( header Color Scheme , ĠColor Scheme Association Kind . Mark ) ĊĠĠĠ Ġheader Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġheader BorderColor Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Border ĊĠĠĠ Ġ) ĊĠĠĠ Ġheader Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġenabled Mark Scheme . shade ( 0 . 8 f ), ĠColor Scheme Association Kind . Mark , ĊĠĠĠĠĠĠĠ ĠComponent State . Selected , ĠComponent State . R ollo ver Selected , ĊĠĠĠĠĠĠĠ ĠComponent State . Pressed Selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġheader Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġenabled Mark Scheme . shade ( 0 . 7 f ), ĠColor Scheme Association Kind . Mark , ĊĠĠĠĠĠĠĠ ĠComponent State . R ollo ver Un selected ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġheader Scheme Bundle . register Highlight Alpha ( 1 . 0 f ) ĊĠĠĠ Ġheader Scheme Bundle . register Highlight Color Scheme ( active Scheme ) ĊĠĠĠ Ġ// Ġthe Ġnext Ġline Ġis Ġto Ġhave Ġconsistent Ġcolor ing Ġduring Ġthe Ġrol lover Ġmenu Ġanimations ĊĠĠĠ Ġheader Scheme Bundle . register Highlight Alpha ( 0 . 0 f , ĠComponent State . Enabled ) ĊĊĠĠĠ Ġresult . register Decoration Area Scheme Bundle ( ĊĠĠĠĠĠĠĠ Ġheader Scheme Bundle , Ġheader Color Scheme , ĊĠĠĠĠĠĠĠ ĠDecor ation Area Type . Title Pane , ĠDecor ation Area Type . Header ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġfooter Ġcolor Ġscheme Ġbundle ĊĠĠĠ Ġval Ġenabled Footer Scheme Ġ= Ġschemes [" Mar iner ĠFooter ĠEnabled "] ĊĠĠĠ Ġval Ġdisabled Footer Scheme Ġ= Ġschemes [" Mar iner ĠFooter ĠDisabled "] ĊĊĠĠĠ Ġval Ġfooter Scheme Bundle Ġ= ĠA ur ora Color Scheme Bundle ( ĊĠĠĠĠĠĠĠ Ġactive Scheme , ĊĠĠĠĠĠĠĠ Ġenabled Footer Scheme , Ġdisabled Footer Scheme ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġfooter Scheme Bundle . register Alpha ( 0 . 5 f , ĠComponent State . Disabled Selected ) ĊĠĠĠ Ġfooter Scheme Bundle . register Alpha ( 0 . 8 f , ĠComponent State . Disabled Un selected ) ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġactive Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Fill , ĊĠĠĠĠĠĠĠ ĠComponent State . Disabled Selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġdisabled Footer Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Fill , ĊĠĠĠĠĠĠĠ ĠComponent State . Disabled Un selected ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġborders ĊĠĠĠ Ġval Ġfooter Enabled Border Scheme Ġ= Ġschemes [" Mar iner ĠFooter ĠEnabled ĠBorder "] ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġactive Border Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Border , Ġ* Component State . active States ĊĠĠĠ Ġ) ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġactive Border Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Border , ĠComponent State . Disabled Selected ĊĠĠĠ Ġ) ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġfooter Enabled Border Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Border , ĠComponent State . Enabled ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġmarks ĊĠĠĠ Ġval Ġfooter Enabled Mark Scheme Ġ= Ġschemes [" Mar iner ĠFooter ĠEnabled ĠMark "] ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġactive Mark Scheme , ĠColor Scheme Association Kind . Mark , ĊĠĠĠĠĠĠĠ Ġ* Component State . active States ĊĠĠĠ Ġ) ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġfooter Enabled Mark Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Mark , ĠComponent State . Enabled ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġsepar ators ĊĠĠĠ Ġval Ġfooter Separator Scheme Ġ= Ġschemes [" Mar iner ĠFooter ĠSe parator "] ĊĠĠĠ Ġfooter Scheme Bundle . register Color Scheme ( ĊĠĠĠĠĠĠĠ Ġfooter Separator Scheme , ĊĠĠĠĠĠĠĠ ĠColor Scheme Association Kind . Separator ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġval Ġfooter BackgroundColor Scheme Ġ= Ġschemes [" Mar iner ĠFooter ĠBackground "] ĊĠĠĠ Ġresult . register Decoration Area Scheme Bundle ( ĊĠĠĠĠĠĠĠ Ġfooter Scheme Bundle , Ġfooter BackgroundColor Scheme , ĊĠĠĠĠĠĠĠ ĠDecor ation Area Type . Footer , ĠDecor ation Area Type . Toolbar , ĠDecor ation Area Type . Control Pane ĊĠĠĠ Ġ) ĊĠĠĠ Ġreturn Ġresult Ċ } Ċ Ċ fun Ġmar iner Skin (): ĠA ur ora Skin Definition Ġ{ ĊĠĠĠ Ġval Ġpain ters Ġ= ĠA ur ora P ain ters ( ĊĠĠĠĠĠĠĠ Ġfill Painter Ġ= ĠFraction Based Fill Painter ( ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 . 0 f Ġto Ġ{ Ġit . extra Light Color Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 . 5 f Ġto Ġ{ Ġit . light Color Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠ 1 . 0 f Ġto Ġ{ Ġit . mid Color Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ ĠdisplayName Ġ= Ġ" Mar iner " ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ Ġborder Painter Ġ= ĠFraction Based Border Painter ( ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 . 0 f Ġto Ġ{ Ġit . ul tra Dark Color Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 . 5 f Ġto Ġ{ Ġit . dark Color Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠ 1 . 0 f Ġto Ġ{ Ġit . mid Color Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ ĠdisplayName Ġ= Ġ" Mar iner " ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ Ġdecoration Painter Ġ= ĠMat te Decoration Painter () ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġadd Ġan Ġoverlay Ġpainter Ġto Ġpaint Ġa Ġbe zel Ġline Ġalong Ġthe Ġtop ĊĠĠĠ Ġ// Ġedge Ġof Ġfooter ĊĠĠĠ Ġpain ters . add Overlay Painter ( ĊĠĠĠĠĠĠĠ ĠTop Be zel Overlay Painter ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcolor Scheme Query Top Ġ= Ġ{ Ġit . ul tra Dark Color Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcolor Scheme Query Bottom Ġ= Ġ{ Ġit . light Color Ġ} ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ ĠDecor ation Area Type . Footer ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġadd Ġtwo Ġoverlay Ġpain ters Ġto Ġcreate Ġa Ġbe zel Ġline Ġbetween ĊĠĠĠ Ġ// Ġmenu Ġbar Ġand Ġtool bars ĊĠĠĠ Ġpain ters . add Overlay Painter ( ĊĠĠĠĠĠĠĠ ĠBottom Line Overlay Painter ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcomposite ({ Ġit . ul tra Dark Color Ġ}, ĠColor Transforms . brightness ( 0 . 5 f )) ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ ĠDecor ation Area Type . Header ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġadd Ġoverlay Ġpainter Ġto Ġpaint Ġdrop Ġshadow s Ġalong Ġthe Ġbottom ĊĠĠĠ Ġ// Ġedges Ġof Ġtool bars ĊĠĠĠ Ġpain ters . add Overlay Painter ( ĊĠĠĠĠĠĠĠ ĠBottom Shadow Overlay Painter . getInstance ( 1 0 0 ), ĊĠĠĠĠĠĠĠ ĠDecor ation Area Type . Toolbar ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ// Ġadd Ġoverlay Ġpainter Ġto Ġpaint Ġa Ġdark Ġline Ġalong Ġthe Ġbottom ĊĠĠĠ Ġ// Ġedge Ġof Ġtool bars ĊĠĠĠ Ġpain ters . add Overlay Painter ( ĊĠĠĠĠĠĠĠ ĠBottom Line Overlay Painter ( color Scheme Query Ġ= Ġ{ Ġit . ul tra Dark Color Ġ}), ĊĠĠĠĠĠĠĠ ĠDecor ation Area Type . Toolbar ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġreturn ĠA ur ora Skin Definition ( ĊĠĠĠĠĠĠĠ ĠdisplayName Ġ= Ġ" Mar iner ", ĊĠĠĠĠĠĠĠ Ġcolors Ġ= Ġmar iner Skin Colors (), ĊĠĠĠĠĠĠĠ Ġpain ters Ġ= Ġpain ters , ĊĠĠĠĠĠĠĠ Ġbutton Sh aper Ġ= ĠClass ic Button Sh aper () ĊĠĠĠ Ġ) Ċ } Ċ