SmartClient Version: v12.1p_2020-07-31/PowerEdition Deployment (built 2020-07-31)
Many years ago we created our own skin based on the Graphite skin, and made extensions and changes to the skin over time. It started with a simple copy of the sc/skins directory structure for Graphite at a 6.0x release of SmartGWT. Over time our skin got out of sync with the base Graphite skin and it became an involved manual process of integrating later releases of the SmartGWT skin.
We have arrived at a stage where we want to update or replace the skin, and take advantage of of the evolution of skin management in the framework. TheTreeFog skin looks like a good starting point, but I have had some questions about getting it started.
The javadocs on 'skinning' seems to offer 2 choices or methods for self-skinning. Is that correct?
1. Custom Sass Skinning https://www.smartclient.com/smartgwt...SassSkins.html
2. Using the skin editor - and our choice would be use it locally as we have the license that should enable it. https://www.smartclient.com/smartgwt...kinEditor.html
For various reasons accessing the Skin Editor through Reify tool does not meet our requirements or needs.
However I have attempted to access the online version of Skin Editor to review it as a starting point, but I get an authentication exception:
javax.servlet.ServletException: Auth failure - see server logs for details
at com.isomorphic.auth.AuthenticationFilter._doFilter(AuthenticationFilter.java:828)
at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:91)
Do you have to enable something in my profile for me to see this?
We want to take advantage of CSS3 and Spriting in the new skin. Does the TreeFrog skin support those features, as the doc only mentions, Tahoe, Obsidian and Stratus as relying on CSS3 features?
How does one invoke the LOCAL version of the skin editor? Is that accessible through the console, or is there another way to access/invoke it? It's not clear from the documentation.
I modified the *.gwt.xml file to instantiate the TreeFrog skin: <inherits name="com.smartclient.theme.treefrog.TreeFrogResources"/>
I executed a GWT compile, and then a full compile of our application, and started it up.
I expected that many of our images in our local skin would be missing, not a big issue, as I have not merged them over to the TreeFog local skin. The app, with missing styles, gave some idea of what it might look like under a derived TreeFrog skin.
The documentation for CustomSassSkins mentions a template/sass directory. But there is no such directory, following the GWT compile in the skins directory structure? There is a template/sass directory for the Enterprise skin. So how does one support templated skins for TreeFrog skin? Is one expected to use the included Enterprise.../template/sass as the control directory for the new skin?
The next issue is that while running the app, DSRequests to the SQL DB are being made through a Datasource: war/beer/tools/skinTools/data/userSkin.ds.xml
This is unexpected. Seems like there is missing documentation on what is expected here by the framework? The skin, or any such skin, expects a SQL table to define some of the skin parameters? Are we expected to edit the userSkin.xml to redefine the fields of the table? What is going on here? The userSkin.name is searching for our the old name of our modified skin, which I have changed to 'xyz' in this thread.
There are a whole new set of Datasources which we have not seen before being included now.
Looking for some general advice.
Many years ago we created our own skin based on the Graphite skin, and made extensions and changes to the skin over time. It started with a simple copy of the sc/skins directory structure for Graphite at a 6.0x release of SmartGWT. Over time our skin got out of sync with the base Graphite skin and it became an involved manual process of integrating later releases of the SmartGWT skin.
We have arrived at a stage where we want to update or replace the skin, and take advantage of of the evolution of skin management in the framework. TheTreeFog skin looks like a good starting point, but I have had some questions about getting it started.
The javadocs on 'skinning' seems to offer 2 choices or methods for self-skinning. Is that correct?
1. Custom Sass Skinning https://www.smartclient.com/smartgwt...SassSkins.html
2. Using the skin editor - and our choice would be use it locally as we have the license that should enable it. https://www.smartclient.com/smartgwt...kinEditor.html
For various reasons accessing the Skin Editor through Reify tool does not meet our requirements or needs.
However I have attempted to access the online version of Skin Editor to review it as a starting point, but I get an authentication exception:
javax.servlet.ServletException: Auth failure - see server logs for details
at com.isomorphic.auth.AuthenticationFilter._doFilter(AuthenticationFilter.java:828)
at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:91)
Do you have to enable something in my profile for me to see this?
We want to take advantage of CSS3 and Spriting in the new skin. Does the TreeFrog skin support those features, as the doc only mentions, Tahoe, Obsidian and Stratus as relying on CSS3 features?
How does one invoke the LOCAL version of the skin editor? Is that accessible through the console, or is there another way to access/invoke it? It's not clear from the documentation.
I modified the *.gwt.xml file to instantiate the TreeFrog skin: <inherits name="com.smartclient.theme.treefrog.TreeFrogResources"/>
I executed a GWT compile, and then a full compile of our application, and started it up.
I expected that many of our images in our local skin would be missing, not a big issue, as I have not merged them over to the TreeFog local skin. The app, with missing styles, gave some idea of what it might look like under a derived TreeFrog skin.
The documentation for CustomSassSkins mentions a template/sass directory. But there is no such directory, following the GWT compile in the skins directory structure? There is a template/sass directory for the Enterprise skin. So how does one support templated skins for TreeFrog skin? Is one expected to use the included Enterprise.../template/sass as the control directory for the new skin?
The next issue is that while running the app, DSRequests to the SQL DB are being made through a Datasource: war/beer/tools/skinTools/data/userSkin.ds.xml
Code:
SELECT userSkin.pk, userSkin.name, userSkin.baseSkin, userSkin.userSettings, userSkin.skinStylesCSS, userSkin.thumbnail, userSkin.created_by, userSkin.created_at, userSkin.modified_by, userSkin.modified_at FROM userSkin WHERE ( LOWER(userSkin.name)='xyz' )
This is unexpected. Seems like there is missing documentation on what is expected here by the framework? The skin, or any such skin, expects a SQL table to define some of the skin parameters? Are we expected to edit the userSkin.xml to redefine the fields of the table? What is going on here? The userSkin.name is searching for our the old name of our modified skin, which I have changed to 'xyz' in this thread.
There are a whole new set of Datasources which we have not seen before being included now.
Looking for some general advice.
Comment