From a servoyguy.com hint, I had made some extra style sheets, hidden in an html field to modify tabs panels style.
Now ported the solution to v5, this does not work anymore, and I am back with the ugly blue tabs.
Is this considered as a bug? any workaround?
Hi lesouef,
This is not considered a bug as the “hint” from servoyguy.com manipulates the generated html in the WebClient. There is no guarantee that the internal structure of the HMTL remains the same between versions, just like you cannot expect non-public API to remain stable between versions.
Your options are:
1 - Roll your own tabs on your forms
2 - Adjust the hack from servoyguy (or ask servoyguy to do it) so it works again
3 - Create a feature request for this in our support system (servoy.com/s)
The 3rd option might be good to do anyway, regardless of the direction you choose.
Paul
1 - Roll your own tabs on your forms
----------- you mean make a fake tab panel? customizing the existing would have been enough.
2 - Adjust the hack from servoyguy (or ask servoyguy to do it) so it works again
----------- no author mentionned… I could do some reverse work on your web styles, but controlling it from start would be easier than trying to overwrite them.
3 - Create a feature request for this in our support system (servoy.com/s)
----------- well, yes, actually my wish list is quite long for appearance, I need to put this together to make it clean, I’d like to change the smart L&F to match what you can do for the webclient, have more control on styles by eliminating the browser specific buttons, etc… see screen captures fyi on what can be done with other web client styles. Colour selector which is not handy enough, cannnot save my own colours… I’ll try to work on this next week.
no author mentionned…
I guess you could post a comment on the servoyguy site?
but controlling it from start would be easier than trying to overwrite them.
See item 3
d like to change the smart L&F to match …
I think you are aware of this already, but Smart Client styling in controlled by:
- The OS
- The used Look and Feel
- The applied stylesheet (Servoy Stylesheets)
- The properties on specific elements
There are also 3rd party tools with which you could create your own LAF completely (for example EaSynth Look And Feel Designer - Java Look And Feel IDE), but it’s a bit quite a bit of work I think, after having had a quick look.
Colour selector which is not handy enough, cannnot save my own colours… I’ll try to work on this next week.
We use the Color picker provider by the platform, but please file a feature request with your wishes
Paul
1
no, you need an account but the button is nowhere. anyway, I sent an email to the guy as his email is public there.
2/3
yes I know, that’s why it’s a real headache when you want to achieve something neat for all UIs. I am somehow dreaming of a wysiwyg web client design tool!
with 3.5, I was quite close to what I wanted after I spent ages on this. Actually I would be happy if the smart client would render as a browser instead of a java app.
I’ll have a look to the L&F tool, but I know it is a job on its own. But making a IE8 L&F would fix quite a few problems! not saying I’ll do it.
4
colour picker: not the best idea you had, the windows one is a misery… I like the adobe “imageready” one for instance though I don’t need continuous tone. Could I do a servoy solution to return the colour in the developer, ie replace the default colour command by a method+form which would return my color?
still under the same subject, the new upload window in web client:
is that the final look? buttons do not even have the same size. any chance to “style” this?
fyi see this with IE: http://pagetruck.com so something can be done, even if it is difficult to match all browsers.
problem is that the browse button is very hard to style even your site that you point out with that url. does have a normal Browse button and the rest are completely different buttons.
But if somebody has a nice stylesheet for the upload dialog then please send it over.
I’ll try to do a simpler thing, just force the browse button to be the same height and maybe send Upload to the next line. of course a browser detection + special style is better, but there are many cases, sometimes linked to the OS; for instance, FF3.5 does not display the same under XP and vista. in the latter, the border goes away if the style specifies border=1px. Setting border=0 makes it 2px under xp, etc… endless.
On the site mentionned above, I had replaced all buttons by images to work around these differences. The file browse is THE exception, a pain in the (…) or neck! So i’ll post a simple mod. to at least get them the same size.
yes I know, that’s why it’s a real headache when you want to achieve something neat for all UIs. I am somehow dreaming of a wysiwyg web client design tool!
with 3.5, I was quite close to what I wanted after I spent ages on this. Actually I would be happy if the smart client would render as a browser instead of a java app.
I’ll have a look to the L&F tool, but I know it is a job on its own. But making a IE8 L&F would fix quite a few problems! not saying I’ll do it.
We will look into the option to be able to style the tabs in the webclient again, not through the ServoyGuy hack, but though the webdav default stylesheets.
colour picker: not the best idea you had, the windows one is a misery… I like the adobe “imageready” one for instance though I don’t need continuous tone. Could I do a servoy solution to return the colour in the developer, ie replace the default colour command by a method+form which would return my color?
Not a matter of having a (good/bad) idea or not: It’s just something that comes with the IDE (Eclipse).
Dunno if rolling your own solution would be very handy to work with. Maybe there’s already a more advanced Eclipse color picker plugin out there.
If you like to see it improved, please make yourself heared by creating a case and specify what is missing/could be improved/etc. The more detail, the better…
Paul
ok. I’ll write that then. of course don’t re-invent the wheel if there is something nice out there.
my solution (in my mind) had the advantage to be able to store my custom colours in the repository.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
td {text-align:right; vertical-align:top;}
input {font-family:Arial, Verdana; font-size:8pt; width:100% ;height:23px; margin:0px; padding:0px; }
</style>
<script type="text/javascript">
var $agent = navigator.userAgent ;
if ($agent.indexOf("Mac",0)>0) var $width = "42" ; else var $width = "55" ; //os detect for ff file browse button being different on mac
</script>
</head>
<body class="margins" style="margin:10px;">
<div style="width:480px; background:#ffffff; border:1px solid #cccccc; padding:3px; padding-bottom:2px;">
<form name="form_upload" method="post" enctype="multipart/form-data">
<table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td>
<script type="text/javascript"> document.write('<input class="input" type="file" name="file2upload" size="'+$width+'">'); </script>
</td>
<td>
<input class="input" type="submit" style="width:90px; text-align:center;" id="upload" name="upload" value="Upload" >
</td>
</tr>
</form>
</div>
</body>
</html>