Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Add theme_openspp_muk backend theme that extends MuK theme
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalesedwin1123 committed Feb 2, 2024
1 parent cd6cdce commit 98217dd
Show file tree
Hide file tree
Showing 11 changed files with 537 additions and 0 deletions.
Empty file added theme_openspp_muk/README.rst
Empty file.
1 change: 1 addition & 0 deletions theme_openspp_muk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions theme_openspp_muk/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "OpenSPP Theme (Muk Theme)",
"author": "OpenSPP.org",
"website": "https://github.com/openspp/openspp-modules",
"category": "Theme",
"version": "17.0.1.0.0",
"depends": ["web", "muk_web_theme"],
"license": "AGPL-3",
"development_status": "Beta",
"maintainers": ["jeremi", "gonzalesedwin1123"],
"data": [],
"assets": {
"web._assets_primary_variables": [
"theme_openspp_muk/static/src/scss/colors.scss",
"theme_openspp_muk/static/src/scss/colors_light.scss",
],
"web.assets_web_dark": ["theme_openspp_muk/static/src/scss/colors_dark.scss"],
"web.assets_backend": ["theme_openspp_muk/static/src/scss/navbar.scss"],
},
"application": True,
"installable": True,
"auto_install": False,
}
1 change: 1 addition & 0 deletions theme_openspp_muk/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_config_settings
18 changes: 18 additions & 0 deletions theme_openspp_muk/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from odoo import models


class ResConfigSettings(models.TransientModel):

_inherit = "res.config.settings"

@property
def COLOR_ASSET_THEME_URL(self):
return "/theme_openspp_muk/static/src/scss/colors.scss"

@property
def COLOR_ASSET_LIGHT_URL(self):
return "/theme_openspp_muk/static/src/scss/colors_light.scss"

@property
def COLOR_ASSET_DARK_URL(self):
return "/theme_openspp_muk/static/src/scss/colors_dark.scss"
Binary file added theme_openspp_muk/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 98217dd

Please sign in to comment.