1234567891011121314151617181920212223242526272829 |
- from .. import vue
- from ..element import Element
- vue.register_component('colors', __file__, 'colors.js')
- class Colors(Element):
- def __init__(self, *,
- primary='#5A99FF',
- secondary='#26a69a',
- accent='#9c27b0',
- positive='#21ba45',
- negative='#c10015',
- info='#31ccec',
- warning='#f2c037') -> None:
- """Color Theming
- Sets the main colors (primary, secondary, accent, ...) used by `Quasar <https://quasar.dev/>`_.
- """
- super().__init__('colors')
- self._props['primary'] = primary
- self._props['secondary'] = secondary
- self._props['accent'] = accent
- self._props['positive'] = positive
- self._props['negative'] = negative
- self._props['info'] = info
- self._props['warning'] = warning
- self.update()
|