Skip to content
Permalink
Browse files

Remove the EPG category colours setting and allow this to be decided …

…through the theme instead.
  • Loading branch information...
stuartm committed Jul 21, 2011
1 parent 360f661 commit 142682ba414d3b16b2f7f837115bf44c66839b1d
Showing with 5 additions and 13 deletions.
  1. +5 −1 mythtv/libs/libmythui/mythuiguidegrid.cpp
  2. +0 −12 mythtv/programs/mythfrontend/globalsettings.cpp
@@ -52,7 +52,7 @@ MythUIGuideGrid::MythUIGuideGrid(MythUIType *parent, const QString &name)
m_rowCount = 0;
m_progPastCol = 0;

m_drawCategoryColors = GetMythDB()->GetNumSetting("EPGShowCategoryColors", 1);
m_drawCategoryColors = true;
m_drawCategoryText = true;
m_categoryAlpha = 255;

@@ -164,6 +164,10 @@ bool MythUIGuideGrid::ParseElement(
{
m_drawCategoryText = parseBool(element);
}
else if (element.tagName() == "showcategorycolors")
{
m_drawCategoryColors = parseBool(element);
}
else if (element.tagName() == "cutdown")
{
m_cutdown = parseBool(element);
@@ -2291,17 +2291,6 @@ static GlobalCheckBox *LiveTVPriority()
return bc;
}

// EPG settings
static HostCheckBox *EPGShowCategoryColors()
{
HostCheckBox *gc = new HostCheckBox("EPGShowCategoryColors");
gc->setLabel(QObject::tr("Display genre colors"));
gc->setHelpText(QObject::tr("Colorize program guide using "
"genre colors (not available for all grabbers)."));
gc->setValue(true);
return gc;
}

static HostCheckBox *ChannelGroupRememberLast()
{
HostCheckBox *gc = new HostCheckBox("ChannelGroupRememberLast");
@@ -3605,7 +3594,6 @@ EPGSettings::EPGSettings()
{
VerticalConfigurationGroup* epg = new VerticalConfigurationGroup(false);
epg->setLabel(QObject::tr("Program Guide") + " 1/1");
epg->addChild(EPGShowCategoryColors());
epg->addChild(WatchTVGuide());
epg->addChild(DefaultTVChannel());
epg->addChild(EPGRecThreshold());

0 comments on commit 142682b

Please sign in to comment.
You can’t perform that action at this time.