diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-05-12 13:39:59 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-05-21 10:46:28 +0200 |
commit | 64fefa4aa00826d4f4aef21428e997d7e6ed1c36 (patch) | |
tree | f9d167e345ab76f9c79be577308d9a2f1e15fe28 /setup.c | |
parent | 54804b722f04e0e97746243e3563a96c384e0121 (diff) | |
download | skin-nopacity-64fefa4aa00826d4f4aef21428e997d7e6ed1c36.tar.gz skin-nopacity-64fefa4aa00826d4f4aef21428e997d7e6ed1c36.tar.bz2 |
Add setup option to display the channellogobackground only if a channellogo ist present or not present
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -405,6 +405,10 @@ cNopacitySetupChannelDisplay::cNopacitySetupChannelDisplay(cNopacityConfig* data logoVerticalPos[0] = tr("top"); logoVerticalPos[1] = tr("middle"); logoVerticalPos[2] = tr("bottom"); + useLogoBackground[0] = tr("never"); + useLogoBackground[1] = tr("always"); // default + useLogoBackground[2] = tr("if channel logo is present"); + useLogoBackground[3] = tr("if channel logo is not present"); progressStyleCurrentSchedule[0] = tr("show elapsed time"); progressStyleCurrentSchedule[1] = tr("show remaining time"); Set(); @@ -429,7 +433,7 @@ void cNopacitySetupChannelDisplay::Set(void) { Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Channel Logo original Width")), tmpConf->GetValueRef("logoWidthOriginal"), 30, 500)); Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Channel Logo original Height")), tmpConf->GetValueRef("logoHeightOriginal"), 30, 500)); Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Size of the Channel Logo in Percent")), tmpConf->GetValueRef("logoScale"), 50, 100)); - Add(new cMenuEditBoolItem(cString::sprintf("%s%s", *spacer, tr("Use Channel Logo background")), tmpConf->GetValueRef("channelUseLogoBackground"))); + Add(new cMenuEditStraItem(cString::sprintf("%s%s", *spacer, tr("Use Channel Logo background")), tmpConf->GetValueRef("channelUseLogoBackground"), 4, useLogoBackground)); } Add(new cMenuEditStraItem(tr("Kind of time display for current schedule"), tmpConf->GetValueRef("progressCurrentSchedule"), 2, progressStyleCurrentSchedule)); Add(new cMenuEditBoolItem(tr("Display Signal Strength & Quality"), tmpConf->GetValueRef("displaySignalStrength"))); |