equal
deleted
inserted
replaced
33 |
33 |
34 2) Create a new Layer to your skin |
34 2) Create a new Layer to your skin |
35 ---------------------------------- |
35 ---------------------------------- |
36 |
36 |
37 Build a new interface inherit from `ICustomLayer` |
37 Build a new interface inherit from `ICustomLayer` |
|
38 |
38 .. code-block:: python |
39 .. code-block:: python |
39 |
40 |
40 class ICustomLayer(ICustomLayer): |
41 class ICustomLayer(ICustomLayer): |
41 """skin layer""" |
42 """skin layer""" |
42 |
43 |
43 Define an utility providing ISkin with the custom label and the layer interface |
44 Define an utility providing ISkin with the custom label and the layer interface |
44 |
45 |
45 .. code-block:: python |
46 .. code-block:: python |
|
47 |
46 @utility_config(name='Custom skin', provides=ISkin) |
48 @utility_config(name='Custom skin', provides=ISkin) |
47 class CustomSkin(object): |
49 class CustomSkin(object): |
48 """custom root skin""" |
50 """custom root skin""" |
49 |
51 |
50 label = _("Custom: skin") |
52 label = _("Custom: skin") |
62 |
64 |
63 def get_resources(self): |
65 def get_resources(self): |
64 mycms.need() |
66 mycms.need() |
65 |
67 |
66 .. note:: |
68 .. note:: |
|
69 |
67 In the ZMI website you can now change the default graphical theme by you custom skin |
70 In the ZMI website you can now change the default graphical theme by you custom skin |
68 |
71 |
69 .. image:: _static/select_skin.png |
72 .. image:: _static/select_skin.png |