Language
English
|
SQP-dev |
|
Welcome to SQP developpement report page
This which will give my thoughts, some examples, and a way to test some options I'm working on to improve the dock. First I'd like to say that options tested here are activated on my configuration, and I would be the first affected by big regressions. I'll try to track all possibles drawbacks that would affect original dock behaviour (other than those intended or known issues I'll list)
BugFix - Gauge theme transparency problem on images and text (images for indicators > 1).
Theme GUI Changeg the Theme GUI to flexible behaviour. This remove resizing problems when selecting themes, and a better look/usage when resized
Gauge Theme Effects Description This minor patch enhance gauge thème abilities. Actually, besides the common part for fore/background images and text, there is only two way to show values : give a needle svg and settings, or a image list and let the dock display one in the range. This patch just add the ability to apply an effect to that displayed image. Effects currently available are crop, stretch, zoom and fade.
My first idea was to have a small fluid gauge bar. The fluid part was almost impossible with current svg implementation : a 20 images theme was painfull to make for me, and would only have give a 5% step precision (100/nb images). So I tracked a way to add a crop effect to a gradient svg image, and found way more.
Benefits - Accurate display : every little variation can be displayed and is animated
- New unexplored resizables themes with ratio independant textures.
- The gauges bar looks really cool and integrates really well in the dock
- Combine those two options to get a 10 ou 15px large applet that give you instant information
- Multiply it with the ability to still give a list of images, and combine effect with different images.
- And all this is easier to use than ever : get an image, add a background, set effect and text options in a theme file, and you've got your own theme. You can even submit it so others can enjoy it too !
- Current themes aren't affected (unless you want to activate effect by editing them, the wifi square looks cool with zoom or fade effect)
Examples
Installation Just a little variation from default bzr install, so if you have problems, you may find answers on the dedicated page
# download branch
bzr checkout --lightweight lp:~meuarrr/cairo-dock-core/SQP
# prepare cairo-dock-core/build directory
cd cairo-dock-core && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr
# build and install
make -j $(grep -c ^processor /proc/cpuinfo) && sudo make install ## or use root for the make install if you don't have sudo activated
If all this is ok, you just have to restart the dock
To recompile, go back to cairo-dock-core/build, launch make clean and the build line (the one starting with make)
The build dir can be safely removed (after make install is better) to restart the process
Themes Only two test themes are available at the moment. Based on crop effect to have a fluid gauge bar, the first only have one simple svg gradient, and the second is the same with 2 more images to change bar base color for high values.
Activate Effect To apply an effect to your theme, you just have to add the XML key "effect" to theme indicator, and an image file (or a list of)
<indicator>
<effect>1</effect>
<file key="image">bar0.svg</file>
</indicator>
With current effect list :
- 0 : no effect (default)
- 1 : crop - from bottom to top
- 2 : stretch - from bottom to top
- 3 : zoom - centered
- 4 : fade
Give Feedback As all those are still tests, every opinion is more than welcomed. So whether you love or hate them, or want to change something, or suggest new options related, we would be really pleased to know what you think of ideas or examples shown here.
It is possible on these threads : |
|