Home > General > Modifying MythTV’s Blue Abstract Theme – Recordings

Modifying MythTV’s Blue Abstract Theme – Recordings

After my first post about modifying the video list in MythTV’s Blue Abstract Theme, I got quite interested in tweaking the UI. I switched the background of the theme and was confronted with a new issue. Due to the background change, some of the previously subtle image shade differences were now much more apparent.

In the recordings list, there’s a description box that shows the description of the recorded show. This description box has a set of icons that specify properties of the recordings. The issue is that there’s a default set of icons that are grayed out:

The problem arises when your recording’s properties doesn’t match those default properties:

As you can see, the grayed out properties doesn’t match the recording properties, so the default grayed out property is replaced by a new property with a big grey box in the background. I think this looks quite ugly.

So I decided to fix this by changing the defaults so that they match with my cable provider’s defaults. Here’s the result:

If my cable provider would send recordings in multiple formats, it would probably be best to remove the grayed out default completely. But this works for me. I’ll show how to do this change below.

Locate the recordings-ui.xml for the Blue Abstract Wide theme (usually under /usr/share/mythtv/themes/blue-abstract-wide).

The subtitle/CC icon is defined by the following code:

<imagetype name="no_subtitletypes">
 <position>990,495</position>
 <filename>images/shared/recordings/subtitles/cc.png</filename>
 <alpha>50</alpha>
</imagetype>
<statetype name="subtitletypes">
 <position>990,495</position>
 <showempty>yes</showempty>
 <state name="cc">
  <shape name="subtitles1_background" from="base_background_shape">
   <line color="#AAAAAA" alpha="0" width="1" />
   <area>0,0,60,40</area>
  </shape>
  <imagetype name="cc" from="base_image_selected">
   <filename>images/shared/recordings/subtitles/cc.png</filename>
  </imagetype>
 </state>
 <state name="subtitles">
  <shape name="subtitles2_background" from="base_background_shape">
   <line color="#AAAAAA" alpha="0" width="1" />
   <area>0,0,60,40</area>
  </shape>
  <imagetype name="subtitles" from="base_image_selected">
   <filename>images/shared/recordings/subtitles/subs_optional.png</filename>
  </imagetype>
 </state>
 <state name="onscreensub">
  <shape name="subtitles3_background" from="base_background_shape">
   <line color="#AAAAAA" alpha="0" width="1" />
   <area>0,0,60,40</area>
  </shape>
  <imagetype name="onscreensub" from="base_image_selected">
   <filename>images/shared/recordings/subtitles/subs_onscreen.png</filename>
  </imagetype>
 </state>
</statetype>

Now all that needs to be done is to change the first red part (the filename) to the desired new default (grayed out) value, in my case subs_optional.png. The second red part draws the gray box. Remove that part completely.

If your provider sends recordings with multiple properties, you might want to think about removing the grayed out value completely. This should work if you just remove the first imagetype section completely. Quite easy, huh?

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s