123456789101112131415161718192021222324252627282930313233 |
- from .custom_view import CustomView
- from .element import Element
- CustomView.use(__file__)
- class ColorsView(CustomView):
- def __init__(self, primary, secondary, accent, positive, negative, info, warning):
- super().__init__('colors',
- primary=primary,
- secondary=secondary,
- accent=accent,
- positive=positive,
- negative=negative,
- info=info,
- warning=warning)
- self.initialize(temp=False)
- class Colors(Element):
- def __init__(self, *,
- primary='#1976d2',
- secondary='#26a69a',
- accent='#9c27b0',
- positive='#21ba45',
- negative='#c10015',
- info='#31ccec',
- warning='#f2c037'):
- """Color Theming
- Sets the main colors (primary, secondary, accent, ...) used by [Quasar](https://quasar.dev/).
- """
- super().__init__(ColorsView(primary, secondary, accent, positive, negative, info, warning))
|