Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Extend Default Theme
Extend Default Theme [message #1750061] Thu, 15 December 2016 14:56 Go to next message
Lukas Wieditz is currently offline Lukas WieditzFriend
Messages: 1
Registered: December 2016
Junior Member
Hello all,

I'm fairly new to RAP and am having a hard time trying to get used to it. I've created a basic application setup so far and am now trying to hook into the default style to override parts of it with my own.

My plugin.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.rap.ui.entrypoint">
      <entrypoint
            applicationId="org.new.rap.branding.application"
            id="org.new.rap.branding.entrypoint"
            brandingId="new"
            path="/rap">
      </entrypoint>
   </extension>
   <extension
         id="org.new.rap.branding.application"
         point="org.eclipse.core.runtime.applications">
      <application
            cardinality="singleton-global"
            thread="main"
            visible="true">
         <run
               class="org.new.rap.branding.Application">
         </run>
      </application>
   </extension>
   <extension
         point="org.eclipse.ui.perspectives">
      <perspective
            class="org.new.rap.branding.Perspective"
            id="org.new.rap.branding.perspective"
            name="name">
      </perspective>
   </extension>
   
   <extension
         point="org.eclipse.rap.ui.branding">
      <branding
            id="new"
            themeId="org.eclipse.rap.rwt.theme"
            title="new Theme">
      </branding>
   </extension>
   <extension
    point="org.eclipse.rap.ui.themes">
	  <themeContribution
         file="theme/new.css"
         themeId="org.eclipse.rap.rwt.theme" />
	</extension>
</plugin>


And the new.css is simply like follows, to see if the hook works:
* {
	background: red !Important;
}


But nothing changes. May someone guide me in the right direction?
Re: Extend Default Theme [message #1750065 is a reply to message #1750061] Thu, 15 December 2016 15:55 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
the code looks good to me. Please note that if a "background-image" property is defined in the default theme you should reset it to "none" in order to apply a "background" color.
HTH,
Ivan
Previous Topic:Eclipse RAP - Architecture
Next Topic:[ANN] RAP 3.2 M4 published
Goto Forum:
  


Current Time: Thu Apr 18 20:11:15 GMT 2024

Powered by FUDForum. Page generated in 0.01885 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top