# Copyright 2015 Canonical, Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

""" Palette Loader """


def apply_default_colors(cls):
    color_map = {'orange': '#d51',
                 'light_orange': '#d31',
                 'white': 'white',
                 'black': 'black',
                 'light_aubergine': '#719',
                 'mid_aubergine': '#525',
                 'dark_aubergine': '#201',
                 'warm_grey': '#aaa',
                 'cool_grey': '#333',
                 'text_grey': '#333'}
    for k, v in color_map.items():
        setattr(cls, k, v)
    return cls


@apply_default_colors
class Palette:
    pass

STYLES = [('frame_header', Palette.white, Palette.black,
           'default', Palette.white, Palette.orange),
          ('frame_footer', Palette.white, Palette.black,
           'default', Palette.white, Palette.orange),
          ('body', Palette.white, 'default', 'default',
           Palette.white, Palette.black),
          ('button_primary', Palette.white, 'default',
           'default', Palette.white, Palette.cool_grey),
          ('button_primary focus', Palette.white,
           'default', 'default', Palette.white,
           Palette.light_orange),
          ('button_secondary', Palette.white, 'default',
           'default', Palette.white, Palette.cool_grey),
          ('button_secondary focus', Palette.white,
           'default', 'default', Palette.white, Palette.light_orange)]

STYLES_MONO = [('frame_header', Palette.white, Palette.black,
                'default', Palette.white, Palette.black),
               ('frame_footer', Palette.white, Palette.black,
                'default', Palette.white, Palette.black),
               ('body', 'default', 'default'),
               ('button_primary', 'default', 'default'),
               ('button_primary focus', 'default',  'default'),
               ('button_secondary', 'default', 'default'),
               ('button_secondary focus', 'default', 'default')]

@@ -2451,17 +2451,16 @@
 efault',
- 
  'defaul

fix lint error