Provide us with the following info:
- ABP Framework version: v7.3.1
- UI Type: MVC
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
- Exception message and full stack trace:
- Steps to reproduce the issue:
The documentation for customising MVC states the following:
This indicates that the LogoReverseUrl will be used on when the dark theme is selected. However, the code in SideMenuLayout.cshtml does exactly the opposite:
Is this a problem in the documentation or the code?
6 Answer(s)
-
0
-
0
-
0
Hi phil@travelengine.com.au,
We are agree with you that IBrandingProvider overrides the CSS. But as mentioned in the documentation
logoUrl
is used to show app logo only andlogoReverseUrl
is used as per the theme selected that means- If for
Dark
theme url isLogoUrl
then forLight
theme it will beLogoReverseUrl
- If for
Light
theme url isLogoUrl
then forDark
theme it will beLogoReversUrl
This is only given for example.
I hope your doubt will be clear. Thanks,
- If for
-
0
Hello phil@travelengine.com.au,
Please let us know is there anything else that we can help you with?
Can we close this ticket if your query is resolved? Please confirm.
Thank You, Anjali
-
0
I am sorry Anjali but I am no wiser on how this is supposed to work.
The documentation says that
LogoReverseUrl
onIBrandingProvider
should specify the application logo on a reverse color theme. This is ambiguous because 'reverse' means it is the relative to something else, but what that something else is, is not clear.In an apparent attempt to clarify the documentation then says '(dark, for example)'. It is worded in a very confusing way and IMHO the documentation should be made much clearer - particularly for something that virtually very ABP user will want to customise right out of the box.
It also seems to be absolutely the opposite of what
SideMenuLayout.cshtml
actually does -- that component will cause the variable--lpx-logo
to be set to IBrandingProvider.LogoReverseUrl for.lpx-theme-light
, or to IBrandingProvider.LogoUrl for.lpx-theme-dark
or.lpx-theme-dim
.So I still have no answer to my original question - the documentation and the code are total opposites of each other.
-
0
Hi phil@travelengine.com.au
Yes, there was a confusing implementation for BrandingProvider. We've just made some changes and improved it. It'll work same as documentation says in the next release of LeptonX.