diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-28 23:12:30 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-28 23:12:30 +0000 |
| commit | bb4448ebb7cb6a4f9fdcd52cd4db29e1ce9d35fa (patch) | |
| tree | 9309565468f4d2c4fc9ceccba5f62065480908db /lib/python/Components | |
| parent | f228cfc8343e089176d885102558825bdb6a3d9c (diff) | |
| download | enigma2-bb4448ebb7cb6a4f9fdcd52cd4db29e1ce9d35fa.tar.gz enigma2-bb4448ebb7cb6a4f9fdcd52cd4db29e1ce9d35fa.zip | |
fix timerlist and movielist multicontent region sizes
TODO: put multicontent entry layout in the skin
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/MovieList.py | 8 | ||||
| -rw-r--r-- | lib/python/Components/TimerList.py | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 0c0bba9b..0f3a3fd2 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -39,7 +39,7 @@ def MovieListEntry(serviceref, serviceHandler): else: len = "?:??" - res.append((0, 0, 400, 30, 0, RT_HALIGN_LEFT, info.getName(serviceref))) + res.append((0, 0, 560, 30, 0, RT_HALIGN_LEFT, info.getName(serviceref))) description = info.getInfoString(serviceref, iServiceInformation.sDescription) begin = info.getInfo(serviceref, iServiceInformation.sTimeCreate) @@ -49,9 +49,9 @@ def MovieListEntry(serviceref, serviceHandler): t = FuzzyTime(begin) begin_string = t[0] + ", " + t[1] - res.append((0, 30, 200, 20, 1, RT_HALIGN_LEFT, description)) - res.append((0, 50, 200, 20, 1, RT_HALIGN_LEFT, begin_string)) - res.append((200, 50, 200, 20, 1, RT_HALIGN_RIGHT, len)) + res.append((0, 30, 560, 20, 1, RT_HALIGN_LEFT, description)) + res.append((0, 50, 270, 20, 1, RT_HALIGN_LEFT, begin_string)) + res.append((290, 50, 270, 20, 1, RT_HALIGN_RIGHT, len)) return res diff --git a/lib/python/Components/TimerList.py b/lib/python/Components/TimerList.py index 8f8dc50c..da2ff949 100644 --- a/lib/python/Components/TimerList.py +++ b/lib/python/Components/TimerList.py @@ -26,7 +26,7 @@ RT_WRAP = 32 def TimerEntryComponent(timer, processed): res = [ timer ] - res.append((0, 0, 400, 30, 0, RT_HALIGN_LEFT, timer.service_ref.getServiceName())) + res.append((0, 0, 220, 30, 0, RT_HALIGN_LEFT, timer.service_ref.getServiceName())) repeatedtext = "" days = [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" ] if (timer.repeated != 0): @@ -39,11 +39,11 @@ def TimerEntryComponent(timer, processed): repeatedtext += days[x] count += 1 flags = flags >> 1 - res.append((0, 30, 200, 20, 1, RT_HALIGN_LEFT, repeatedtext + (" %s ... %s" % (FuzzyTime(timer.begin)[1], FuzzyTime(timer.end)[1])))) + res.append((0, 30, 300, 20, 1, RT_HALIGN_LEFT, repeatedtext + (" %s ... %s" % (FuzzyTime(timer.begin)[1], FuzzyTime(timer.end)[1])))) else: - res.append((0, 30, 200, 20, 1, RT_HALIGN_LEFT, repeatedtext + ("%s, %s ... %s" % (FuzzyTime(timer.begin) + FuzzyTime(timer.end)[1:])))) + res.append((0, 30, 300, 20, 1, RT_HALIGN_LEFT, repeatedtext + ("%s, %s ... %s" % (FuzzyTime(timer.begin) + FuzzyTime(timer.end)[1:])))) - res.append((300, 0, 200, 20, 1, RT_HALIGN_RIGHT, timer.name)) + res.append((240, 0, 320, 20, 1, RT_HALIGN_RIGHT, timer.name)) if not processed: if timer.state == TimerEntry.StateWait: @@ -57,7 +57,7 @@ def TimerEntryComponent(timer, processed): else: state = "done!" - res.append((300, 30, 200, 20, 1, RT_HALIGN_RIGHT, state)) + res.append((320, 30, 240, 20, 1, RT_HALIGN_RIGHT, state)) return res |
