[mythtv-commits] mythtv/master commit: 95efa4adb by John Poet (jpoet)

MythTV noreply at mythtv.org
Fri Oct 28 20:01:26 UTC 2011


      Author:  John Poet <jpoet at mythtv.org>
 Change Date:  2011-10-28T12:54:46-07:00
   Push Date:  2011/10/28 13:01:12 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  95efa4adbab72639d7581e1f2fd1b35dc69ef3ae
   Changeset:  https://github.com/MythTV/mythtv/commit/95efa4adb

Log:

MythUI: Pay attention to alignment in <minsize> areas.

The main benifit of this is seen when <minsize> is used outside of
buttonlists.

For example, users can select among several different date/time formats
which range from being pretty short, to fairly long.  If the themer wanted a
background shape to show under the date/time, they had to allow for the
longest of date/time formats which did not always look good, if a short
format was selected.  Using <minsize> a themer can now have the background
shape auto-sized to the text length, while still throwing it all into a
corner:

    <group name="dateGroup">
	<area>100%-500, 20, -20, 40</area>
	<minsize>20, 100%</minsize>

	<shape name="dateshape">
	    <area>0, 0, 100%, 100%</area>
	    <minsize>20, 100%</minsize>
	    <type>roundbox</type>
	    <cornerradius>15</cornerradius>
	    <fill color="#000000" alpha="255" />
	</shape>

	<clock name="datetime">
	    <area>10, 10, -10, -10</area>
	    <minsize>20, 100%</minsize>
	    <font>basesmalllightgrey</font>
	    <format>%DATE%   %TIME%</format>
	    <align>right</align>
	</clock>
    </group>

Modified:

   mythtv/libs/libmythui/mythuibuttonlist.cpp
   mythtv/libs/libmythui/mythuiimage.cpp
   mythtv/libs/libmythui/mythuistatetype.cpp
   mythtv/libs/libmythui/mythuitext.cpp
   mythtv/libs/libmythui/mythuitext.h
   mythtv/libs/libmythui/mythuitextedit.cpp
   mythtv/libs/libmythui/mythuitype.cpp
   mythtv/libs/libmythui/mythuitype.h
   mythtv/themes/MythCenter-wide/recordings-ui.xml
   mythtv/themes/MythCenter/recordings-ui.xml
   mythtv/themes/default-wide/recordings-ui.xml
   mythtv/themes/default/recordings-ui.xml



More information about the mythtv-commits mailing list