0

在我的 rcp 应用程序中,我想应用主题。我可以更改所有内容,接受滚动复合部分。我想知道是否可以将主题应用于滚动复合。

CSS:

Label, Button[style~='SWT.CHECK'] {
    font: vrinda 10px;
    color: black;
}

Composite Label {
    color: black;
}

#SeparatorLabel {
    color: #1d659f;
}

Text {
    font: vrinda 10px;
}

Composite Text {
background-color: gradient linear orange black 50% 20%
    color: black;
}

Group Text {
    background-color: gradient linear white black 50% 20%
    color: black;
}
Group Label {
    color: black;
}



TabFolder {
 /* The tab rendering background for the min/max toolbar pulls 
     * background from the tabfolder's background (or it's parent?)
     * and so the gradient doesn't come through. So just set the
     * tabfolder's background to a color */
    /*background-color: white #dddddd #eeeeee 35% 25% 25%;*/
    background-color: #eeeeee;
    color: white;
    swt-simple: true;   
}


 TabItem {
    color: black;
    font: vrinda 8px;
}

TabItem:selected {
    background-color: #cccccc #e8e8e8 60%;
    font-weight: normal;
    font: vrinda 8px;
}

TabItem.active:selected {
    background-color: #ffffff #cccccc #dddddd 50% 50%;
    color: #1d659f;
    font: bold;
}






Scrolledcomposite Text{
    background-color: white;
    color: black;
}
Scrolledcomposite Label {
    color: black;
}



SashForm {
    background-color: #dddddd;
}

Table {
    background-color: #e8e8e8 #cccccc 60%;
    color: black;
    font: vrinda 8px;
}

.MTrimBar {
    background-color: white #dddddd #eeeeee 35% 25% 25%;
    color: white;
    font: vrinda 8px;
}

CTabFolder {
    /* The tab rendering background for the min/max toolbar pulls 
     * background from the tabfolder's background (or it's parent?)
     * and so the gradient doesn't come through. So just set the
     * tabfolder's background to a color */
    /*background-color: white #dddddd #eeeeee 35% 25% 25%;*/
    background-color: #eeeeee;
    color: white;
    swt-simple: true;   
}


CTabItem {
    color: black;
    font: Verdana 8px;
}

CTabItem:selected {
    background-color: #cccccc #e8e8e8 60%;
    font-weight: normal;
    font: Verdana 8px;
}

CTabItem.active:selected {
    background-color: #ffffff #cccccc #dddddd 50% 50%;
    color: #1d659f;
    font: bold;
}
4

0 回答 0