how do I ....‎ > ‎

InfoBar customize and fade

Customize InfoBar
Normal behaves of the InfoBar is the way it's setup in:
Menu -> Setup -> System -> Customize

Here you can decide if Infobare should show:
When you change Channel.
Skip forward or backward (recording or DVD)
On event change.

Make your InfoBar fade away.
Idea by Gutemine -> thread on Ihad
To make the InfoBar fade there is two parts:
1. the time of hide from start to end.
2. how the OSD_Alpha should work.

In the patch below OSD Alpha(doDimming)
and Time(doTimerHide) are both set to 30 and 70

Find InfoBarGenerics.py in /usr/lib/enigma2/python/Screens

Remove this:
def __onHide(self):
self.__state = self.STATE_HIDDEN

def doShow(self):
self.show()
self.startHideTimer()

def doTimerHide(self):
self.hideTimer.stop()
if self.__state == self.STATE_SHOWN:
self.hide()

Set this in same place:
def __onHide(self):
self.__state = self.STATE_HIDDEN
self.unDimmingTimer = eTimer()
self.unDimmingTimer.callback.append(self.unDimming)
self.unDimmingTimer.start(100, True)

def doDimming(self):
                self.dimmed=self.dimmed-1
self.DimmingTimer.stop()
                if self.__state != self.STATE_HIDDEN:
                   f=open("/proc/stb/video/alpha","w")
                   f.write("%i" % (config.av.osd_alpha.value*self.dimmed/30))
                   f.close()
                   if self.dimmed > 0:
     self.DimmingTimer.start(70, True)
                   else:
         self.DimmingTimer.stop()
     if self.__state == self.STATE_SHOWN:
  self.hide()

def unDimming(self):
           self.unDimmingTimer.stop()
                f=open("/proc/stb/video/alpha","w")
                f.write("%i" % (config.av.osd_alpha.value))
                f.close()

def doShow(self):
self.show()
self.startHideTimer()

def doTimerHide(self):
self.hideTimer.stop()
self.DimmingTimer = eTimer()
self.DimmingTimer.callback.append(self.doDimming)
self.DimmingTimer.start(70, True)
                self.dimmed=30
# if self.__state == self.STATE_SHOWN:
# self.hide()