Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Rap 1.3 theming problem(Theming + css)
Rap 1.3 theming problem [message #505157] Mon, 28 December 2009 08:44 Go to next message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Hi all,
i've got a problem with theming in rap 1.3.
In my application i need to override default behavior of displaying checkbox table item. CSS file contains these lines:
...
Table-Checkbox:grayed {
  background-image: url( "/theme/icons/check_gray_off.gif" );
}
...

In rap 1.2 this code works fine ...
Re: Rap 1.3 theming problem [message #505559 is a reply to message #505157] Fri, 01 January 2010 17:07 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Andrew,

at the moment I am not able to verify your observation (my hard drive crashed and I am waiting on the spare part).
However if you think this is a bug, please file a bugzilla [1] so that one can track progress on the issue.

Rüdiger

[1] http://eclipse.org/rap/bugs.php
Re: Rap 1.3 theming problem [message #505687 is a reply to message #505157] Mon, 04 January 2010 14:05 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Andrew,

for me the table item checkbox theming works as expected. Maybe you need
to define the Table-Checkbox:checked:grayed too.

Best,
Ivan

On 12/28/2009 10:44 AM, Andrew wrote:
> Hi all, i've got a problem with theming in rap 1.3. In my application
> i need to override default behavior of displaying checkbox table
> item. CSS file contains these lines:
>
> ..
> Table-Checkbox:grayed {
> background-image: url( "/theme/icons/check_gray_off.gif" );
> }
> ..
>
> In rap 1.2 this code works fine ...
>
Re: Rap 1.3 theming problem [message #506095 is a reply to message #505687] Wed, 06 January 2010 06:15 Go to previous messageGo to next message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Hi Ivan,
I've got Table-Checkbox:checked:grayed style in my css file too. But i can't override background-image property using css for Table-Checkbox elements in rap 1.3, coz simple it doesn't work.
Re: Rap 1.3 theming problem [message #506108 is a reply to message #506095] Wed, 06 January 2010 03:24 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Andrew,

I can't reproduce what you described. If you think that this is a bug,
please file a bugzilla as Ruediger suggested. Please attach simple
project or css to reproduce it.

Best,
Ivan

On 1/6/2010 8:15 AM, Andrew wrote:
> Hi Ivan,
> I've got Table-Checkbox:checked:grayed style in my css file too. But i
> can't override background-image property using css for Table-Checkbox
> elements in rap 1.3, coz simple it doesn't work.
Re: Rap 1.3 theming problem [message #506118 is a reply to message #506108] Wed, 06 January 2010 09:34 Go to previous messageGo to next message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
To reproduce it:
Switch to rap 1.2 release target platform. Import org.eclipse.rap.demo project into workspace. Launching it with branding and entry point="controls", e.g. with servlet name ="tea" (tea?startup=controls). Open "Tree" tab and check "CHECK" style for tree. If u check tree item in tree you'll see background image that differs from default background image for tree.
Then switch to rap 1.3 M4 target platform and repeat all steps.
Re: Rap 1.3 theming problem [message #506143 is a reply to message #506118] Wed, 06 January 2010 10:36 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Andrew,

for me, everything is working as expected. Here are the steps:
1. Target 1.3 or CVS HEAD
2. Launch org.eclipse.rap.demo with branding and entry point="controls",
e.g. with servlet name ="tea" (tea?startup=controls).
3. In Tree tab check the CHECK style.
4. Check the "Node_2.0" checkbox - ckeckbox is marked checked.
5. Check the "Grey out 2nd item" - the check box image of the second
item is changed from "check mark" to "gray square".
6. Uncheck the "Node_2.0" checkbox - checkbox is not checked, no "check
mark", no "gray square".

Best,
Ivan

On 1/6/2010 11:34 AM, Andrew wrote:
> To reproduce it: Switch to rap 1.2 release target platform. Import
> org.eclipse.rap.demo project into workspace. Launching it with
> branding and entry point="controls", e.g. with servlet name ="tea"
> (tea?startup=controls). Open "Tree" tab and check "CHECK" style for
> tree. If u check tree item in tree you'll see background image that
> differs from default background image for tree. Then switch to rap 1.3
> M4 target platform and repeat all steps.
>
Re: Rap 1.3 theming problem [message #506178 is a reply to message #506143] Wed, 06 January 2010 13:16 Go to previous messageGo to next message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Hi, Ivan.
I'm special saying about branding. The behavior of branding and not branding demo are different in rap 1.2 release, but not in rap 1.3. In branding demo used css file which override background-image for tree item in check and unchecked state, so there shouldn't be "gray square" image in branding demo. Plz repeat all you steps with rap 1.2.
Re: Rap 1.3 theming problem [message #506204 is a reply to message #506178] Wed, 06 January 2010 14:01 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Andrew,

the main difference between 1.2 and 1.3 version is that in 1.2 version
both Tree and Table checkboxes used Table-Checkbox CSS element. In 1.3
Table uses Table-Checkbox and Tree uses Tree-Checkbox CSS element. In
"org.eclipse.rap.demo\theme1\theme.css" there are only definitions for
Table-Checkbox. That's why the Tree widget checkbox uses default CSS. Add
Tree-Checkbox {
background-image: url( "/theme1/icons/checkbox.white.off.gif" );
}

Tree-Checkbox:grayed {
background-image: url( "/theme1/icons/checkbox.gray.off.gif" );
}

Tree-Checkbox:checked {
background-image: url( "/theme1/icons/checkbox.white.on.gif" );
}

Tree-Checkbox:checked:grayed {
background-image: url( "/theme1/icons/checkbox.gray.on.gif" );
}

HTH,
Ivan

On 1/6/2010 3:16 PM, Andrew wrote:
> Hi, Ivan.
> I'm special saying about branding. The behavior of branding and not
> branding demo are different in rap 1.2 release, but not in rap 1.3. In
> branding demo used css file which override background-image for tree
> item in check and unchecked state, so there shouldn't be "gray
> square" image in branding demo. Plz repeat all you steps with rap 1.2.
Re: Rap 1.3 theming problem [message #506339 is a reply to message #506204] Thu, 07 January 2010 07:04 Go to previous message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Thx a lot.
Previous Topic:e4 RAP
Next Topic:RAP for multi-user IDE-like application
Goto Forum:
  


Current Time: Tue May 14 02:57:25 GMT 2024

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

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

Back to the top