Need help to get client's system colour

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leenadiwan
    New Member
    • Jan 2007
    • 22

    Need help to get client's system colour

    Hi All!!

    We are doing a POC currently wherein we need to get the System colours in the JSP file.
    Example: If user has set a specific theme, we want to be able to get the theme details through API's on the JSP.
    Based on these we want to apply colours to some custom display components.

    All we are getting is AWT related classes. And that too is the server system colours and not the client's.

    We need help in knowing if we can get this info by not using AWT? Is it feasible?

    Thanks in advance!
    Leena
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    Originally posted by leenadiwan
    Hi All!!

    We are doing a POC currently wherein we need to get the System colours in the JSP file.
    Example: If user has set a specific theme, we want to be able to get the theme details through API's on the JSP.
    Based on these we want to apply colours to some custom display components.

    All we are getting is AWT related classes. And that too is the server system colours and not the client's.

    We need help in knowing if we can get this info by not using AWT? Is it feasible?

    Thanks in advance!
    Leena
    If you want to use AWT then you need to specify the color in JAVA code but if you want to generate the view from server side components means JSP or Servlet or something else then you need to specify the color in, which mark up lang u use to render the page.
    You can use it using Javascript or simply specify the color code in your view.

    Kind regards,
    Dmjpro.

    Comment

    Working...