Skip to content

Commit

Permalink
Merge pull request #1622 from jmarshallnz/skin_settings
Browse files Browse the repository at this point in the history
Skin settings to a button in Appearance, under skin chooser
  • Loading branch information
Arne Morten Kvarving committed Oct 15, 2012
2 parents a3362d0 + 88dd913 commit b2faddb
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
6 changes: 0 additions & 6 deletions addons/skin.confluence/720p/Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,6 @@
<onclick>ActivateWindow(SystemSettings)</onclick>
<icon>-</icon>
</item>
<item id="10">
<label>166</label>
<label2>31407</label2>
<onclick>ActivateWindow(1111)</onclick>
<icon>-</icon>
</item>
</content>
</control>
<control type="image">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<window id="1111">
<window>
<defaultcontrol always="true">9000</defaultcontrol>
<controls>
<include>CommonBackground</include>
Expand Down
4 changes: 1 addition & 3 deletions addons/skin.confluence/language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,7 @@ msgctxt "#31406"
msgid "[B]CONFIGURE SYSTEM SETTINGS[/B][CR][CR]Setup and calibrate displays · Configure audio output · Setup remote controls[CR]Set power saving options · Enable debugging · Setup master lock"
msgstr ""

msgctxt "#31407"
msgid "[B]CONFIGURE SKIN SETTINGS[/B][CR][CR]Setup the Confluence skin · Add and remove home menu items[CR]Change skin backgrounds"
msgstr ""
#empty string with id 31407

msgctxt "#31408"
msgid "[B]CONFIGURE ADD-ONS[/B][CR][CR]Manage your installed Add-ons · Browse for and install Add-ons from xbmc.org[CR]Modify Add-on settings"
Expand Down
1 change: 1 addition & 0 deletions xbmc/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ bool CApplication::Initialize()
g_windowManager.Add(new CGUIWindowVideoPlaylist); // window id = 28
g_windowManager.Add(new CGUIWindowLoginScreen); // window id = 29
g_windowManager.Add(new CGUIWindowSettingsProfile); // window id = 34
g_windowManager.Add(new CGUIWindow(WINDOW_SKIN_SETTINGS, "SkinSettings.xml")); // window id = 35
g_windowManager.Add(new CGUIWindowAddonBrowser); // window id = 40
g_windowManager.Add(new CGUIWindowScreensaverDim); // window id = 97
g_windowManager.Add(new CGUIWindowDebugInfo); // window id = 98
Expand Down
1 change: 1 addition & 0 deletions xbmc/guilib/Key.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@

#define WINDOW_LOGIN_SCREEN 10029
#define WINDOW_SETTINGS_PROFILES 10034
#define WINDOW_SKIN_SETTINGS 10035

#define WINDOW_ADDON_BROWSER 10040

Expand Down
1 change: 1 addition & 0 deletions xbmc/input/ButtonTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ static const ActionMapping windows[] =
{"videoplaylist" , WINDOW_VIDEO_PLAYLIST},
{"loginscreen" , WINDOW_LOGIN_SCREEN},
{"profiles" , WINDOW_SETTINGS_PROFILES},
{"skinsettings" , WINDOW_SKIN_SETTINGS},
{"addonbrowser" , WINDOW_ADDON_BROWSER},
{"yesnodialog" , WINDOW_DIALOG_YES_NO},
{"progressdialog" , WINDOW_DIALOG_PROGRESS},
Expand Down
1 change: 1 addition & 0 deletions xbmc/settings/GUISettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ void CGUISettings::Initialize()
AddGroup(SETTINGS_APPEARANCE, 480);
CSettingsCategory* laf = AddCategory(SETTINGS_APPEARANCE,"lookandfeel", 166);
AddDefaultAddon(laf, "lookandfeel.skin",166,DEFAULT_SKIN, ADDON_SKIN);
AddString(laf, "lookandfeel.skinsettings", 21417, "", BUTTON_CONTROL_STANDARD);
AddString(laf, "lookandfeel.skintheme",15111,"SKINDEFAULT", SPIN_CONTROL_TEXT);
AddString(laf, "lookandfeel.skincolors",14078, "SKINDEFAULT", SPIN_CONTROL_TEXT);
AddString(laf, "lookandfeel.font",13303,"Default", SPIN_CONTROL_TEXT);
Expand Down
9 changes: 9 additions & 0 deletions xbmc/settings/GUIWindowSettingsCategory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,11 @@ void CGUIWindowSettingsCategory::UpdateSettings()
CGUIControl *pControl = (CGUIControl *)GetControl(pSettingControl->GetID());
pControl->SetEnabled(g_guiSettings.GetBool("lookandfeel.enablerssfeeds"));
}
else if (strSetting.Equals("lookandfeel.skinsettings"))
{
CGUIControl *pControl = (CGUIControl *)GetControl(pSettingControl->GetID());
pControl->SetEnabled(g_SkinInfo->HasSkinFile("SkinSettings.xml"));
}
else if (strSetting.Equals("videoplayer.pauseafterrefreshchange"))
{
CGUIControl *pControl = (CGUIControl *)GetControl(pSettingControl->GetID());
Expand Down Expand Up @@ -1438,6 +1443,10 @@ void CGUIWindowSettingsCategory::OnSettingChanged(CBaseSettingControl *pSettingC
g_audioManager.Enable(true);
g_audioManager.Load();
}
else if (strSetting.Equals("lookandfeel.skinsettings"))
{
g_windowManager.ActivateWindow(WINDOW_SKIN_SETTINGS);
}
else if (strSetting.Equals("input.enablemouse"))
{
g_Mouse.SetEnabled(g_guiSettings.GetBool("input.enablemouse"));
Expand Down

0 comments on commit b2faddb

Please sign in to comment.