Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Channel icon mods for Mythweb and MythUI

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


chmeredith at gmail

Jul 18, 2009, 1:19 PM

Post #1 of 8 (1474 views)
Permalink
Channel icon mods for Mythweb and MythUI

I've been doing some work on making channel icons prettier in Mythweb and to
a lesser extent, MythUI (0.22). I've finally gotten it the way I like it,
making the channel icons not look squashed and giving them slightly more
prominence. I've written up my changes and provided some before and after
screenshots here:

http://monopedilos.com/dokuwiki/doku.php?id=mythweb_mods

Because this applies both to theming of MythTV and of Mythweb, I'm posting
this to mythtv-users and mythtv-theming. If anyone can make any suggestions
regarding preserving the aspect ratio of images while fitting into a maximum
boundary size in the pre-0.22 themeing scheme and/or OSD, please let me
know.

Feedback (both the changes themselves and the documentation) welcome!


robert.mcnamara at gmail

Jul 18, 2009, 1:27 PM

Post #2 of 8 (1412 views)
Permalink
Re: Channel icon mods for Mythweb and MythUI [In reply to]

On Sat, Jul 18, 2009 at 1:19 PM, Christopher Meredith
<chmeredith [at] gmail>wrote:

> I've been doing some work on making channel icons prettier in Mythweb and
> to a lesser extent, MythUI (0.22). I've finally gotten it the way I like it,
> making the channel icons not look squashed and giving them slightly more
> prominence. I've written up my changes and provided some before and after
> screenshots here:
>
> http://monopedilos.com/dokuwiki/doku.php?id=mythweb_mods
>
> Because this applies both to theming of MythTV and of Mythweb, I'm posting
> this to mythtv-users and mythtv-theming. If anyone can make any suggestions
> regarding preserving the aspect ratio of images while fitting into a maximum
> boundary size in the pre-0.22 themeing scheme and/or OSD, please let me
> know.
>
> Feedback (both the changes themselves and the documentation) welcome!
>
>
Hi Christopher,

I like your changes a lot. The*one* thing I personally would want to change
about it is that I don't like that the mythweb aspect changes allow the
channel heigts to be variable. It would be nice if you could enforce that.

Otherwise, I strongly encourage you to submit patches for each of these
changes, I already mentioned it to the mythweb maintainer and he doesn't
seem opposed to it.

Robert


robert.mcnamara at gmail

Jul 18, 2009, 1:31 PM

Post #3 of 8 (1405 views)
Permalink
Re: Channel icon mods for Mythweb and MythUI [In reply to]

PS-- Love the transparent background icons. Going to use them myself. I
have often wished LyngSat distributed transparent background icons. Nice
work.


robert.mcnamara at gmail

Jul 18, 2009, 1:36 PM

Post #4 of 8 (1409 views)
Permalink
Re: Channel icon mods for Mythweb and MythUI [In reply to]

On Sat, Jul 18, 2009 at 1:31 PM, Robert McNamara
<robert.mcnamara [at] gmail>wrote:

> PS-- Love the transparent background icons. Going to use them myself. I
> have often wished LyngSat distributed transparent background icons. Nice
> work.
>


Gah, stop writing, Robert!

Would you care to do up a quick tutorial on removing the backgrounds in
GIMP? I am pretty sure it's just a matter of selecting by color and
deleting, but I but a number of people would love to add to your icons-- I
know I would.

Robert


jarod at wilsonet

Jul 18, 2009, 4:26 PM

Post #5 of 8 (1392 views)
Permalink
Re: Channel icon mods for Mythweb and MythUI [In reply to]

On Jul 18, 2009, at 4:36 PM, Robert McNamara
<robert.mcnamara [at] gmail> wrote:

> On Sat, Jul 18, 2009 at 1:31 PM, Robert McNamara <robert.mcnamara [at] gmail
> > wrote:
> PS-- Love the transparent background icons. Going to use them
> myself. I have often wished LyngSat distributed transparent
> background icons. Nice work.
>
>
> Gah, stop writing, Robert!

You're killin' me, Smalls!

> Would you care to do up a quick tutorial on removing the backgrounds
> in GIMP? I am pretty sure it's just a matter of selecting by color
> and deleting,

No! The Right Way to do it is with layer masks. One of our design
people did a very cool demo showing how and why its a vastly superior
method for something like this.

> but I but a number of people would love to add to your icons-- I
> know I would.

Haven't had a chance to look yet, but AOL that. ;)

--
Jarod Wilson
jarod [at] wilsonet


chmeredith at gmail

Jul 18, 2009, 5:02 PM

Post #6 of 8 (1401 views)
Permalink
Re: Channel icon mods for Mythweb and MythUI [In reply to]

On Sat, Jul 18, 2009 at 3:27 PM, Robert McNamara
<robert.mcnamara [at] gmail> wrote:
>
>
> On Sat, Jul 18, 2009 at 1:19 PM, Christopher Meredith <chmeredith [at] gmail> wrote:
>>
>> I've been doing some work on making channel icons prettier in Mythweb and to a lesser extent, MythUI (0.22). I've finally gotten it the way I like it, making the channel icons not look squashed and giving them slightly more prominence. I've written up my changes and provided some before and after screenshots here:
>>
>> http://monopedilos.com/dokuwiki/doku.php?id=mythweb_mods
>>
>> Because this applies both to theming of MythTV and of Mythweb, I'm posting this to mythtv-users and mythtv-theming. If anyone can make any suggestions regarding preserving the aspect ratio of images while fitting into a maximum boundary size in the pre-0.22 themeing scheme and/or OSD, please let me know.
>>
>> Feedback (both the changes themselves and the documentation) welcome!
>>
>
> Hi Christopher,
>
> I like your changes a lot.  The*one* thing I personally would want to change about it is that I don't like that the mythweb aspect changes allow the channel heigts to be variable.  It would be nice if you could enforce that.

That's not a problem. I've already made the change to the
documentation. To do it, change line 89 of
modules/tv/tmpl/default/list_data.php to this:

<code><td ALIGN=center class="x-channel" height=70></code>

As far as transparent icons go, yeah it really is pretty simple. I can
write up something more detailed than this, but basically I load the
image, use the contiguous area selection tool in GIMP and experiment
with the threshhold. Around 75 usualy works if the icon is dark. Then
just select the background and white areas. Then in invert the
selection, cut, and paste as new image. Then I clean up as necessary,
resize to 200px (should probably be 160) then save as png.

I've been noticing that on Lyngsat they are starting to include high
res transparent png logos. If you find a logo in the menu and it has
an "H" icon above it, that's the high res version. Most of the icons I
made started out as transparent pngs from Lyngsat, I just cropped and
resized.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


robert.mcnamara at gmail

Jul 18, 2009, 6:20 PM

Post #7 of 8 (1389 views)
Permalink
Re: Channel icon mods for Mythweb and MythUI [In reply to]

Hi Christopher,

Well, first off I'm mad at you for turning my project of the day into
finding transparent channel icons. Nice job.

A couple things--

* One of your examples cites the elkin theme-- looks like you probably
mostly edited that one and changed to default for your howto, but looks like
you missed it in one spot.
* The recorded programs page change makes the icons suuuuuper wide if they
haven't been edited down. I used:

<img class="channelicon" src="<?php echo $show->channel->icon ?>"
width=70></a></td><?php


instead.

Nice job! I'm intentionally not sampling the icons down as I want to
experiment with optimal size once the OSD gets MythUI'd.

Robert


chmeredith at gmail

Jul 18, 2009, 9:02 PM

Post #8 of 8 (1385 views)
Permalink
Re: Channel icon mods for Mythweb and MythUI [In reply to]

On Sat, Jul 18, 2009 at 8:20 PM, Robert
McNamara<robert.mcnamara [at] gmail> wrote:
> Hi Christopher,
>
> Well, first off I'm mad at you for turning my project of the day into
> finding transparent channel icons.  Nice job.
>
> A couple things--
>
> * One of your examples cites the elkin theme-- looks like you probably
> mostly edited that one and changed to default for your howto, but looks like
> you missed it in one spot.
> * The recorded programs page change makes the icons suuuuuper wide if they
> haven't been edited down.  I used:
>
> <img class="channelicon" src="<?php echo $show->channel->icon ?>"
> width=70></a></td><?php
>
> instead.
>
> Nice job!  I'm intentionally not sampling the icons down as I want to
> experiment with optimal size once the OSD gets MythUI'd.

Robert,

Thanks for the heads up on the paths. I actually intended for my guide
to work on the Elkin theme because transparent icons look way better
against white/light backgrounds. When I started assembling my
instructions, I had decided to give instructions for modifying the
default theme, then changed my mind and forgot to update the paths. So
I've fixed the documentation now, and it is consistent in modifying
the Elkin theme, not default.

I looked over the problem you mentioned with the recordings page. If
you're working on the default theme, I think your problem might have
been that my instructions had pointed you to edit the stylesheet for
the elkin theme. But I double checked my directions and those code
changes do work, and keep the icons properly sized and positioned. If
you would, please give it another try and let me know if it's still
not playing nice.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.