[英]Eclipse Remote Application Platform (RAP) - Deploy Custom Theme
當前正在嘗試讓我的Eclipse RAP應用程序使用自定義樣式。 該文檔讓我頭疼又頭疼,很難理解。
按照他們的文檔並嘗試擴展默認主題,我如下設置了我的plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.rap.ui.entrypoint">
<entrypoint
applicationId="org.______.rap.branding.application"
id="org.______.rap.branding.entrypoint"
brandingId="______"
path="/rap">
</entrypoint>
</extension>
<extension
id="org.______.rap.branding.application"
point="org.eclipse.core.runtime.applications">
<application
cardinality="singleton-global"
thread="main"
visible="true">
<run
class="org.______.rap.branding.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="org.______.rap.branding.Perspective"
id="org.______.rap.branding.perspective"
name="name">
</perspective>
</extension>
<extension
point="org.eclipse.rap.ui.branding">
<branding
id="______"
themeId="org.eclipse.rap.rwt.theme"
title="______ Theme">
</branding>
</extension>
<extension
point="org.eclipse.rap.ui.themes">
<themeContribution
file="theme/______.css"
themeId="org.eclipse.rap.rwt.theme" />
</extension>
</plugin>
我已經刪掉了某些部分,只是假設它們都是相同的關鍵字,僅使用小寫字母。
我的.css-File看起來很簡單,如果鈎子起作用了:
* {
background: red !Important;
}
但是它只加載默認主題,沒有任何更改,並且我無法在頁面上的任何位置檢測到注入。
似乎掛鈎本身是正確的,但是RAP無法處理背景屬性。 而是將其更改為背景色 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.