[Amelia-development] UI StyleSheet Stuff
Status: Alpha
Brought to you by:
jppequenao
|
From: Karol K. <kk...@gm...> - 2008-10-16 18:18:39
|
Hi Joao, While working on the fancy layout switcher, I've run into some problems with the stylesheets in the UI, so I'm wondering if you could take a quick look at that or offer some suggestions. 1) The background of the geometry.ui is currently a 1024x730 image, which does not get scaled. However our window is 1024x730, which includes the toolbar and menubar, so the background does not really work. That is why the Designer form does not look correct, because the size of the central widget is not 1024x730, but less... It used to work in Ameila though, because when we loaded geometry.ui, the central widget was automatically resized to 1024x730 (thus the window was even bigger). However if I try my new method, the central widget is no longer resized, so it looks like it would in the Designer (see dynqt-widget). I think that one solution would be to either make the entire window bigger than 1024x730 (so that the central widget is 1024x730 when we add the toolbars) or make the background smaller. The problem with the latter solution is that it greatly reduces the real-estate that we have available. What do you think? 2) As I mentioned before, using border-image for a background image is not very efficient, so when I run my sliding animation there is a lot of choppiness. If I replace all border-images with background-images, the performance improves greatly. There are several places that I think we should be able to do this, because all border-images does is automatic scaling. However certain widgets will not be resized (ei: background of the tabwidget, the selected track info tool). So would it be possible to use a background-image instead of a border-image for those? -- Cheers, Karol Krizka |