Custom variant styling on CTabITem does not set the background completely. [message #512109] |
Wed, 03 February 2010 22:52 |
Nikolai Raitsev Messages: 102 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------080706090607070703080602
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Hi again,
I'm playing with custom variant styling on CTabItems (based on the fancy
design) and I have a problem. Here a Screenshot and piece of code:
<CTabFolderCustomVariant.png>
here you can see, that the tabItemPrimary Border is not green (but i
think, it should be)
here is Java-Code:
-----------------------------
CTabFolder tabFolderPrimary = new CTabFolder(parent, SWT.NONE);
tabFolderPrimary.setLayout(GridLayoutFactory.fillDefaults(). create());
CTabItem tabItem = new CTabItem(tabFolderPrimary, SWT.NONE);
tabItem.setText("tabItemPrimary");
tabItem.setData(WidgetUtil.CUSTOM_VARIANT, "parent");
Composite filler = new Composite(tabFolderPrimary, SWT.NONE);
filler.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true,
true));
filler.setLayout(new FillLayout());
tabItem.setControl(filler);
Label label = new Label(filler, SWT.NONE);
label.setText("Label");
CTabFolder tabFolderSecondary = new CTabFolder(filler, SWT.NONE);
CTabItem tabItem2 = new CTabItem(tabFolderSecondary, SWT.NONE);
tabItem2.setText("tabItemSecondary");
filler = new Composite(tabFolderSecondary, SWT.NONE);
tabItem2.setControl(filler);
-----------------------------
here is CTabFolder styling from theme.css:
-----------------------------
/* CTabFolder */
CTabFolder {
border-color: #A4A4A4;
border-radius: 6px;
}
CTabItem {
font: 12px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
color: #4a4a4a;
background-color: white;
background-image: none;
padding: 4px 6px;
spacing: 6px;
}
CTabItem.parent {
background-color: #e5fecb;
}
CTabItem:selected {
color: white;
background-color: #b464ff;
}
CTabItem.parent:selected,CTabItem.parent:disabled {
color: #4a4a4a;
background-color: #e5fecb;
background-image: none;
}
CTabItem:disabled {
color: #4a4a4a;
}
-----------------------------
here the property background-color in "selected" clause is ignored by
custom variant style for the border of tab item.
What can I do to ensure that the border is set?
Many thanks in advance and best regards,
Nikolai
--------------080706090607070703080602
Content-Type: image/png;
name="CTabFolderCustomVariant.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="CTabFolderCustomVariant.png"
iVBORw0KGgoAAAANSUhEUgAAAaIAAAECCAYAAAC8F9OBAAAAAXNSR0IArs4c 6QAAAAZiS0dE
AP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oCAxYA BX/FQioAAAAZ
dEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAfJElEQVR42u3d eZyNdf/H8fd1
nTMrxr4kKWEwJHsLShuVpPVW+bUnkqLlJlSWirSnkqVI0Z7Sre4ipUibPcSg 7GMGM4NZMHOu
7++PaxazNtPNdcZ4PR+PHplzzpzrzPs6c97z+V7XzLGMMUYAAASJTQQAAIoI AEARAQAQDP7i
rkxISFDshvVKSEjQwfRD4nBS8FiWpfCIMNWqVUvRjZuoVq1ahAKgfLy+FXay gjFGv/72i3bG
bdcpMVVVvW4FhUb4ZVkEFizGSIfTM7V3Z6q2rklSvZNPUft2HWSxUwCUxyJa umyJ9uyLU0yn
2vL5Wb0rawKZjtYuilfNKnXVpnVbAgFwXCvQMklJSdoRt40SKsN8flsxnWpr +86tSk5OJhAA
5auI/li3RvWaRlFCx0EZ1WtaWWv/WE0YAMpXEe3aFa+qdSqQzHGgap1I7doV TxAAylcRHUw/
pNAIP8kcB0Ij/DqYfoggAJSvIjLGcHbcccKyxCn1AMpfER0Lfa4YUS7CKi9f BwCUJaVeg+tz
xQhNmTPqmL3AZ9/3sdhOYdu0LEuVKkeq1dlNdd0d3RQRGVbk5xzLxwMATERB lP0C7/UL/ZQ5
ozTp8xEa/mJfVagUqXde/ZxnBACU5Ykoe4oobIIZdtdLSk48IMcxqlu/pm7q 112NYurn3G71
0o2aPfNb7dgcr5jWDXXHA1crsmJEqbZjjNHn7y7Qwq+W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ElzUUdY5baW9
SXImziAQABQRgjEVZf1e0UtvyuxPKXB9RmQ0IQGgiHAMnwhdzpHVsb2UmCxn wnQCAUARIYhT
0fhpMvsOEAgAiggePxnOO0tW5w5S8n45r75FIAAoIgThCfH4QHcqemWaTNI+ AgFAEcHjJ0TH
9rIuPFfanyJn/DQCAUARIQhPiuy/zD1hukxiMoEAoIjg8ZPi7DayLu4kHUiV 8/JUAgFAEeHo
yoiMzvnvb6ei19+R2ZOY83kAcLT5ieDEE5IWm6eUimJd2kVm3kKZxUsVkhZL EQGgiHBsSyn/
1GS+WiBJCtxwrwJEBYAiQlkoKAA42jhGBABgIgKOd1/0IQOAiQgAUL4mIn7C AwAwEQEAyj3L
GGOIAQDARAQAoIgAAPDa/wPH6OO9HHJ3owAAAABJRU5ErkJggg==
--------------080706090607070703080602--
|
|
|
Re: Custom variant styling on CTabITem does not set the background completely. [message #512456 is a reply to message #512109] |
Fri, 05 February 2010 08:45 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Nikolai,
for me this looks like a bug - custom variant is not set to
"ctabfolder-frame". Please file a bugzilla to keep track on this issue.
Thanks,
Ivan
On 2/4/2010 12:52 AM, Nikolai Raitsev wrote:
> Hi again,
>
> I'm playing with custom variant styling on CTabItems (based on the
> fancy design) and I have a problem. Here a Screenshot and piece of code:
>
> <CTabFolderCustomVariant.png>
>
> here you can see, that the tabItemPrimary Border is not green (but i
> think, it should be)
>
> here is Java-Code:
> -----------------------------
>
> CTabFolder tabFolderPrimary = new CTabFolder(parent, SWT.NONE);
>
> tabFolderPrimary.setLayout(GridLayoutFactory.fillDefaults(). create());
>
> CTabItem tabItem = new CTabItem(tabFolderPrimary, SWT.NONE);
> tabItem.setText("tabItemPrimary");
> tabItem.setData(WidgetUtil.CUSTOM_VARIANT, "parent");
>
> Composite filler = new Composite(tabFolderPrimary, SWT.NONE);
> filler.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true,
> true));
> filler.setLayout(new FillLayout());
> tabItem.setControl(filler);
>
> Label label = new Label(filler, SWT.NONE);
> label.setText("Label");
>
> CTabFolder tabFolderSecondary = new CTabFolder(filler, SWT.NONE);
> CTabItem tabItem2 = new CTabItem(tabFolderSecondary, SWT.NONE);
> tabItem2.setText("tabItemSecondary");
>
> filler = new Composite(tabFolderSecondary, SWT.NONE);
>
> tabItem2.setControl(filler);
> -----------------------------
>
>
>
>
> here is CTabFolder styling from theme.css:
> -----------------------------
> /* CTabFolder */
> CTabFolder {
> border-color: #A4A4A4;
> border-radius: 6px;
> }
>
> CTabItem {
> font: 12px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
> color: #4a4a4a;
> background-color: white;
> background-image: none;
> padding: 4px 6px;
> spacing: 6px;
> }
>
> CTabItem.parent {
> background-color: #e5fecb;
> }
>
> CTabItem:selected {
> color: white;
> background-color: #b464ff;
> }
>
> CTabItem.parent:selected,CTabItem.parent:disabled {
> color: #4a4a4a;
> background-color: #e5fecb;
> background-image: none;
> }
>
> CTabItem:disabled {
> color: #4a4a4a;
> }
> -----------------------------
> here the property background-color in "selected" clause is ignored by
> custom variant style for the border of tab item.
>
> What can I do to ensure that the border is set?
>
> Many thanks in advance and best regards,
>
> Nikolai
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.06401 seconds