Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MythFrontend: Add a new Slave menu theme.

A menu theme with no menus. It is intended for frontends that are
operated remotely via either the network or http interfaces.

It is not selectable from the appearance settings (as you can't change
it back!) and can currently only be used in a non-persistent manner from
the command line with:

mythfrontend -O MenuTheme=Slave

In the future there may be a more convenient and obvious command line
switch and 'slave' frontends may advertise themselves as such through
the UPnP server (in much the same way as slave backends distinguish
themselves from master backends).
  • Loading branch information...
commit 2bd69f99dc310f166d18633e6f11251dc34967db 1 parent 4bf4aed
Mark Kendall authored
View
3  mythtv/libs/libmythui/mythuihelper.cpp
@@ -1110,7 +1110,8 @@ QList<ThemeInfo> MythUIHelper::GetThemes(ThemeType type)
QFileInfo &theme = *it;
if (theme.baseName() == "default" ||
- theme.baseName() == "default-wide")
+ theme.baseName() == "default-wide" ||
+ theme.baseName() == "Slave")
continue;
ThemeInfo themeInfo(theme.absoluteFilePath());
View
9 mythtv/themes/Slave/mainmenu.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mythmenu name="MAIN">
+ <button>
+ <type>TV</type>
+ <text>MythTV</text>
+ <description></description>
+ <action></action>
+ </button>
+</mythmenu>
View
15 mythtv/themes/Slave/themeinfo.xml
@@ -0,0 +1,15 @@
+<themeinfo>
+ <name>Slave</name>
+ <types>
+ <type>Menu</type>
+ </types>
+ <version>
+ <major>1</major>
+ <minor>1</minor>
+ </version>
+ <detail>
+ <thumbnail name="preview">classic-preview.png</thumbnail>
+ <description></description>
+ <errata>N/A</errata>
+ </detail>
+</themeinfo>
View
2  mythtv/themes/themes.pro
@@ -9,7 +9,7 @@ QMAKE_COPY_DIR = sh ./cpsvndir
win32:QMAKE_COPY_DIR = sh ./cpsimple
themes.path = $${PREFIX}/share/mythtv/themes/
-themes.files = default default-wide classic DVR
+themes.files = default default-wide classic DVR Slave
themes.files += Terra defaultmenu mediacentermenu
themes.files += MythCenter MythCenter-wide
themes.files += mythuitheme.dtd
Please sign in to comment.
Something went wrong with that request. Please try again.