diff options
| -rw-r--r-- | data/skin.xml | 12 | ||||
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 4 | ||||
| -rw-r--r-- | mytest.py | 3 |
3 files changed, 16 insertions, 3 deletions
diff --git a/data/skin.xml b/data/skin.xml index a05128f5..f1e25496 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -204,10 +204,20 @@ <widget source="TimeshiftPossible" render="Pixmap" pixmap="skin_default/buttons/button_yellow.png" position="440,130" zPosition="1" size="15,16" alphatest="on"> <convert type="ConditionalShowHide" /> </widget> - <eLabel text="Timeshift" position="460,130" size="85,22" font="Regular;16" foregroundColor="#7f848d" backgroundColor="#182946" transparent="1" /> + <widget source="ShowTimeshiftOnYellow" render="FixedLabel" text="Timeshift" position="460,130" zPosition="1" size="85,22" font="Regular;16" foregroundColor="#7f848d" backgroundColor="#182946" shadowOffset="-1,-1" transparent="1"> + <convert type="ConditionalShowHide" /> + </widget> <widget source="TimeshiftPossible" render="FixedLabel" text="Timeshift" position="460,130" zPosition="1" size="85,22" font="Regular;16" backgroundColor="#182946" shadowColor="#1d354c" shadowOffset="-1,-1" transparent="1"> <convert type="ConditionalShowHide" /> </widget> + + <!-- Yellow button (used for audio on boxes with new rc?) --> + <widget source="ShowAudioOnYellow" render="Pixmap" pixmap="skin_default/buttons/button_yellow.png" position="440,130" zPosition="1" size="15,16" alphatest="on"> + <convert type="ConditionalShowHide" /> + </widget> + <widget source="ShowAudioOnYellow" render="FixedLabel" text="Audio" position="460,130" zPosition="1" size="85,22" font="Regular;16" backgroundColor="#182946" shadowColor="#1d354c" shadowOffset="-1,-1" transparent="1"> + <convert type="ConditionalShowHide" /> + </widget> <!-- Blue button (is extensions available?) --> <ePixmap pixmap="skin_default/buttons/button_blue_off.png" position="545,130" size="15,16" alphatest="on" /> <widget source="ExtensionsAvailable" render="Pixmap" pixmap="skin_default/buttons/button_blue.png" position="545,130" zPosition="1" size="15,16" alphatest="on"> diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 4526a0c6..718c2d54 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1732,7 +1732,9 @@ class InfoBarAdditionalInfo: def __init__(self): self["RecordingPossible"] = Boolean(fixed=harddiskmanager.HDDCount() > 0) - self["TimeshiftPossible"] = self["RecordingPossible"] + self["TimeshiftPossible"] = Boolean(fixed=(harddiskmanager.HDDCount() > 0 and config.misc.rcused.value == 1)) + self["ShowTimeshiftOnYellow"] = Boolean(fixed=(not config.misc.rcused.value == 0)) + self["ShowAudioOnYellow"] = Boolean(fixed=config.misc.rcused.value == 0) self["ExtensionsAvailable"] = Boolean(fixed=1) class InfoBarNotifications: @@ -72,10 +72,11 @@ from Components.PluginComponent import plugins profile("LOAD:Wizard") from Screens.Wizard import wizardManager +from Screens.DefaultWizard import * from Screens.ImageWizard import * from Screens.StartWizard import * -from Screens.DefaultWizard import * from Screens.TutorialWizard import * +import Screens.Rc from Tools.BoundFunction import boundFunction from Plugins.Plugin import PluginDescriptor |
