[Solved] how can i hide the Media center text in the main menu ?
#1
how can i hide the Media center text in the main menu ?
Reply
#2
Wink 
i was find how to do this Smile
in Includes_Header.xml
change this
Quote:<include name="GlobalTopBar">
<control type="group">
<include>GlobalLeftHeader</include>
</control>
<control type="group" description="Main Header">
<visible>!Window.IsActive(DialogButtonMenu.xml)</visible>
<include>Animation.VisibleFadeIn</include>
<include>Animation.VisibleFadeOut</include>
<control type="group">
<posx>-10</posx>
<include>HeaderMainInfo</include>
</control>
<control type="group">
<include>Animation.VisibleFadeIn</include>
<include>Animation.VisibleFadeOut</include>
<visible>!Window.IsActive(DialogKaiToast.xml)</visible>
<include>HeaderRightInfo</include>
</control>
</control>
</include>

to this
Quote:<include name="GlobalTopBar">
<control type="group">
<include>GlobalLeftHeader</include>
</control>
<control type="group" description="Main Header">
<visible>!Window.IsActive(DialogButtonMenu.xml)</visible>
<include>Animation.VisibleFadeIn</include>
<include>Animation.VisibleFadeOut</include>
<control type="group">
<posx>-10</posx>
</control>
<control type="group">
<include>Animation.VisibleFadeIn</include>
<include>Animation.VisibleFadeOut</include>
<visible>!Window.IsActive(DialogKaiToast.xml)</visible>
<include>HeaderRightInfo</include>
</control>
</control>
</include>
Big Grin
Reply
#3
Image
Reply
#4
This takes out the "Media Center" text on the main menu, but it also removes the running time info of videos during playback Undecided
Reply
#5
you want just the time for playback or also the title in playback ?
if just the time text
go to the original "Includes_Header.xml"
and back to the original lines

Quote:<include name="GlobalTopBar">
<control type="group">
<include>GlobalLeftHeader</include>
</control>
<control type="group" description="Main Header">
<visible>!Window.IsActive(DialogButtonMenu.xml)</visible>
<include>Animation.VisibleFadeIn</include>
<include>Animation.VisibleFadeOut</include>
<control type="group">
<posx>-10</posx>
<include>HeaderMainInfo</include>
</control>
<control type="group">
<include>Animation.VisibleFadeIn</include>
<include>Animation.VisibleFadeOut</include>
<visible>!Window.IsActive(DialogKaiToast.xml)</visible>
<include>HeaderRightInfo</include>
</control>
</control>
</include>

now go to line
Quote: <include name="HeaderMainInfo">
<control type="label">
<posx>245</posx>
<posy>25</posy>
<width>1200</width>
<height>100</height>
<font>Font-Header</font>
<label>$VAR[MainHeaderLabel]</label>
<aligny>top</aligny>
<textcolor>$VAR[TopBarMainLabel]</textcolor>
</control>

and replace it for this
Quote: <include name="HeaderMainInfo">
<control type="label">
<posx>245</posx>
<posy>25</posy>
<width>1200</width>
<height>100</height>
<font>Font-Header</font>
<aligny>top</aligny>
<textcolor>$VAR[TopBarMainLabel]</textcolor>
</control>

this how the change look like in playback
Image
Reply
#6
Hey guys,

additionally here's a more simple hack to achieve removing the "Media Center" text but keep the main header label in general for other infos.

Remove default "Media Center" text from home screen when no header text is set by user:

1. Navigate to skin.eminence/1080i

2. Open the file Includes_Header.xml and go to:
Code:
<variable name="MainHeaderLabel">
        [...]
        <value condition="!IsEmpty(Skin.String(home.headertext)) + [Window.IsVisible(home) | IsEmpty(Container.NumItems) | Control.HasFocus(9500) | Control.HasFocus(9501)]">$INFO[Skin.String(home.headertext)]</value>
        <value condition="Window.IsVisible(home) | IsEmpty(Container.NumItems) | Control.HasFocus(9500) | Control.HasFocus(9501)">$LOCALIZE[31176]</value>
        <value>$LOCALIZE[15100]</value>
</variable>

3. Modify the last three (value)-lines like:
Code:
<variable name="MainHeaderLabel">
        [...]
        <value condition="Window.IsVisible(home) | IsEmpty(Container.NumItems) | Control.HasFocus(9500) | Control.HasFocus(9501)">$INFO[Skin.String(home.headertext)]</value>
        <value>$LOCALIZE[15100]</value>
</variable>

Using this there will be no main header label on the home screen unless you won't set a user defined
header text within the Eminence skin settings by your own. But if you want to do so, you can still set
a custom string or even change it back to "Media Center" without altering the XML file again.
Reply
#7
(2015-07-11, 13:54)josch Wrote: Hey guys,

additionally here's a more simple hack to achieve removing the "Media Center" text but keep the main header label in general for other infos.

Remove the "Media Center" text from home screen:

1. Navigate to skin.eminence/1080i

2. Open the file Includes_Header.xml and go to:
Code:
<variable name="MainHeaderLabel">
        [...]
        <value>$LOCALIZE[15100]</value>
</variable>

3. Just replace the value on the last line with an empty string:
Code:
<variable name="MainHeaderLabel">
        [...]
        <value></value>
</variable>


cheers

Thanks Smile but did not work for me

Quote:<variable name="MainHeaderLabel">
<value condition="Window.IsVisible(LoginScreen.xml)">$LOCALIZE[20096]</value>
<value condition="Window.IsVisible(3063)">$LOCALIZE[31164]</value>
<value condition="Window.IsVisible(script-globalsearch-main.xml)">$LOCALIZE[283]</value>
<value condition="Player.HasAudio + IsEmpty(Window(10025).Property(TvTunesIsAlive))">$INFO[Player.Title]</value>
<value condition="Player.HasVideo + !VideoPlayer.Content(livetv)">$INFO[Player.Title]</value>
<value condition="Player.HasVideo + VideoPlayer.Content(livetv)">$INFO[VideoPlayer.ChannelNumber,, ]$INFO[VideoPlayer.ChannelName]</value>
<value condition="Player.HasAudio + IsEmpty(Window(10025).Property(TvTunesIsAlive))">$INFO[Player.Artist]</value>

<value condition="substring(Container.FolderPath,plugin://,left)">$LOCALIZE[24000]</value>
<value condition="Window.IsVisible(MyPVR.xml)">$LOCALIZE[31175]</value>
<value condition="Container.Content(files) | substring(Container.FolderPath,sources://)">$LOCALIZE[1214]</value>
<value condition="!IsEmpty(Skin.String(home.headertext)) + [Window.IsVisible(home) | IsEmpty(Container.NumItems) | Control.HasFocus(9500) | Control.HasFocus(9501)]">$INFO[Skin.String(home.headertext)]</value>
<value condition="Window.IsVisible(home) | IsEmpty(Container.NumItems) | Control.HasFocus(9500) | Control.HasFocus(9501)">$LOCALIZE[31176]</value>
<value></value>
</variable>
Reply
#8
I'm sorry - had confused the "Media Center" string with the one for "Library".

Fixed the instruction in my post. Wink
Reply
#9
wow love it !! Smile Thanks man ...
if you have more custom solutions to this skin
that you use for your kodi let us them also Smile
Reply
#10
Perfect! Thanks josch! Smile
Reply
#11
No problem. Wink

(2015-07-12, 17:03)zeevgrim Wrote: if you have more custom solutions to this skin that you use for your kodi let us them also Smile

I already posted my modifications around the threads when people asked for something.
Nothing big, just small tweaks like this one here.
Reply
#12
josch i can't send pm messages because i am a new user in this forum
and can't click on the reputation button but thank you 1000 times !!! Smile
Reply

Logout Mark Read Team Forum Stats Members Help
[Solved] how can i hide the Media center text in the main menu ?2