SavingGoogleCode / tint2

tint2 is a lightweight panel/taskbar.
GNU General Public License v2.0
0 stars 0 forks source link

Image backgrounds #393

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I looked across multiple boards and this issue tracker and didn't find this 
anywhere...  Please consider this feature request:

tint2 is ideal in each aspect, to me, except that it doesn't allow image 
backgrounds.

I know that the use of solid colors with transparency is a powerful feature but 
the option of image backgrounds, such as transparent PNGs or pixmaps, would 
make tint2 vastly more powerful.

An example of syntax could be as following:

------

# ID 1 - Background
rounded = 0
border_width = 0

background_color = #000000 50
# Background colors would generate behind the image, 0 to disable

background_image = /home/user/.config/tint2/images/background.png
# Finds the image, much like for finding launcher .desktop files
# Disabled by default

background_image_position = left top
# Designates the image position
# First is for the x-axis (left, center, right)
# Second is for the y-axis (top, center, bottom)

background_image_repeat = yes no
# Options to repeat the image if necessary
# First is for the x-axis (yes, no)
# Second is for the y-axis (yes, no)

------

If this has already been addressed I apologize but I couldn't find this issue 
anywhere. Thanks in advance.

Original issue reported on code.google.com by milesmel...@yahoo.com on 12 Feb 2012 at 11:53

GoogleCodeExporter commented 9 years ago
I have a few comments about this. I agree that theming tint2 with background 
images would be a powerful feature, and there might be a lot of people who 
would use it.

However it is a bit more complicated to configure than you think. You have to 
take into account rounded corners, and backgrounds that can vary in both width 
and height. The typical solution for this is to use a 9-cell rounded corners 
table layout, with 4 fixed corner images and 5 stretched/tiled images for edges 
and the center (see the attached image). Let's say that you generally stretch, 
and to optimize a bit you tile images that are 1-pixel wide - then you have 9 
new config lines for each background, plus a flag to toggle between images and 
the current way of drawing. The configuration file is already quite complex to 
edit by hand (there are about 100 config options), so I don't think there is a 
chance this feature will be introduced before tint2 has a configuration GUI.

Original comment by mrovi%in...@gtempaccount.com on 21 Feb 2012 at 5:05

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mrovi%in...@gtempaccount.com on 21 Feb 2012 at 5:06

GoogleCodeExporter commented 9 years ago
Ah, I see. I thought the way the configuration it'd work would be just as 
simple as I explained; I was thinking I may have even been over-complicating 
it. I hope that this will be a future we can expect to see, even though 
probably not soon. Anyways, thanks for the information.

Original comment by milesmel...@yahoo.com on 23 Feb 2012 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by mrovi9...@gmail.com on 1 Feb 2015 at 11:34

GoogleCodeExporter commented 9 years ago
Related: issue 245.

Original comment by mrovi9...@gmail.com on 2 Feb 2015 at 12:08

GoogleCodeExporter commented 9 years ago
Project moved to GitLab.

You can find this issue at: https://gitlab.com/o9000/tint2/issues/393

Original comment by mrovi9...@gmail.com on 25 Apr 2015 at 11:23